/* ===== LANDING PAGE STYLES ===== */
/* Styles pour la page d'accueil marketing */

/* Variables spÃ©cifiques landing */
:root {
    --landing-primary: #2c5530;
    --landing-secondary: #4CAF50;
    --landing-accent: #ff6b6b;
    --landing-gradient-hero: linear-gradient(135deg, rgba(44, 85, 48, 0.8) 0%, rgba(76, 175, 80, 0.7) 100%);
    --landing-gradient-about: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
    --landing-gradient-cta: linear-gradient(135deg, #2c5530 0%, #4CAF50 100%);
    --landing-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --landing-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --landing-text-primary: #333;
    --landing-text-secondary: #555;
    --landing-text-muted: #666;
}

/* Body pour landing page */
body.landing-theme {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--landing-text-primary);
    overflow-x: hidden;
}

/* Header fixe */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.landing-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--landing-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-cta-button {
    background: linear-gradient(135deg, var(--landing-secondary) 0%, #45a049 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.landing-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

/* Section Hero */
.landing-hero {
    height: 100vh;
    background: var(--landing-gradient-hero),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23e8f5e8" width="1200" height="800"/><g fill="%234CAF50" opacity="0.1"><circle cx="200" cy="200" r="100"/><circle cx="800" cy="150" r="80"/><circle cx="1000" cy="300" r="120"/><circle cx="300" cy="500" r="90"/><circle cx="900" cy="600" r="70"/></g><path fill="%232c5530" opacity="0.05" d="M0 400c200-100 400-50 600-80s400-30 600 50v430H0z"/></svg>') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.landing-hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: landing-fadeInUp 1s ease-out;
}

.landing-hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    color: white !important;
}

.landing-hero .landing-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
    color: white !important;
}

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

/* Boutons landing */
.landing-btn-primary {
    background: linear-gradient(135deg, var(--landing-accent) 0%, #ee5a52 100%);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.landing-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.5);
}

.landing-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 18px 40px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.landing-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Container gÃ©nÃ©rique */
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section About */
.landing-about {
    padding: 100px 0;
    background: var(--landing-gradient-about);
}

.landing-about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.landing-about-text h2 {
    font-size: 3rem;
    color: var(--landing-primary);
    margin-bottom: 30px;
    font-weight: 700;
}

.landing-about-text p {
    font-size: 1.2rem;
    color: var(--landing-text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
}

.landing-about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.landing-about-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.landing-about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Image placeholder pour demo */
.landing-demo-image {
    background: linear-gradient(135deg, var(--landing-secondary) 0%, #81C784 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    height: 400px;
}

/* Section Features */
.landing-features {
    padding: 100px 0;
    background: white;
}

.landing-features h2 {
    text-align: center;
    font-size: 3rem;
    color: var(--landing-primary);
    margin-bottom: 60px;
    font-weight: 700;
}

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

.landing-feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fff8 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--landing-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.landing-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--landing-shadow-hover);
}

.landing-feature-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.landing-feature-card h3 {
    font-size: 1.5rem;
    color: var(--landing-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.landing-feature-card p {
    color: var(--landing-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Section CTA */
.landing-cta-section {
    padding: 100px 0;
    background: var(--landing-gradient-cta);
    color: white;
    text-align: center;
}

.landing-cta-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.landing-cta-section p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Footer */
.landing-footer {
    background: #1a1a1a;
    color: white;
    padding: 50px 0 30px;
    text-align: center;
}

.landing-footer-content {
    margin-bottom: 30px;
}

.landing-footer h3 {
    color: var(--landing-secondary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.landing-footer p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.landing-footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    opacity: 0.6;
}

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

.landing-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.landing-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile and Tablet - 768px and below */
@media (max-width: 768px) {
    /* Header fixes */
    .landing-header {
        position: fixed !important; /* Keep it fixed like desktop */
        padding: 10px 0; /* Minimal header padding */
    }
    
    .landing-nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    
    /* Logo - keep as single line */
    .landing-logo {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        gap: 10px !important;
        font-size: 24px; /* Slightly smaller on mobile */
    }
    
    .landing-logo .logo-line-1,
    .landing-logo .logo-line-2 {
        display: inline !important;
    }
    
    /* Hide connection button */
    .landing-cta-button {
        display: none;
    }
    
    /* Hero section adjustments */
    .landing-hero {
        height: auto; /* Remove fixed 100vh height */
        min-height: 70vh; /* Much smaller minimum height */
        padding-top: 10px; /* Very minimal top padding */
        padding-bottom: 40px; /* Add bottom padding instead */
        display: flex;
        align-items: flex-start; /* Align to top instead of center */
        justify-content: center;
    }
    
    .landing-hero-content {
        position: relative;
        z-index: 10;
        background: transparent; /* No dark background */
        padding: 0 20px;
        border-radius: 0;
        backdrop-filter: none;
        margin-top: 60px; /* Pushed down for better positioning */
    }
    
    /* Text visibility improvements */
    .landing-hero h1 {
        font-size: 2.5rem;
        color: white !important;
        text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
        font-weight: 800; /* Bolder text */
    }

    .landing-hero .landing-subtitle {
        font-size: 1.2rem;
        color: white !important;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
        font-weight: 500; /* Slightly bolder */
    }
    
    .landing-btn-primary,
    .landing-btn-secondary {
        padding: 15px 30px;
        font-size: 16px;
        color: white !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }

    .landing-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Other sections */
    .landing-about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .landing-about-text h2,
    .landing-features h2,
    .landing-cta-section h2 {
        font-size: 2rem;
    }

    .landing-about-image {
        transform: none;
    }

    .landing-features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .landing-feature-card {
        padding: 30px 20px;
    }
}

/* Extra small screens - 480px and below */
@media (max-width: 480px) {
    .landing-hero {
        min-height: 60vh; /* Even smaller on tiny screens */
        padding-top: 5px;
    }
    
    .landing-hero-content {
        margin-top: 50px;
    }
    
    .landing-header {
        padding: 8px 0;
    }
    
    .landing-logo {
        font-size: 22px;
    }

    .landing-hero h1 {
        font-size: 2rem;
    }

    .landing-hero .landing-subtitle {
        font-size: 1.1rem;
    }

    .landing-about-text h2,
    .landing-features h2,
    .landing-cta-section h2 {
        font-size: 1.8rem;
    }

    .landing-about-text p {
        font-size: 1.1rem;
    }

    .landing-container {
        padding: 0 15px;
    }
}

/* ===== PERFORMANCE AND ACCESSIBILITY ===== */

.landing-fade-in {
    will-change: opacity, transform;
}

.landing-feature-card,
.landing-btn-primary,
.landing-btn-secondary {
    will-change: transform;
}

/* Focus states pour accessibilitÃ© */
.landing-cta-button:focus,
.landing-btn-primary:focus,
.landing-btn-secondary:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Smooth scroll behavior */
html.landing-theme {
    scroll-behavior: smooth;
}

/* Loading states */
.landing-loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.landing-loaded {
    opacity: 1;
}

/* Print styles */
@media print {
    .landing-header,
    .landing-hero-buttons,
    .landing-cta-section {
        display: none;
    }
    
    .landing-hero {
        height: auto;
        padding: 20px 0;
        background: white;
        color: black;
    }
}