/* Variables CSS pour la cohérence du design */
:root {
    --header-height: 70px;
    --header-height-mobile: 60px;
    --container-padding: 2rem;
    --container-padding-mobile: 1rem;
    
    /* Variables de couleurs */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-surface: #141414;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #666666;
    --accent-violet: #8b5cf6;
    --accent-violet-light: #a78bfa;
    --border-primary: #2a2a2a;
    --border-secondary: #1f1f1f;
    --radius-md: 0.5rem;
    --radius-sm: 0.375rem;
}

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

body {
    overflow-x: hidden;
}

/* Dark Mode Optimization */
@media (prefers-color-scheme: dark) {
    .profile-dropdown {
        background: rgba(20, 20, 25, 0.95);
    }
}

/* Optimisations de performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Modern user profile menu */
.profile-menu {
    position: relative;
    display: flex;
    align-items: center;
}
.profile-btn-violet {
    background: rgba(139,92,246,0.13);
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
}
.profile-btn-violet:hover {
    background: var(--accent-violet);
}
.profile-btn:hover {
    background: #8b5cf6 !important;
    color: #fff !important;
}
.profile-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: rgba(30,30,40,0.98);
    border-radius: 1.1rem;
    box-shadow: 0 8px 32px rgba(139,92,246,0.13);
    border: 1.5px solid var(--border-primary);
    z-index: 1002;
    padding: 0.7rem 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    animation: fadeIn 0.2s ease;
}

.profile-dropdown.open {
    display: flex;
}

/* Flèche du dropdown */
.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--border-primary);
}
.profile-dropdown a {
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1rem;
    transition: background 0.18s, color 0.18s;
    text-decoration: none;
}
.profile-dropdown a:hover {
    background: #8b5cf6;
    color: #fff;
}
.profile-dropdown i {
    width: 20px;
    height: 20px;
}

/* Fix bouton violet derrière la navbar */
.hero-buttons {
    z-index: 1;
    position: relative;
}
.docs-nav {
    z-index: 1002;
    background: rgba(26, 26, 26, 0.97);
    /* plus opaque pour masquer le contenu derrière */
}
/* CSS specific to homepage (index.html) */

/* Navigation standardisée */
.docs-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-primary);
    z-index: 1000;
    height: 70px;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-brand i {
    color: var(--accent-violet);
    width: 24px;
    height: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-violet);
}

/* Style du menu dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(30,30,40,0.98);
    min-width: 180px;
    border-radius: 1rem;
    padding: 0.7rem 0.5rem;
    box-shadow: 0 8px 32px rgba(139,92,246,0.13);
    border: 1.5px solid var(--border-primary);
    z-index: 1002;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

.nav-dropdown-content a {
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    border-radius: 0.7rem;
    transition: all 0.2s ease;
}

.nav-dropdown-content a:hover {
    background: var(--accent-violet);
    color: white;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-violet);
    border-radius: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-mobile {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn:hover {
    color: var(--accent-violet);
}

/* Styles des boutons standardisés */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-primary);
}

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--border-secondary);
}

.btn-primary {
    background: var(--accent-violet);
    color: white;
    border-color: var(--accent-violet);
}

.btn-primary:hover {
    background: var(--accent-violet-light);
    border-color: var(--accent-violet-light);
}

/* Hero Section - Style Chaos épuré */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: calc(var(--header-height) + 2rem) 0 4rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(var(--border-primary) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-primary) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 1;
}

.gradient-orb {
    display: none; /* Supprimé pour un style plus clean */
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: left;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Features Section - Style épuré */
.features {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: left;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 480px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 1.5rem;
    text-align: left;
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.feature-icon i {
    width: 20px;
    height: 20px;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 14px;
    line-height: 1.5;
}

.feature-card ul {
    list-style: none;
}

.feature-card li {
    padding: 0.125rem 0;
    color: var(--text-muted);
    font-size: 13px;
}

.feature-card li::before {
    content: "•";
    color: var(--text-secondary);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Pricing Section - Style épuré */
.pricing {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.toggle-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-tertiary);
    transition: 0.4s;
    border-radius: 34px;
    border: 1px solid var(--border-primary);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background: var(--accent-green);
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background: var(--accent-green);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.discount {
    background: var(--accent-green);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    padding: 2rem;
    position: relative;
    text-align: center;
}

.pricing-card.popular {
    border-color: var(--border-subtle);
    background: var(--bg-surface);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.amount {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0.25rem;
}

.period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.pricing-features i {
    color: var(--accent-green);
    width: 16px;
    height: 16px;
}

/* Testimonials Section */
.testimonials {
    padding: 8rem 0;
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Footer */
.docs-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-primary);
    margin-top: 4rem;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
    margin-bottom: 2rem;
}

.brand-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.brand-info i {
    color: var(--accent-violet);
    width: 24px;
    height: 24px;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.link-group a:hover {
    color: var(--accent-violet);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-primary);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    color: var(--accent-violet);
    border-color: var(--accent-violet);
    background: rgba(139, 92, 246, 0.1);
}

.footer-social i {
    width: 20px;
    height: 20px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
    }

    .hero {
        padding-top: calc(var(--header-height) + 1rem);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: var(--header-height-mobile);
        --container-padding: var(--container-padding-mobile);
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none !important;
    }

    .nav-actions .profile-menu,
    .nav-actions .btn {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    .nav-mobile {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(20, 20, 25, 0.98);
        backdrop-filter: blur(20px);
        border-right: 1px solid var(--border-primary);
        z-index: 9999;
        padding: 2rem 1.5rem;
        transition: left 0.3s ease;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

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

    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border-primary);
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-weight: 700;
        font-size: 1.25rem;
        color: var(--text-primary);
    }

    .mobile-brand i {
        color: var(--accent-violet);
        width: 24px;
        height: 24px;
    }

    .mobile-close {
        background: none;
        border: none;
        color: var(--text-secondary);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
    }

    .mobile-close:hover {
        color: var(--text-primary);
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-nav-links a {
        color: var(--text-secondary);
        text-decoration: none;
        padding: 1rem;
        border-radius: 0.75rem;
        font-weight: 500;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .mobile-nav-links a:hover,
    .mobile-nav-links a.active {
        background: rgba(139, 92, 246, 0.1);
        color: var(--accent-violet);
    }

    .mobile-nav-links i {
        width: 20px;
        height: 20px;
    }

    .mobile-actions {
        margin-top: 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-profile {
        background: rgba(139, 92, 246, 0.1);
        border: 1px solid var(--accent-violet);
        color: var(--accent-violet);
        padding: 1rem;
        border-radius: 0.75rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-weight: 500;
        text-decoration: none;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-dropdown-content {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0.5rem 1rem;
        margin-top: 0;
    }

    .nav-brand span {
        display: inline-block;
    }

    .hero {
        padding-top: calc(var(--header-height) + 2rem);
        min-height: 90vh;
    }

    .hero-content {
        text-align: center;
        padding: 0 1.5rem;
    }

    .hero-title {
        margin-bottom: 2rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .hero-stats {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 1.5rem;
        flex-wrap: wrap;
    }

    .stat {
        text-align: center;
        min-width: 80px;
        flex: 0 0 auto;
    }

    .stat-number {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0.3rem;
    }

    .stat-label {
        font-size: 0.5rem;
        white-space: nowrap;
        letter-spacing: 0.03em;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .link-group {
        text-align: left;
    }

    .link-group h4 {
        margin-bottom: 1rem;
        font-size: 1rem;
    }

    .link-group a {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding-top: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        padding: 0 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .hero-stats {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
        flex-wrap: nowrap;
    }

    .stat {
        text-align: center;
        padding: 0;
        min-width: 70px;
        flex: 1;
    }

    .stat-number {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.2rem;
    }

    .stat-label {
        font-size: 0.5rem;
        line-height: 1.1;
        letter-spacing: 0.02em;
    }

    .profile-btn-violet {
        padding: 0.5rem;
    }

    .profile-username {
        display: none;
    }

    .nav-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .footer-links {
        display: flex;
        justify-content: space-between;
        text-align: center;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .link-group {
        flex: 1;
        text-align: center;
        min-width: 0;
    }

    .link-group h4 {
        margin-bottom: 0.75rem;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .link-group a {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
        display: block;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .footer-social {
        justify-content: center;
    }
}
