/* ==========================================================================
   LILLAPP STUDIO - MASTER STYLESHEET (UNIFIED & CLEAN)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & DESIGN SYSTEM
   -------------------------------------------------------------------------- */
:root {
    --brand-black: #0f0f11;       
    --brand-red: #e63946;         
    --brand-red-light: #fff0f1;   
    --text-main: #2d3748;         
    --text-muted: #6b7280;        
    --bg-white: #ffffff;
    --bg-light: #F7F6F2;          
    --border-color: #e2e8f0;      
    
    --container-width: 1200px;
    --navbar-height: 80px;
    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

/* --------------------------------------------------------------------------
   2. RESETS & GLOBALS
   -------------------------------------------------------------------------- */
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

.container { 
    width: 100%; 
    max-width: var(--container-width); 
    margin: 0 auto; 
    padding: 0 24px; 
}

/* --------------------------------------------------------------------------
   3. ESPACEMENTS, LAYOUTS & UTILITAIRES
   -------------------------------------------------------------------------- */
.section-padding { padding: 120px 0; }
.bg-white { background-color: var(--bg-white); }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--brand-black) !important; color: #ffffff !important; }
.border-top { border-top: 1px solid var(--border-color); }
.text-center { text-align: center; }
.relative-z { position: relative; z-index: 2; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; }

.mt-20 { margin-top: 20px; } 
.mt-30 { margin-top: 30px; } 
.mt-40 { margin-top: 40px; } 
.mt-50 { margin-top: 50px; }
.mb-20 { margin-bottom: 20px; } 
.mb-40 { margin-bottom: 40px; } 
.mb-50 { margin-bottom: 50px; } 
.mb-60 { margin-bottom: 60px; }

/* --------------------------------------------------------------------------
   4. TYPOGRAPHIE
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 { 
    font-family: 'Rubik', sans-serif; 
    color: var(--brand-black); 
    font-weight: 700; 
}

.italic-serif { 
    font-family: 'Playfair Display', serif; 
    font-style: italic; 
    color: var(--brand-red); 
    font-weight: 600; 
}

.section-title { 
    font-size: clamp(2.2rem, 4vw, 3rem); 
    line-height: 1.2; 
    margin-bottom: 20px; 
    color: var(--brand-black); 
}

.section-subtitle { 
    color: var(--text-muted); 
    font-size: 1.15rem; 
    max-width: 700px; 
    margin: 0 auto; 
    line-height: 1.6; 
}

.text-white-title { 
    color: #ffffff !important; 
    font-size: 2.8rem; 
    margin-bottom: 15px; 
}

.cta-subtitle { 
    color: #a0a0a0; 
    font-size: 1.15rem; 
    margin-bottom: 40px; 
    max-width: 650px; 
    margin-left: auto; 
    margin-right: auto; 
    line-height: 1.6; 
}

.editorial-hero { padding: 120px 0 80px; }
.hero-title { 
    font-size: clamp(3rem, 5vw, 4.5rem); 
    line-height: 1.1; 
    margin-bottom: 25px; 
    color: var(--brand-black); 
    letter-spacing: -1px;
}

.hero-lead { 
    font-size: 1.2rem; 
    color: var(--text-muted); 
    max-width: 700px; 
    margin-bottom: 40px; 
    line-height: 1.6; 
}

.section-tag {
    display: inline-block; 
    font-family: 'Inter', sans-serif; 
    font-size: 0.8rem; 
    text-transform: uppercase;
    font-weight: 700; 
    letter-spacing: 1px; 
    color: var(--brand-red); 
    background: var(--brand-red-light);
    padding: 6px 16px; 
    border-radius: 50px; 
    margin-bottom: 20px;
}

.section-tag.border-dark { 
    background: transparent; 
    color: var(--brand-black); 
    border: 1px solid var(--brand-black); 
}

.section-tag.border-white { 
    background: transparent; 
    color: #ffffff; 
    border: 1px solid rgba(255, 255, 255, 0.3); 
}

/* --------------------------------------------------------------------------
   5. BOUTONS
   -------------------------------------------------------------------------- */
.hero-actions { 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
}

.justify-center { justify-content: center; }

.btn-primary-solid {
    display: inline-block; 
    background: var(--brand-red); 
    color: #ffffff !important;
    font-family: 'Inter', sans-serif; 
    font-weight: 700; 
    font-size: 1rem;
    padding: 16px 36px; 
    border-radius: var(--radius-sm); 
    text-decoration: none !important;
    transition: all 0.3s ease; 
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2); 
    border: none; 
    cursor: pointer; 
    text-align: center;
}

.btn-primary-solid:hover { 
    background: #f06969; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3); 
}

.btn-outline-dark {
    display: inline-block; 
    padding: 14px 30px; 
    border: 2px solid var(--brand-black);
    color: var(--brand-black); 
    font-weight: 700; 
    border-radius: var(--radius-sm);
    text-decoration: none !important; 
    transition: all 0.2s ease; 
    text-align: center;
}

.btn-outline-dark:hover { 
    background: var(--brand-black); 
    color: #ffffff; 
}

/* --------------------------------------------------------------------------
   6. NAVBAR GLOBAL (DESKTOP NO-STRIKE & MOBILE ACCORDION)
   -------------------------------------------------------------------------- */
.site-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    position: relative;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

/* Neutralisation du soulignement natif */
.nav-links a {
    text-decoration: none !important;
    -webkit-text-decoration-line: none !important;
}

.nav-links li a:not(.nav-btn-premium) {
    color: var(--brand-black);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 10px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

/* Ligne rouge sous le texte au survol (Desktop) */
.nav-links > li > a:not(.nav-btn-premium)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0px;
    left: 0;
    background-color: var(--brand-red);
    transition: width 0.3s ease;
}

.nav-links > li > a:hover, 
.nav-links > li > a.active {
    color: var(--brand-red);
}

.nav-links > li > a:hover::after, 
.nav-links > li > a.active::after {
    width: 100%;
}

.arrow-indicator {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}

/* --- DROPDOWN DESKTOP --- */
.nav-links li.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 0;
    min-width: 240px;
    z-index: 1000;
    list-style: none;
    flex-direction: column;
}

@media (min-width: 992px) {
    .nav-links li.dropdown:hover .dropdown-menu {
        display: flex;
        animation: fadeInDropdown 0.2s ease-in-out forwards;
    }

    .nav-links li.dropdown:hover .arrow-indicator {
        transform: rotate(180deg);
        color: var(--brand-red);
    }
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.dropdown-menu li {
    width: 100%;
    text-align: center;
}

.dropdown-menu li a {
    display: block !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    color: var(--text-main) !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
}

.dropdown-menu li a::after {
    display: none !important;
}

.dropdown-menu li a:hover {
    color: var(--brand-red) !important;
    background-color: var(--bg-light);
}

.nav-btn-premium {
    background-color: var(--brand-black);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-btn-premium:hover {
    background-color: var(--brand-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.2);
}

/* --------------------------------------------------------------------------
   7. GRILLES ÉDITORIALES & IMAGES
   -------------------------------------------------------------------------- */
.editorial-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; 
}

.editorial-grid.reverse .img-wrapper-local { order: 1; }
.editorial-grid.reverse div:not(.img-wrapper-local) { order: 2; }
.img-wrapper-local { position: relative; }
.img-editorial { 
    width: 100%; 
    border-radius: var(--radius-lg); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
    object-fit: cover; 
    aspect-ratio: 4/5; 
}

.editorial-paragraph { 
    color: var(--text-muted); 
    font-size: 1.1rem; 
    line-height: 1.7; 
    margin-bottom: 20px; 
}

.editorial-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.editorial-list li { 
    position: relative; 
    padding: 12px 0 12px 25px; 
    border-bottom: 1px solid var(--bg-light); 
    color: var(--brand-black); 
    font-size: 1.05rem; 
    line-height: 1.5; 
}

.editorial-list li::before { 
    content: '—'; 
    position: absolute; 
    left: 0; 
    top: 12px; 
    color: var(--brand-red); 
    font-weight: bold; 
}

/* --------------------------------------------------------------------------
   8. BENTO PORTFOLIO & TECH
   -------------------------------------------------------------------------- */
.portfolio-bento { 
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 30px; 
    margin-top: 40px; 
}

.portfolio-card { 
    position: relative; 
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    height: 400px; 
    background: var(--brand-black); 
    text-decoration: none; 
    display: block; 
    border: 1px solid var(--border-color);
}

.portfolio-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0.6; 
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s ease; 
}

.portfolio-card:hover img { 
    opacity: 0.9; 
    transform: scale(1.05); 
}

.portfolio-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 40px; 
    z-index: 2; 
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3), transparent); 
    transition: transform 0.4s ease; 
    transform: translateY(10px); 
}

.portfolio-card:hover .portfolio-content { transform: translateY(0); }

.portfolio-tag { 
    display: inline-block; 
    background: var(--brand-red); 
    color: #ffffff; 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    padding: 6px 12px; 
    border-radius: 50px; 
    margin-bottom: 15px;
}

.portfolio-title { color: #ffffff; font-size: 2.2rem; margin-bottom: 10px; line-height: 1.1; }
.portfolio-desc { color: rgba(255,255,255,0.8); font-size: 1.05rem; line-height: 1.5; margin-bottom: 0; }
.bento-wide { grid-column: 1 / -1; }

.tech-logos-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 40px 60px; }
.tech-logos-row img { height: 40px; width: auto; filter: grayscale(100%) opacity(0.6); transition: all 0.3s; }
.tech-logos-row img:hover { filter: grayscale(0%) opacity(1); transform: scale(1.05); }

/* --------------------------------------------------------------------------
   9. TARIFS & FAQ
   -------------------------------------------------------------------------- */
.pricing-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px; 
    margin-top: 40px; 
    align-items: stretch;
}

.pricing-card { 
    background: #ffffff; 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-lg); 
    padding: 40px 30px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.03); 
    display: flex; 
    flex-direction: column; 
    position: relative;
}

.pricing-card.popular { 
    border: 2px solid var(--brand-red); 
    box-shadow: 0 20px 50px rgba(230, 57, 70, 0.08); 
    transform: translateY(-10px); 
}

.popular-badge { 
    position: absolute; 
    top: -15px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: var(--brand-red); 
    color: #ffffff; 
    font-size: 0.8rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    padding: 6px 16px; 
    border-radius: 50px; 
}

.pricing-header h3 { font-size: 1.5rem; margin-bottom: 10px; font-family: 'Playfair Display', serif; font-style: italic; }
.pricing-header p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; margin-bottom: 25px; }
.pricing-price { font-family: 'Rubik', sans-serif; font-size: 2.5rem; font-weight: 900; color: var(--brand-red); line-height: 1; margin-bottom: 25px; }
.pricing-price span { font-size: 1rem; font-weight: 600; color: var(--brand-black); }

.pricing-features { list-style: none; padding: 0; margin: 0; flex-grow: 1; }
.pricing-features li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--bg-light); color: var(--brand-black); font-size: 0.95rem; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li .check { position: absolute; left: 0; top: 8px; color: var(--brand-red); font-weight: bold; }

.faq-item { border-bottom: 1px solid var(--border-color); margin-bottom: 10px;}
.faq-item summary { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.4rem; padding: 20px 0; cursor: pointer; color: var(--brand-black); font-weight: 600;}
.faq-answer { padding-bottom: 20px; color: var(--text-muted); line-height: 1.6;}

/* --------------------------------------------------------------------------
   10. CTA FINAL & FOOTER
   -------------------------------------------------------------------------- */
.cta-final { 
    padding: 120px 0; 
    background: var(--brand-black); 
    color: #ffffff; 
    text-align: center; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}

.site-footer { 
    background-color: var(--brand-black); 
    color: #ffffff; 
    padding: 80px 0 30px; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1.5fr; 
    gap: 60px; 
    margin-bottom: 60px; 
}

.footer-logo { height: 38px; margin-bottom: 20px;}
.footer-description { color: #94a3b8; font-size: 0.95rem; margin-bottom: 25px; max-width: 300px; }
.footer-nav h4, .footer-contact h4 { font-size: 1.1rem; margin-bottom: 25px; color: #ffffff; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 14px; padding: 0;}
.footer-nav a { color: #94a3b8; text-decoration: none; font-size: 0.95rem; transition: all 0.3s; }
.footer-nav a:hover { color: #ffffff; transform: translateX(6px); display: inline-block;}
.footer-mail-link { color: #ffffff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--brand-red); padding-bottom: 4px; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.08); color: #64748b; font-size: 0.85rem; }

/* --------------------------------------------------------------------------
   11. RESPONSIVE MOBILE & TABLETTE (ACCORDÉON & RESPONSIVE GLOBAL)
   -------------------------------------------------------------------------- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--brand-black);
    transition: all 0.3s;
}

@media (max-width: 991px) {
    .mobile-menu-toggle { display: block; }

    .nav-links {
        position: absolute;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 30px 20px;
        gap: 15px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
        z-index: 9999;
        align-items: center;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .mobile-menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li.dropdown > a {
        justify-content: center;
    }

    .nav-links > li > a:not(.nav-btn-premium)::after {
        display: none !important;
    }

    .dropdown-menu {
        display: none !important;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 10px 0;
        background: var(--bg-light);
        border-radius: var(--radius-sm);
        margin-top: 8px;
        width: 100%;
    }

    .nav-links li.dropdown.open .dropdown-menu {
        display: flex !important;
    }

    .nav-links li.dropdown.open .arrow-indicator {
        transform: rotate(180deg);
        color: var(--brand-red);
    }

    .section-padding { padding: 80px 0 !important; }
    .editorial-hero { padding: 80px 0 40px; text-align: center; }
    .hero-actions { justify-content: center; }
    
    .editorial-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .editorial-grid.reverse .img-wrapper-local { order: 2; }
    .editorial-grid.reverse div:not(.img-wrapper-local) { order: 1; }
    
    .portfolio-bento { grid-template-columns: 1fr; }
    .portfolio-card { height: 350px; }
    .pricing-grid { grid-template-columns: 1fr !important; }
    .pricing-card.popular { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions a, .hero-actions button { width: 100%; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
}