/* Variables CSS (couleurs de l'app) */
:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --secondary: #F59E42;
    --secondary-dark: #EA580C;
    --success: #22C55E;
    --error: #EF4444;
    --warning: #FACC15;
    --bg-light: #F4F6FB;
    --bg-dark: #181C24;
    --item-bg-light: #FFFFFF;
    --item-bg-dark: #23272F;
    --text-primary-light: #1A202C;
    --text-primary-dark: #F4F6FB;
    --text-secondary-light: #64748B;
    --text-secondary-dark: #A0AEC0;
    --gray-200: #E2E8F0;
    --gray-700: #334155;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Mode sombre */
body.dark-mode {
    --bg: var(--bg-dark);
    --surface: var(--item-bg-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --border: var(--gray-700);
}

/* Mode clair (par d�faut) */
body {
    --bg: var(--bg-light);
    --surface: var(--item-bg-light);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --border: var(--gray-200);
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

* {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

    .nav-menu a {
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }

        .nav-menu a:hover {
            color: var(--primary);
        }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .lang-toggle:hover {
        border-color: var(--primary);
        color: var(--primary);
        transform: scale(1.1);
    }

.theme-toggle {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .theme-toggle:hover {
        border-color: var(--primary);
        transform: scale(1.1);
    }

body.dark-mode .sun-icon {
    display: inline;
}

body.dark-mode .moon-icon {
    display: none;
}

body:not(.dark-mode) .sun-icon {
    display: none;
}

body:not(.dark-mode) .moon-icon {
    display: inline;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 100%);
}

    .hero .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
    }

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

    .btn-secondary:hover {
        background: var(--primary);
        color: white;
    }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

    .btn-outline:hover {
        background: var(--primary);
        color: white;
    }

.phone-mockup {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary);
    }

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Platforms */
.platforms {
    padding: 100px 0;
    background: var(--surface);
}

/* Quatre cartes (Android, iOS, macOS, Windows) : 2 × 2 sur grand écran, une colonne sur mobile. */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 2rem;
}

.platform-card {
    background: var(--bg);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

    .platform-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary);
    }

.platform-icon {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.platform-card h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.platform-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.platform-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.platform-features li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.platform-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* Use Cases */
.use-cases {
    padding: 80px 0;
    background: var(--surface);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.use-case {
    text-align: center;
    padding: 2rem;
}

.use-case-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.use-case h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.use-case p {
    color: var(--text-secondary);
}

/* Download Section */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

    .download .section-title,
    .download .section-subtitle {
        color: white;
    }

.download-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* Badges officiels des boutiques : images inchangées, même hauteur visible pour les trois. */
.store-badge {
    display: inline-flex;
    border-radius: 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

    .store-badge:hover {
        transform: translateY(-3px);
        filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.25));
    }

    .store-badge:focus-visible {
        outline: 3px solid white;
        outline-offset: 4px;
    }

    .store-badge img {
        display: block;
        height: 56px;
        width: auto;
    }

/* Screenshots */
.screenshots {
    padding: 80px 0;
}

.screenshots-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
}

.screenshot-card {
    flex: 0 0 300px;
}

.screenshot-placeholder {
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: 20px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Privacy Highlight */
.privacy-highlight {
    padding: 80px 0;
    background: var(--surface);
}

.privacy-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.privacy-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.privacy-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .footer-logo span {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary);
    }

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

    .footer-column a:hover {
        color: var(--primary);
    }

/* Responsive */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        order: -1;
    }

    .nav-menu {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        gap: 1.25rem;
    }

    .footer-content {
        flex-direction: column;
    }
}

/* Privacy Page */
.privacy-section {
    background: var(--surface);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.privacy-section h2 {
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.privacy-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Conditions d'utilisation : plusieurs paragraphes et une liste par section */
.privacy-section p + p,
.privacy-section ul + p {
    margin-top: 1rem;
}

.privacy-section ul {
    color: var(--text-secondary);
    line-height: 1.8;
    list-style: disc;
    margin: 0.5rem 0 0;
    padding-left: 1.5rem;
}

.privacy-section a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid var(--primary);
}

.privacy-section a:hover {
    opacity: 0.8;
}

/* Transparent app glyph, theme-aware (navbar / footer / compare badge) */
.g-light {
    display: block;
}

.g-dark {
    display: none;
}

body.dark-mode .g-light {
    display: none;
}

body.dark-mode .g-dark {
    display: block;
}

/* Phone mockup ("simulator") */
.phone-frame {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.35));
}

/* Hero trust badges */
.hero-badges {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.75rem 0 0;
    padding: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow);
}

.hero-badge .hero-badge-ic {
    font-size: 1.05rem;
    line-height: 1;
}

/* No-ads section */
.no-ads {
    padding: 100px 0;
    background: var(--bg);
}

.no-ads-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}

.no-ads-emblem {
    display: inline-flex;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.no-ads-compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 940px;
    margin: 0 auto;
    align-items: stretch;
}

.compare-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 2rem 2.25rem;
    position: relative;
}

.compare-card h3 {
    font-size: 1.4rem;
    margin: 0 0 1.5rem;
    color: var(--text-primary);
}

.compare-card--negative {
    opacity: 0.9;
}

.compare-card--positive {
    border: 2px solid transparent;
    background: linear-gradient(var(--surface), var(--surface)) padding-box,
                linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
    box-shadow: var(--shadow-lg);
}

.compare-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .compare-brand img {
        flex: none;
    }

.compare-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.compare-list li {
    position: relative;
    padding-left: 2rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.compare-list li::before {
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 800;
    font-size: 1.05rem;
}

.compare-list--cons li::before {
    content: "\2717";
    color: var(--error);
}

.compare-list--pros li {
    color: var(--text-primary);
}

.compare-list--pros li::before {
    content: "\2713";
    color: var(--success);
}

.no-ads-cta {
    text-align: center;
    max-width: 660px;
    margin: 3rem auto 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.5;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .hero-badges {
        justify-content: center;
    }
}

/* 3-way language switch */
.lang-switch {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--surface);
}

.lang-opt {
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}

    .lang-opt:hover {
        color: var(--primary);
    }

    .lang-opt.active {
        background: var(--primary);
        color: #fff;
    }

/* Real-screenshot device frame */
.device-frame {
    max-width: 300px;
    margin: 0 auto;
    background: #0B0F17;
    border-radius: 40px;
    padding: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.device-screen {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 32px;
}

/* Theme-matched screenshots: light shown by default, dark under body.dark-mode */
.device-screen.s-dark {
    display: none;
}

body.dark-mode .device-screen.s-light {
    display: none;
}

body.dark-mode .device-screen.s-dark {
    display: block;
}

/* Screenshots gallery */
.screenshots-slider {
    scroll-snap-type: x mandatory;
}

.shot {
    flex: 0 0 240px;
    margin: 0;
    text-align: center;
    scroll-snap-align: center;
}

    .shot .device-frame {
        max-width: 240px;
        border-radius: 34px;
    }

    .shot .device-screen {
        border-radius: 27px;
    }

    .shot figcaption {
        margin-top: 1.1rem;
        color: var(--text-secondary);
        font-weight: 600;
        font-size: 1rem;
    }