/* ============================================================
   WINDXPLORER - LANDING PAGE STYLES (LP)
   Design: Monochrome, Minimalist, "Zara Home" style
   ============================================================ */

/* --- 1. IMPORT FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- 2. VARIABLES --- */
:root {
    --c-bg: #ffffff;
    --c-surface: #fcfcfc;
    --c-text: #1a1a1a;
    --c-text-muted: #666666;
    --c-primary: #000000;     /* Noir profond */
    --c-accent: #007acc;      /* Bleu WindXplorer */
    --c-border: #e5e5e5;
    
    /* COULEURS SPÉCIFIQUES */
    --c-mockup-title: #4b0082; /* Indigo demandé */
    
    /* Typographie */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Layout */
    --header-height: 70px;
    --container-width: 1200px;
}

/* --- 3. BASE & RESET --- */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    color: var(--c-text);
    background-color: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- 4. TYPOGRAPHIE --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    margin-top: 0;
    color: var(--c-primary);
}

h1 { font-size: 3.5rem; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; font-weight: 600; }
p { font-size: 1.1rem; color: var(--c-text-muted); font-weight: 300; }

a { text-decoration: none; color: inherit; transition: color 0.2s; }

/* --- 5. HEADER --- */
.lp-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-container {
    width: 100%;
    max-width: var(--container-width);
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link svg { height: 32px; display: block; }

.lp-nav-actions { display: flex; align-items: center; gap: 1.5rem; }
.desktop-nav { display: flex; gap: 1.5rem; align-items: center; }

.btn-signup {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text);
    border-bottom: 1px solid transparent;
}
.btn-signup:hover { border-bottom-color: var(--c-primary); }

.btn-login-filled {
    background-color: var(--c-primary);
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s;
}
.btn-login-filled:hover { opacity: 0.8; }

.mobile-nav { display: none; gap: 1rem; align-items: center; }
.btn-icon { color: var(--c-primary); padding: 5px; display: flex; align-items: center; justify-content: center; }

.lang-select {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 4px 2px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--c-text);
    cursor: pointer;
    text-transform: uppercase;
}
.lang-select:hover { border-color: #eee; }

/* --- 6. HERO SECTION --- */
.hero-v2 {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f0f8ff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('https://images.unsplash.com/photo-1534088568595-a066f410bcda?auto=format&fit=crop&w=1920&q=80');
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0.9) 90%, #ffffff 100%);
    z-index: 1;
}

.hero-content-v2 {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 1s ease-out forwards;
}

@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-tag {
    display: inline-block;
    background-color: #d32f2f;
    color: white;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 16px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: var(--c-text);
}

.btn-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: var(--c-primary);
    border: 1px solid var(--c-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}
.btn-cta:hover {
    background-color: var(--c-primary);
    color: white;
}

/* --- 7. MOCKUP SECTION (CORRIGÉE) --- */
.mockup-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    overflow: hidden;
}

.mockup-scroll-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    padding: 1rem 5% 3rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
    -ms-overflow-style: none;
    cursor: grab;
    align-items: flex-start; 
}
.mockup-scroll-container::-webkit-scrollbar { display: none; }

.mockup-card {
    flex: 0 0 auto;
    width: 260px;
    scroll-snap-align: center;
    position: relative; /* Référent pour les textes absolus */
    
    background: transparent; 
    padding: 0; 
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
    overflow: hidden; /* Important pour que l'image ne déborde pas */
    
    opacity: 0; transform: translateY(50px);
}

.mockup-card.visible {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mockup-card:hover {
    transform: translateY(-10px) !important;
    z-index: 10;
}

/* --- CORRECTION TEXTES MOCKUP --- */

/* Conteneur Texte (Force le Z-index au-dessus de l'image) */
.mockup-info {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10; /* Devant l'image */
    pointer-events: none; /* Laisse passer les clics vers la carte */
}

/* TITRE (Légende) - Indigo Gras */
.mockup-caption {
    position: absolute;
    top: 35px; /* 35px du haut */
    left: 0; right: 0;
    text-align: center;
    
    font-family: var(--font-sans);
    font-weight: 800; /* Gras */
    color: var(--c-mockup-title); /* Indigo */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.9);
}

/* DESCRIPTION (Overflow en bas) */
.mockup-desc {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    
    padding: 20px 15px;
    text-align: center;
    font-family: var(--font-sans); /* Sans Serif */
    font-size: 0.85rem;
    color: #333;
    line-height: 1.4;
    
    transform: translateY(100%); /* Caché */
    transition: transform 0.3s ease;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Affichage au survol */
.mockup-card:hover .mockup-desc {
    transform: translateY(0);
}

/* Image */
.mockup-img {
    position: relative;
    z-index: 1; /* Derrière le texte */
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}


/* --- 8. FEATURES SECTION --- */
.features {
    padding: 6rem 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    text-align: center;
}

.feature-item img {
    max-height: 80px;
    width: 80px;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    object-fit: cover;
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

/* --- 9. PAGES CONTENU (About/Legal) --- */
.content-page {
    padding: 140px 2rem 60px;
    max-width: 800px;
    margin: 0 auto;
    min-height: 60vh;
}
.content-page h1 { font-size: 3rem; margin-bottom: 2rem; text-align: center; }
.content-page h2 { font-size: 1.8rem; margin-top: 3rem; margin-bottom: 1rem; border-bottom: 1px solid #eee; padding-bottom: 10px; color: #000; }
.content-page p { font-size: 1.1rem; color: #444; line-height: 1.8; margin-bottom: 1.5rem; text-align: justify; }
.content-page ul { margin-bottom: 2rem; padding-left: 1.5rem; }
.content-page li { margin-bottom: 0.5rem; color: #444; }

/* --- 10. FAQ SECTION --- */
.faq-section {
    background-color: var(--c-surface);
    padding: 6rem 2rem;
    border-top: 1px solid var(--c-border);
}
.faq-container { max-width: 800px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 4rem; font-size: 2rem; border: none; }
.faq-item { background: white; border: 1px solid var(--c-border); margin-bottom: 1rem; border-radius: 4px; overflow: hidden; transition: box-shadow 0.2s; }
.faq-item:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.faq-question { padding: 1.5rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; user-select: none; }
.faq-icon { font-size: 1.5rem; font-weight: 300; transition: transform 0.3s; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 1.5rem; color: var(--c-text-muted); font-size: 1rem; line-height: 1.6; }
.faq-item.active .faq-answer { max-height: 500px; padding-bottom: 1.5rem; border-top: 1px solid #f0f0f0; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* --- 11. FOOTER --- */
.main-footer { background-color: #111; color: #ccc; padding: 5rem 2rem 2rem; font-size: 0.9rem; }
.footer-grid { max-width: var(--container-width); margin: 0 auto 4rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem; }
.footer-col h4 { font-family: var(--font-serif); font-size: 1.2rem; color: white; margin-bottom: 1.5rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #999; transition: color 0.2s; }
.footer-links a:hover { color: white; text-decoration: underline; }
.footer-bottom { max-width: var(--container-width); margin: 0 auto; padding-top: 2rem; border-top: 1px solid #333; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: #666; }

/* --- 12. RESPONSIVE --- */
@media (max-width: 900px) {
    h1 { font-size: 2.5rem; }
    .features { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-nav { display: flex; }
    
    html { font-size: 14px; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .mockup-card { width: 220px; }
    .mockup-scroll-container { justify-content: flex-start; padding: 2rem 1rem 3rem; }
    
    .features { 
        grid-template-columns: 1fr 1fr; 
        gap: 1.5rem; 
        padding: 3rem 1rem;
    }
    .feature-item img { width: 60px; height: 60px; margin-bottom: 0.5rem; }
    .feature-item h3 { font-size: 1rem; margin-bottom: 0.3rem; }
    .feature-item p { font-size: 0.85rem; line-height: 1.4; }
}

/* CORRECTION MOBILE HERO (Padding Augmenté) */
@media (max-width: 600px) {
    .header-container { padding: 0 1rem; }
    .logo-text { display: none; }
    
    .hero-v2 { height: auto; min-height: 500px; padding: 100px 0; }
    
    /* Marge de 90px (60+30) pour descendre le contenu */
    .hero-content-v2 {
        padding-top: 90px; 
    }
    
    .content-page { padding: 100px 1.5rem 40px; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}