/* ========================================
   Variables globales
   ======================================== */
:root {
    --primary: #2d7a3e;
    --primary-light: #4a9d5f;
    --accent: #f5a3a3;
    --text: #1d1d1f;
    --text-light: #86868b;
    --bg: #ffffff;
    --section-bg: #fbfbfd;
    --transition-base: 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
}

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

html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    width: 100%;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Fond animé subtil
   ======================================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float-blob 25s ease-in-out infinite;
    pointer-events: none;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -15%;
    right: 10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: 10%;
    left: 5%;
    animation-delay: -8s;
}

.blob-3 {
    width: 450px;
    height: 450px;
    background: var(--primary-light);
    top: 50%;
    left: 50%;
    animation-delay: -16s;
}

.blob-4 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: 30%;
    right: -10%;
    animation-delay: -12s;
}

@keyframes float-blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 40px) scale(0.95);
    }
}

/* ========================================
   Sélecteur de langue
   ======================================== */
.lang-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 980px;
    padding: 8px 18px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-base);
    user-select: none;
    color: var(--text);
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
}

.lang-switch:active {
    transform: scale(0.96);
}

[data-lang="en"] .fr,
[data-lang="fr"] .en {
    display: none;
}

/* ========================================
   Section Hero
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 140px 20px 100px;
}

.hero-content {
    max-width: 980px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 1.2s ease both;
}

/* ========================================
   Logo
   ======================================== */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 56px;
}

.logo-icon {
    filter: drop-shadow(0 4px 12px rgba(45, 122, 62, 0.2));
}

.logo-text {
    font-size: 56px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -1.5px;
}

/* ========================================
   Titres Hero
   ======================================== */
.hero-subtitle {
    font-size: 28px;
    font-weight: 400;
    color: var(--text-light);
    margin: 0 auto 56px;
    max-width: 820px;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

/* ========================================
   Boutons CTA
   ======================================== */
.cta {
    display: inline-block;
    background: var(--primary);
    color: var(--bg);
    padding: 16px 32px;
    border-radius: 980px;
    font-size: 19px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
}

.cta:hover {
    background: var(--primary-light);
    transform: scale(1.02);
}

.cta:active {
    transform: scale(0.98);
}

/* ========================================
   Sections générales
   ======================================== */
section {
    padding: 120px 20px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

section:nth-child(even) {
    background: var(--section-bg);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 100px;
}

.section-header-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 100px;
    text-align: center;
}

.section-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 64px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s, transform 1s;
    letter-spacing: -2px;
    color: var(--text);
}

.section-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-light);
    text-align: center;
    margin: 0 auto 100px;
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s 0.1s, transform 1s 0.1s;
    line-height: 1.4;
}

.section-header + .approach,
.section-header + .div,
.section-header-centered + .features {
    margin-top: 0;
}

.section-header .section-title,
.section-header .section-subtitle,
.section-header-centered .section-title,
.section-header-centered .section-subtitle {
    margin-bottom: 0;
    opacity: 1;
    transform: translateY(0);
}

.section-header .section-subtitle {
    margin-top: 8px;
}

.visible .section-title,
.visible .section-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Section Projet
   ======================================== */
.approach {
    max-width: 980px;
    margin: 0 auto 120px;
}

.approach-intro {
    font-size: 21px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.6;
    text-align: center;
    letter-spacing: -0.2px;
}

/* ========================================
   Features / Fonctionnalités
   ======================================== */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 120px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature {
    text-align: center;
    padding: 48px 32px;
    border-radius: 24px;
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

.visible .feature {
    animation: fadeInUp 0.8s ease forwards;
}

.visible .feature:nth-child(1) { animation-delay: 0.1s; }
.visible .feature:nth-child(2) { animation-delay: 0.2s; }
.visible .feature:nth-child(3) { animation-delay: 0.3s; }

.feature:hover {
    background: rgba(0, 0, 0, 0.02);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
}

.feature h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.5px;
}

.feature p {
    font-size: 19px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.5;
}

/* ========================================
   App Showcase Section
   ======================================== */
.app-showcase {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 120px 40px;
}

.app-showcase-text {
    padding-right: 40px;
}

.app-showcase-text h2 {
    font-size: 56px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.app-showcase-text p {
    font-size: 21px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 16px;
}

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

.app-screenshot {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-base);
}

.app-showcase-image:hover .app-screenshot {
    transform: scale(1.02);
}

/* ========================================
   Section téléchargement
   ======================================== */
.download-section {
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
    padding: 100px 40px;
}

.download-title {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -1.5px;
}

.download-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 56px;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--text);
    color: var(--bg);
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    transition: all var(--transition-base);
}

.store-button:hover {
    background: #424245;
    transform: scale(1.02);
}

.store-button:active {
    transform: scale(0.98);
}

.store-button svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ========================================
   Section Vision
   ======================================== */
.vision-text {
    font-size: 21px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.6;
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
    letter-spacing: -0.2px;
}

/* ========================================
   Section Contact
   ======================================== */
#contact .section-subtitle {
    margin-bottom: 60px;
}

.contact-card {
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
    padding: 0;
}

.contact-text {
    font-size: 21px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 48px;
    letter-spacing: -0.2px;
}

.contact-button {
    display: inline-block;
    background: var(--primary);
    color: var(--bg);
    padding: 16px 32px;
    border-radius: 980px;
    font-size: 21px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
}

.contact-button:hover {
    background: var(--primary-light);
    transform: scale(1.02);
}

.contact-button:active {
    transform: scale(0.98);
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: var(--section-bg);
    color: var(--text);
    padding: 80px 20px 60px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.footer-logo .logo-icon {
    width: 48px;
    height: 48px;
}

.footer-logo .logo-text {
    font-size: 24px;
    color: var(--text);
}

.footer-tagline {
    font-size: 17px;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 48px;
}

.footer-disclaimer {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    padding: 32px;
    margin: 48px 0;
    text-align: left;
}

.footer-disclaimer h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.footer-disclaimer p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 12px;
}

.footer-disclaimer p:last-child {
    margin-bottom: 0;
}

.footer-copyright {
    font-size: 14px;
    margin-top: 32px;
    color: var(--text-light);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ========================================
   Media Queries - Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .app-showcase {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 80px 20px;
    }

    .app-showcase-text {
        padding-right: 0;
        text-align: center;
    }

    .app-screenshot {
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    /* Blobs plus petits sur mobile */
    .blob-1, .blob-2, .blob-3, .blob-4 {
        width: 300px;
        height: 300px;
    }

    /* Hero section */
    .hero {
        padding: 100px 20px 60px;
    }

    .hero-subtitle {
        font-size: 21px;
        margin-bottom: 40px;
    }

    .logo {
        margin-bottom: 36px;
        gap: 16px;
    }

    .logo-icon {
        width: 64px;
        height: 64px;
    }

    .logo-text {
        font-size: 40px;
    }

    /* Sections */
    section {
        padding: 80px 20px;
    }

    .section-title {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .section-subtitle {
        font-size: 19px;
        margin-bottom: 60px;
    }

    /* Section header */
    .section-header,
    .section-header-centered {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 60px;
    }

    .section-icon {
        width: 64px;
        height: 64px;
    }

    /* Features */
    .features {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 80px;
    }

    .feature {
        padding: 36px 24px;
    }

    .feature h3 {
        font-size: 24px;
    }

    .feature p {
        font-size: 17px;
    }

    /* App showcase */
    .app-showcase-text h2 {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .app-showcase-text p {
        font-size: 19px;
    }

    /* Download section */
    .download-section {
        padding: 80px 20px;
    }

    .download-title {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .download-subtitle {
        font-size: 19px;
        margin-bottom: 40px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .store-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Text sections */
    .approach-intro,
    .contact-text,
    .vision-text {
        font-size: 19px;
    }

    /* Contact */
    .contact-card {
        padding: 80px 20px;
    }

    .contact-button {
        padding: 14px 28px;
        font-size: 19px;
        width: 100%;
        max-width: 280px;
    }

    /* CTA */
    .cta {
        padding: 14px 28px;
        font-size: 17px;
    }

    /* Language switch */
    .lang-switch {
        top: 16px;
        right: 16px;
        padding: 7px 16px;
        font-size: 13px;
    }

    /* Footer */
    footer {
        padding: 60px 20px 40px;
    }

    .footer-logo .logo-text {
        font-size: 28px;
    }

    .footer-logo svg {
        width: 48px;
        height: 48px;
    }

    .footer-tagline {
        font-size: 15px;
        margin-bottom: 36px;
    }

    .footer-disclaimer {
        padding: 24px 20px;
        margin: 36px 0;
    }

    .footer-disclaimer h3 {
        font-size: 16px;
    }

    .footer-disclaimer p {
        font-size: 13px;
    }

    .footer-copyright {
        font-size: 13px;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .logo-icon {
        width: 96px;
        height: 96px;
    }

    .logo-text {
        font-size: 64px;
    }

    .hero-subtitle {
        font-size: 32px;
    }

    .section-title {
        font-size: 72px;
    }

    .section-subtitle {
        font-size: 28px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .blob {
        animation: none;
    }
}

/* Print styles */
@media print {
    .lang-switch,
    .cta,
    .download-buttons,
    .animated-bg {
        display: none;
    }

    body {
        background: white;
    }
}
