/* =================================================================
   0. IMPORTATION COMPLÈTE DE LA FAMILLE LUFGA
   ================================================================= */
@font-face { font-family: 'Lufga'; src: url('./assets/fonts/LufgaThin.woff') format('woff'); font-weight: 100; font-style: normal; }
@font-face { font-family: 'Lufga'; src: url('./assets/fonts/LufgaThinItalic.woff') format('woff'); font-weight: 100; font-style: italic; }
@font-face { font-family: 'Lufga'; src: url('./assets/fonts/LufgaExtraLight.woff') format('woff'); font-weight: 200; font-style: normal; }
@font-face { font-family: 'Lufga'; src: url('./assets/fonts/LufgaExtraLightItalic.woff') format('woff'); font-weight: 200; font-style: italic; }
@font-face { font-family: 'Lufga'; src: url('./assets/fonts/LufgaLight.woff') format('woff'); font-weight: 300; font-style: normal; }
@font-face { font-family: 'Lufga'; src: url('./assets/fonts/LufgaLightItalic.woff') format('woff'); font-weight: 300; font-style: italic; }
@font-face { font-family: 'Lufga'; src: url('./assets/fonts/LufgaRegular.woff') format('woff'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'Lufga'; src: url('./assets/fonts/LufgaItalic.woff') format('woff'); font-weight: 400; font-style: italic; }
@font-face { font-family: 'Lufga'; src: url('./assets/fonts/LufgaMedium.woff') format('woff'); font-weight: 500; font-style: normal; }
@font-face { font-family: 'Lufga'; src: url('./assets/fonts/LufgaMediumItalic.woff') format('woff'); font-weight: 500; font-style: italic; }
@font-face { font-family: 'Lufga'; src: url('./assets/fonts/LufgaSemiBold.woff') format('woff'); font-weight: 600; font-style: normal; }
@font-face { font-family: 'Lufga'; src: url('./assets/fonts/LufgaSemiBoldItalic.woff') format('woff'); font-weight: 600; font-style: italic; }
@font-face { font-family: 'Lufga'; src: url('./assets/fonts/LufgaBold.woff') format('woff'); font-weight: 700; font-style: normal; }
@font-face { font-family: 'Lufga'; src: url('./assets/fonts/LufgaBoldItalic.woff') format('woff'); font-weight: 700; font-style: italic; }
@font-face { font-family: 'Lufga'; src: url('./assets/fonts/LufgaExtraBold.woff') format('woff'); font-weight: 800; font-style: normal; }
@font-face { font-family: 'Lufga'; src: url('./assets/fonts/LufgaExtraBoldItalic.woff') format('woff'); font-weight: 800; font-style: italic; }
@font-face { font-family: 'Lufga'; src: url('./assets/fonts/LufgaBlack.woff') format('woff'); font-weight: 900; font-style: normal; }
@font-face { font-family: 'Lufga'; src: url('./assets/fonts/LufgaBlackItalic.woff') format('woff'); font-weight: 900; font-style: italic; }

/* =================================================================
   1. VARIABLES GLOBALES
   ================================================================= */
:root {
    --color-main: #FF4FA3; 
    --color-secondary: #5C1B8B; 
    --color-soft-blue: #C9DAE8; 
    --color-soft-yellow: #FFF9C4; 
    --color-dark: #1D1D1D; 
    --color-light: #FFFFFF; 
    --font-family: 'Lufga', sans-serif; 
    --border-radius-lg: 30px; 
    --border-radius-sm: 8px; 
    --spacing-section: 100px; 
    --spacing-content: 60px; 
}

/* =================================================================
   2. STYLES GÉNÉRAUX & RESET
   ================================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-family);
    color: var(--color-dark);
    line-height: 1.6;
    background-color: var(--color-light);
    overflow-x: hidden;
    font-weight: 400;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

h1, h2, h4, h3 { margin-bottom: 20px; line-height: 1.1; font-family: var(--font-family); }
h1 { font-size: 4em; font-weight: 900; } 
h2 { font-size: 2.8em; font-weight: 800; } 
h3 { font-size: 1.8em; font-weight: 700; margin-top: 30px; }
h4 { font-size: 1.2em; font-weight: 700; } 
p { margin-bottom: 20px; font-weight: 400; }

.highlight { color: var(--color-main); font-weight: 700; }
.highlight-liwu { color: var(--color-main); font-weight: 900; display: inline; } 
.text-center { text-align: center; }

/* =================================================================
   3. BOUTONS & BADGES
   ================================================================= */
.app-badges { display: flex; gap: 15px; margin-top: 25px; flex-wrap: wrap; }
.badge-placeholder {
    padding: 15px 25px; background-color: var(--color-dark); color: var(--color-light);
    border-radius: var(--border-radius-sm); font-size: 0.9em; font-weight: 500;
}
.btn {
    display: inline-block; padding: 12px 25px; text-decoration: none; 
    font-weight: 600; border-radius: var(--border-radius-lg); transition: all 0.3s ease; text-align: center; cursor: pointer; border: none;
}
.btn-outline {
    background-color: var(--color-main); color: var(--color-light); border: 2px solid var(--color-main);
    box-shadow: 0 4px 15px rgba(255, 79, 163, 0.6); font-size: 1.1em; padding: 14px 30px; 
}
.btn-outline:hover {
    background-color: var(--color-secondary); color: var(--color-light); border-color: var(--color-secondary);
}
.btn-readmore {
    background-color: var(--color-main); color: var(--color-light); padding: 15px 40px;
    box-shadow: 0 4px 15px rgba(255, 79, 163, 0.5); margin-bottom: 10px;
}
.btn-readmore:hover { background-color: var(--color-secondary); }

/* Images Stores */
.store-badge-link { display: inline-block; transition: transform 0.2s; margin: 0 5px; }
.store-badge-link:hover { transform: scale(1.05); }
.store-badge-img { height: 65px; width: auto; display: block; }

/* =================================================================
   4. HEADER & NAV
   ================================================================= */
.top-bar { background-color: var(--color-main); padding: 6px 0; text-align: center; font-size: 0.85em; }
.top-bar p { color: var(--color-light); margin: 0; font-weight: 400; }

.main-header {
    padding: 20px 0; background-color: var(--color-light); position: sticky; 
    top: 0; z-index: 500; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); 
}
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 50px; width: auto; object-fit: contain; }

/* =================================================================
   5. SECTIONS PRINCIPALES
   ================================================================= */

/* HERO */
.hero-section {
    min-height: 85vh; padding-top: 150px; padding-bottom: 100px; 
    background-color: transparent !important; 
    background-image: url('./assets/images/fond.webp'); 
    background-size: cover; 
    background-position: center bottom; 
    background-repeat: no-repeat; 
    position: relative; display: flex; align-items: center; 
}
.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; 
    align-items: center; position: relative; z-index: 2; width: 100%;
}
.hero-content { padding-right: 40px; }
.hero-content .app-badges { justify-content: flex-start; }

/* STATS BANNER */
.stats-banner {
    position: relative;
    width: 100%;
    min-height: 450px; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-main);
}
.video-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 1;
}
.relative-content {
    position: relative; z-index: 3; width: 100%; text-align: center; padding: 20px;
}
.stats-value {
    color: #0F1B4C; font-size: 7em; font-weight: 900; margin-bottom: 5px; line-height: 1; 
    text-shadow: 0 2px 15px rgba(255,255,255,0.4);
}
.stats-text {
    color: #0F1B4C; font-size: 2.5em; font-weight: 700; margin-bottom: 30px; 
    text-shadow: 0 1px 10px rgba(255,255,255,0.4); line-height: 1.2;
}
.stats-banner .app-badges { justify-content: center; }

/* --- SECTION B2B (Clean) --- */
.b2b-section {
    padding: 80px 0;
    background-color: var(--color-light); 
}
.b2b-box {
    max-width: 850px; margin: 0 auto; padding: 40px; text-align: center;
}
.b2b-box h2 {
    font-size: 2.8em; font-weight: 800; color: var(--color-dark); margin-bottom: 30px;
}
.b2b-intro {
    font-size: 1.3em; color: #555; font-weight: 500; margin-bottom: 40px;
}
.b2b-box h3 {
    font-size: 1.8em; font-weight: 800; color: var(--color-dark); margin-bottom: 20px; margin-top: 0;
}
.b2b-highlight {
    display: block; margin-top: 25px; font-size: 1.4em; font-weight: 800; color: var(--color-main); 
}

/* FEATURES */
.feature-section { padding: var(--spacing-section) 0; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; align-items: flex-start; }
.reverse-layout .feature-grid { direction: rtl; }
.feature-mockup { direction: ltr; }
.feature-img { width: 100%; max-width: 450px; height: auto; display: block; margin: 0 auto; }
.feature-list { list-style: none; margin-top: 40px; }
.feature-list li { display: flex; align-items: flex-start; margin-bottom: 40px; gap: 15px; }
.pink-circle {
    width: 40px; height: 40px; background-color: var(--color-main); color: var(--color-light);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-weight: 700; flex-shrink: 0;
}
.list-text h4 { margin-top: 0; margin-bottom: 5px; font-weight: 700; }
.list-text p { margin-bottom: 0; font-size: 0.95em; }

/* BLUE SECTION (TERRE) */
.blue-section { background-color: var(--color-soft-blue); padding: var(--spacing-section) 0; }
.blue-text-paragraph { max-width: 700px; margin: 20px auto 40px; }
.earth-video-direct { 
    width: 100%; max-width: 400px; height: auto; display: block; margin: 30px auto 0;
}

.cta-section { padding: var(--spacing-section) 0; }
.cta-section .app-badges { justify-content: center; }

/* =================================================================
   FOOTER
   ================================================================= */
.main-footer {
    background-color: var(--color-light); padding: 80px 0 40px;
    border-top: 1px solid #eee; color: var(--color-dark);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }

.social-links { display: flex; gap: 15px; justify-content: flex-start; margin-top: 0; }
.social-icon { height: 50px; width: auto; display: block; transition: transform 0.3s ease; }
.social-links a:hover .social-icon { transform: scale(1.1); }

.footer-col h4 { font-size: 1.1em; font-weight: 800; margin-bottom: 20px; color: var(--color-dark); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    text-decoration: none; color: #666; font-weight: 500; transition: color 0.3s; font-size: 0.95em;
    display: inline-block;
}
.footer-links a:hover { color: var(--color-main); padding-left: 5px; }
.footer-bottom { text-align: center; border-top: 1px solid #f0f0f0; padding-top: 30px; color: #999; font-size: 0.85em; }

/* =================================================================
   --- STYLES DES PAGES INTERNES & FAQ ---
   ================================================================= */
.page-header { background-color: var(--color-soft-blue); padding: 60px 0; text-align: center; }
.page-header h1 { font-size: 3em; margin-bottom: 10px; }
.page-container { max-width: 800px; margin: 60px auto; padding: 0 20px; min-height: 50vh; }
.text-content p { margin-bottom: 20px; text-align: justify; }
.text-content ul { margin-bottom: 20px; padding-left: 20px; }
.text-content li { margin-bottom: 10px; }

/* Formulaire Contact */
.contact-form { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.form-group label { font-weight: 700; margin-bottom: 8px; display: block; }
.form-group input, .form-group textarea {
    width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: var(--border-radius-sm); font-family: var(--font-family);
}
.contact-btn { background-color: var(--color-main); color: #fff; border: none; font-size: 1em; cursor: pointer; }

/* FAQ Styles */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-category-title {
    color: var(--color-main); font-size: 1.5em; font-weight: 800; margin-top: 50px;
    margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #eee;
}
.faq-item { background-color: var(--color-light); border-bottom: 1px solid #eee; padding: 25px 0; transition: all 0.3s ease; }
.faq-question {
    font-family: var(--font-family); font-weight: 700; font-size: 1.2em; color: var(--color-dark);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: color 0.3s ease;
}
.faq-question:hover { color: var(--color-main); }
.faq-question::after { content: '+'; font-size: 1.5em; font-weight: 300; color: var(--color-main); margin-left: 15px; transition: transform 0.3s ease; }
.faq-item.active .faq-question::after { content: '-'; transform: rotate(180deg); }
.faq-item.active .faq-question { color: var(--color-main); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease, margin-top 0.3s ease;
    color: #666; font-size: 1em; line-height: 1.6; padding-right: 20px;
}
.faq-item.active .faq-answer { max-height: 1000px; margin-top: 15px; }
.faq-answer ul { padding-left: 20px; margin-top: 10px; }
.faq-answer li { margin-bottom: 5px; }

/* Modale */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); display: none; justify-content: center; align-items: center; z-index: 2000; }
.modal-content { background-color: var(--color-light); color: var(--color-dark); padding: 30px; border-radius: var(--border-radius-sm); max-width: 450px; width: 90%; text-align: center; position: relative; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4); }
.modal-content h2 { color: var(--color-main); font-size: 1.8em; margin-top: 10px; font-weight: 800; }
.modal-close-btn { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 1.5em; color: var(--color-dark); cursor: pointer; opacity: 0.7; }
.modal-close-btn:hover { opacity: 1; }
.qr-code-placeholder { width: 200px; height: 200px; background-color: var(--color-soft-blue); margin: 20px auto; display: flex; justify-content: center; align-items: center; border-radius: var(--border-radius-sm); font-weight: 600; font-size: 0.9em; }
.modal-buttons { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.small-info { font-size: 0.8em; margin-top: 20px; }

/* =================================================================
   📱 MEDIA QUERIES (RESPONSIVE MOBILE)
   ================================================================= */
@media screen and (max-width: 900px) {
    /* 1. Global */
    .container { width: 90%; }
    h1 { font-size: 2.2em; text-align: center; }
    h2 { font-size: 1.8em; text-align: center; }
    h3 { font-size: 1.5em; }
    p { text-align: center; }

    /* 2. Header */
    .main-header .container { flex-direction: column; gap: 15px; }
    .logo-img { height: 40px; }

    /* 3. Hero Mobile - FIX DU TEXTE */
    .hero-section {
        /* On réduit le padding haut pour remonter le texte */
        padding-top: 50px; 
        
        /* On augmente la hauteur pour pousser l'image vers le bas */
        height: 95vh; 
        
        background-position: center bottom;
        text-align: center;
        align-items: flex-start;
        display: flex;
    }
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-content { 
        padding-right: 0; 
        display: flex; flex-direction: column; align-items: center; 
        /* Petite marge négative pour tirer encore plus haut si besoin */
        margin-top: -20px; 
    }
    .hero-content .app-badges { justify-content: center; }

    /* 4. Stats Banner Mobile */
    .stats-banner { min-height: 400px; }
    .stats-value { font-size: 4em; margin-bottom: 10px; }
    .stats-text { font-size: 1.5em; }

    /* 4.5 B2B Mobile */
    .b2b-box { padding: 20px; }
    .b2b-box h2 { font-size: 2em; }
    .b2b-box h3 { font-size: 1.5em; }

    /* 5. Features */
    .feature-section { padding: 50px 0; }
    .feature-grid { grid-template-columns: 1fr; gap: 40px; }
    .reverse-layout .feature-grid { direction: ltr; }
    .feature-mockup { margin-bottom: 20px; }
    .feature-img { max-width: 80%; margin: 0 auto; }
    .feature-list li { flex-direction: column; align-items: center; text-align: center; }
    .pink-circle { margin-bottom: 10px; }

    /* 6. Footer Mobile */
    .main-footer { padding: 40px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .social-links { justify-content: center; margin-top: 20px; }
    .footer-links li { text-align: center; }

    /* 7. Pages Internes */
    .page-header { padding: 40px 0; }
    .page-header h1 { font-size: 2em; }
    .text-content p, .text-content li { text-align: left; }
    .faq-question { font-size: 1em; }

    /* 8. Vidéo Terre Mobile (Fix fond noir) */
    .earth-video-direct {
        mix-blend-mode: screen; 
        filter: saturate(200%) contrast(150%);
        border-radius: 0;
    }
}