/* Variables */
:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #D1FAE5;
    --secondary: #064E3B;
    --background: #F0FDF4;
    --surface: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;
    --border: #E5E7EB;
    --shadow: rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--secondary);
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* Language selector */
.lang-selector {
    display: flex;
    align-items: center;
}

.lang-selector select {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lang-selector select:hover {
    border-color: var(--primary);
}

.lang-selector select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    text-decoration: none !important;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: var(--surface);
    color: var(--primary-dark);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-light);
}

.play-store-badge {
    display: flex;
    justify-content: center;
}

.play-store-badge img {
    height: 58px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s;
}

.play-store-badge:hover img {
    transform: translateY(-2px);
}

.app-store-badge {
    display: flex;
    justify-content: center;
}

.app-store-badge img {
    height: 58px;
    max-width: 100%;
    width: auto;
    transition: transform 0.2s;
}

.app-store-badge:hover img {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.tagline {
    font-size: 1.5rem;
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

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

.phone-mockup {
    width: 280px;
    height: 580px;
    background: #1F2937;
    border-radius: 36px;
    padding: 6px;
    box-shadow: 0 25px 50px -12px var(--shadow);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--surface);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fallback si pas d'image */
.phone-screen:has(img[src=""]),
.phone-screen:has(img:not([src])) {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 3rem;
}

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

.feature-card {
    /* Bouton et non div : la carte ouvre une capture, elle doit donc être
       atteignable au clavier et annoncée comme actionnable. */
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    appearance: none;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.feature-card:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.feature-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.feature-head h3 {
    margin: 0;
}

/* Aperçu de l'écran de l'application. Les captures font 712x1600, donc on
   cadre sur le haut : la barre de titre et le premier contenu suffisent à
   reconnaître l'écran, et la carte reste compacte. */
.feature-shot {
    position: relative;
    display: block;
    margin-top: auto;
    padding-top: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.feature-shot img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    /* Décalé vers le bas : le haut des captures n'est que barre d'état et
       titre, le contenu réel commence plus bas. */
    object-position: center 16%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--background);
}

/* Indice explicite : sans lui, rien n'annonce que la carte s'agrandit, et le
   survol n'existe pas sur mobile. */
.feature-zoom {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1;
}

.feature-zoom svg {
    width: 14px;
    height: 14px;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px var(--shadow);
    border-color: var(--primary);
}

.feature-icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-note {
    font-size: 0.8rem;
    color: var(--primary-dark);
}

.feature-note a {
    font-weight: 600;
}

.screenshot-btn {
    margin-top: auto;
    cursor: pointer;
    font-size: 1.1rem;
    border: none;
    background: var(--primary-light);
    color: var(--primary);
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    transition: all 0.2s;
}

.feature-footer .screenshot-btn {
    margin-top: 0;
}

.screenshot-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 400px;
    max-height: 90vh;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    z-index: 10;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-content img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-content p {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--secondary);
    margin: 0;
}

/* Download Section */
.download {
    padding: 6rem 2rem;
    background: var(--surface);
}

.download h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.download-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.download .disclaimer {
    max-width: 600px;
    margin: -2rem auto 3rem;
    padding: 1rem;
    background: #FEF3C7;
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: #92400E;
    text-align: center;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.download-card {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    transition: border-color 0.2s;
}

.download-card:hover {
    border-color: var(--primary);
}

.platform-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.platform-icon svg {
    width: 40px;
    height: 40px;
}

.platform-icon.android {
    background: #D1FAE5;
    color: #10B981;
}

.platform-icon.ios {
    background: #E5E7EB;
    color: #374151;
}

.download-card h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.download-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.coming-soon {
    color: var(--primary-dark) !important;
    font-weight: 600;
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
}

.version-info {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: 1rem;
    text-align: center;
}

/* About Section */
.about {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.about-content {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px var(--shadow);
}

.about-content > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.credits {
    text-align: center;
    font-weight: 500;
    color: var(--text-primary) !important;
    margin-bottom: 1.5rem !important;
}

.services {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.services h3 {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.services ul {
    list-style: none;
}

.services li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.services strong {
    color: var(--text-primary);
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    text-align: center;
    padding: 2rem;
}

footer p {
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0.5rem auto;
}

.footer-langs {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-top: 0.5rem;
}

.footer-langs a {
    text-decoration: none;
}

.footer-langs span {
    font-weight: 600;
}

.footer-quote {
    font-size: 0.8rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
        min-height: auto;
    }

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

    .tagline {
        font-size: 1.25rem;
    }

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

    .hero-image {
        margin-top: 2rem;
    }

    .phone-mockup {
        width: 220px;
        height: 460px;
    }

    .features h2,
    .download h2,
    .about h2 {
        font-size: 2rem;
    }

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

    .download-cards {
        grid-template-columns: 1fr;
    }
}
