@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fira+Sans:wght@700;900&display=swap');

:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --secondary: #6366f1;
    --accent: #10b981;
    --link-color: #3344DD;
    --primary-glow: rgba(79, 70, 229, 0.4);
    --bg-light: #f9fafb;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Fira Sans', serif;
    --max-width: 960px;
    --spacing-large: 4rem;
    --spacing-medium: 2rem;
    --spacing-small: 1rem;
    --spacing-xs: 0.5rem;
    --border-radius: 0.75rem;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-light);
    color: #333;
    line-height: 1.6;
}

/* CONTAINER CENTRAL */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-medium) var(--spacing-small);
}

/* NAVIGATION STICKY */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-small);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-small);
}

.logo img {
    width: 4rem;
    height: 4rem;
    border-radius: 10px;
}

.logo span {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-buttons {
    display: flex;
    gap: var(--spacing-small);
    align-items: center;
}

/* HERO */
.hero {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    background: linear-gradient(135deg, #eef2ff, #ffffff);
    min-height: 90vh;
    padding: var(--spacing-large) var(--spacing-small);
}

.hero-content {
    max-width: 600px;
    margin-bottom: 30px;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: var(--spacing-small);
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-medium);
    color: #6b7280;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-medium);
    margin-bottom: var(--spacing-medium);
}

.download-buttons {
    display: flex;
    gap: var(--spacing-small);
    align-items: center;
    flex-wrap: wrap;
}

.store-btn {
    position: relative;
    transition: transform 0.2s ease;
}

.store-btn:hover {
    transform: scale(1.05);
}

.store-btn.coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
}

.store-btn .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.social-proof {
    text-align: center;
    margin-top: var(--spacing-medium);
}

.users-count {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-small);
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-image img {
    height: 500px;
    max-height: 90vh;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin: 0 var(--spacing-medium);
}

/* VALEUR PROPOSITION */
.value-props {
    background: white;
    border-radius: var(--border-radius);
    margin: var(--spacing-large) auto;
    box-shadow: var(--shadow-sm);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-medium);
}

.value-item {
    text-align: center;
    padding: var(--spacing-medium);
}

.value-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: var(--spacing-small);
}

.value-item p {
    font-size: 1.1rem;
    color: #4b5563;
    font-weight: 500;
}

/* BOUTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    position: relative;
    top: 0;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: var(--border-radius);
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    top: -2px;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn.primary {
    background: var(--primary);
}

.btn.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn.secondary:hover {
    background: var(--primary);
    color: white;
}

.btn.large {
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

/* SECTIONS */
section {
    padding: var(--spacing-large) var(--spacing-small);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: var(--spacing-large);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* GRID */
.grid {
    display: grid;
    gap: var(--spacing-medium);
}

.features .grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.steps .grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.faq-items {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* CARDS & GLASSMORPHISM */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    padding: var(--spacing-medium);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card.feature {
    text-align: center;
}

.card.feature img {
    width: 3rem;
    height: 3rem;
    margin-bottom: var(--spacing-small);
}

.card.feature h3 {
    margin-bottom: var(--spacing-small);
    color: var(--primary);
}

.card.step {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-small);
}

.card.testimonial blockquote {
    font-style: italic;
    margin-bottom: var(--spacing-small);
    font-size: 1.1rem;
    line-height: 1.7;
}

.card.testimonial cite {
    color: var(--primary);
    font-weight: 600;
}

/* COMPARATIF */
.comparison .table-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.comparison table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.comparison th,
.comparison td {
    padding: var(--spacing-small);
    text-align: center;
}

.comparison thead {
    background: var(--primary);
    color: #fff;
}

.comparison tbody tr:nth-child(even) {
    background: #f8fafc;
}

.comparison tbody tr:hover {
    background: #e2e8f0;
}

/* FAQ */
.faq-items .card details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    padding: var(--spacing-xs) 0;
}

.faq-items .card details[open] summary {
    margin-bottom: var(--spacing-small);
}

.faq-items .card p {
    margin-top: var(--spacing-xs);
    color: #4b5563;
}

/* CTA FINAL */
.final-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
    border-radius: var(--border-radius);
    margin: var(--spacing-large) auto;
}

.final-cta h2 {
    color: white;
    margin-bottom: var(--spacing-small);
}

.final-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-medium);
}

.final-cta .btn.primary {
    background: white;
    color: var(--primary);
}

.final-cta .btn.primary:hover {
    background: #f8fafc;
}

/* FOOTER */
.footer {
    background: #f8f9fa;
    padding: var(--spacing-medium) 0;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-medium);
    margin-bottom: var(--spacing-small);
}

.footer-links a {
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-dark);
}

/* TYPOGRAPHIE & CONTRASTE */
h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-medium);
    text-align: center;
    color: #1f2937;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

p,
li,
summary,
td {
    font-size: 1rem;
    color: #374151;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: var(--spacing-small) var(--spacing-xs);
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.value-item,
.card {
    animation: fadeInUp 0.6s ease-out;
}

/* ACCESSIBILITÉ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* FOCUS STYLES */
.btn:focus,
summary:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}