/* --- style.css - DESIGN SYSTEM v7 (FINAL & CORRIGÉ) --- */
:root { 
    --iw-bg: #020617; 
    --iw-dark-card: #0f172a; 
    --iw-primary: #00ffff; 
    --iw-green: #25D366; 
    --iw-text: #ffffff; 
    --iw-muted: #cbd5e1; 
    --iw-border: rgba(255, 255, 255, 0.1);
    --iw-gradient: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(0, 255, 255, 0.1) 100%);
    --iw-radius: 1.2rem;
    --iw-header-h: 88px;
} 

body { background-color: var(--iw-bg); color: var(--iw-text); font-family: "Plus Jakarta Sans", sans-serif; overflow-x: hidden; line-height: 1.7; position: relative; }

/* TYPOGRAPHIE & COULEURS */
p, li, span, div, small, .text-muted { color: var(--iw-muted) !important; }
h1, h2, h3, h4, h5, h6, strong, b, .text-white, .navbar-brand, .nav-link, th, td { color: #fff !important; }
.text-primary-iw { color: var(--iw-primary) !important; }
.text-green-iw { color: var(--iw-green) !important; }
h1, h2, h3, .hero-title, .footer-heading { font-family: 'Syne', sans-serif; letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
.text-link { color: var(--iw-green) !important; text-decoration: underline; text-decoration-color: rgba(37, 211, 102, 0.3); }

/* BACKGROUND ANIMATION */
#particles-js { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
body::before { content: ''; position: fixed; top: -20%; left: 50%; transform: translateX(-50%); width: 100%; max-width: 1200px; height: 800px; background: radial-gradient(circle, rgba(37, 211, 102, 0.05) 0%, transparent 70%); z-index: -2; pointer-events: none; }

/* NAVBAR */
.navbar { background: rgba(2, 6, 23, 0.90); backdrop-filter: blur(15px); border-bottom: 1px solid var(--iw-border); padding: 1rem 0; transition: all 0.3s; }
.navbar-brand { font-weight: 800; font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.logo-cube { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; width: 30px; height: 30px; } 
.logo-cube span { background-color: var(--iw-green); box-shadow: 0 0 5px var(--iw-green); border-radius: 1px; }
.nav-link { font-weight: 500; transition: 0.3s; font-size: 0.95rem; }
.nav-link:hover, .nav-link.active { color: var(--iw-green) !important; text-shadow: 0 0 10px rgba(37, 211, 102, 0.4); }
.btn-nav-cta { background: rgba(37, 211, 102, 0.1); border: 1px solid var(--iw-green); color: #fff !important; padding: 0.6rem 1.4rem; border-radius: 50px; font-size: 0.9rem; transition: all 0.3s; text-decoration: none; font-weight: 600; }
.btn-nav-cta:hover { background: var(--iw-green); color: #000 !important; box-shadow: 0 0 15px rgba(37, 211, 102, 0.4); }

/* SMART HEADER (Sticky effect) */
.navbar.iw-smart-header.is-scrolled { background: rgba(2, 6, 23, 0.95); padding: 0.6rem 0; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.navbar.iw-smart-header.is-hidden { transform: translateY(-100%); }

/* HERO SECTIONS */
.hero { padding: 6rem 0 4rem; text-align: center; position: relative; }
.hero-title { font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1.1; margin-bottom: 1.5rem; }
.hero-sub { font-size: 1.2rem; max-width: 800px; margin: 0 auto 2.5rem; color: var(--iw-muted) !important; }
.text-gradient { background: linear-gradient(135deg, #fff 0%, #25D366 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(37, 211, 102, 0.1); border: 1px solid rgba(37, 211, 102, 0.3); padding: 8px 18px; border-radius: 50px; margin-bottom: 1.5rem; font-size: 0.85rem; color: var(--iw-green) !important; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* BOUTONS GENERIQUES */
.btn-glow { background: var(--iw-green); color: #000 !important; font-weight: 800; padding: 1rem 2.2rem; border-radius: 50px; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; box-shadow: 0 0 20px rgba(37, 211, 102, 0.3); transition: all 0.3s ease; border: none; }
.btn-glow:hover { transform: translateY(-3px); box-shadow: 0 0 40px rgba(37, 211, 102, 0.6); }
.btn-outline { border: 1px solid rgba(255,255,255,0.2); color: #fff !important; border-radius: 50px; padding: 1rem 2.2rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: 0.3s; }
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: #fff; }

/* CARDS & FEATURES */
.feature-card, .hub-card { background: var(--iw-dark-card); padding: 2rem; border-radius: var(--iw-radius); border: 1px solid var(--iw-border); height: 100%; transition: 0.3s; display:block; text-decoration:none; }
.feature-card:hover, .hub-card:hover { border-color: var(--iw-green); transform: translateY(-5px); box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.icon-box, .icon-box-premium { width: 60px; height: 60px; background: rgba(255,255,255,0.05); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--iw-green); border: 1px solid rgba(255,255,255,0.1); }
.hub-card:hover .icon-box-premium { background: var(--iw-green); color: #000 !important; }
.hub-title { font-size: 1.4rem; margin-bottom: 0.8rem; color: #fff !important; }
.hub-link { font-weight: 700; color: var(--iw-green) !important; font-size: 0.9rem; display: flex; align-items: center; gap: 5px; margin-top: 1rem; }

/* PRICING CARDS */
.pricing-card { background: var(--iw-dark-card); border: 1px solid var(--iw-border); border-radius: var(--iw-radius); padding: 2.5rem; position: relative; transition: 0.3s; height: 100%; display: flex; flex-direction: column; }
.pricing-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.3); }
.pricing-card.featured { background: linear-gradient(180deg, #0f172a 0%, #002211 100%); border: 1px solid var(--iw-green); box-shadow: 0 0 40px rgba(37, 211, 102, 0.1); z-index: 2; }
.price-main { font-size: 2.5rem; font-weight: 800; color: #fff !important; line-height: 1; margin: 0.5rem 0; }
.installment-box { background: rgba(37, 211, 102, 0.1); border: 1px solid rgba(37, 211, 102, 0.3); border-radius: 8px; padding: 10px; text-align: center; margin: 1.5rem 0; }
.installment-text { color: var(--iw-green) !important; font-weight: 700; font-size: 1rem; }
.btn-pricing { width: 100%; padding: 1rem; border-radius: 50px; font-weight: 700; text-align: center; text-decoration: none; transition: 0.3s; display: block; margin-top: auto; }
.btn-pricing.outline { border: 1px solid rgba(255,255,255,0.2); color: #fff !important; }
.btn-pricing.outline:hover { border-color: #fff; background: rgba(255,255,255,0.05); }
.btn-pricing.fill { background: var(--iw-green); color: #000 !important; border: none; }
.btn-pricing.fill:hover { box-shadow: 0 0 30px rgba(37, 211, 102, 0.4); }

/* --- PORTFOLIO / REALISATIONS (CORRIGÉ & OPTIMISÉ) --- */
.portfolio-card {
    display: block;
    height: 100%;
    background: var(--iw-dark-card);
    border: 1px solid var(--iw-border);
    border-radius: var(--iw-radius);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--iw-green);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.15);
}

.portfolio-img-wrapper {
    position: relative;
    width: 100%;
    height: 240px; /* HAUTEUR FIXE POUR ALIGNEMENT PARFAIT */
    overflow: hidden;
    border-bottom: 1px solid var(--iw-border);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recadre l'image sans déformation */
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.08); /* Zoom fluide au survol */
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.portfolio-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    background: var(--iw-dark-card);
}

.portfolio-tag {
    color: var(--iw-green);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.portfolio-card h4 {
    color: #fff !important;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.portfolio-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* SEO LINKS BLOCK */
.seo-links-container { padding: 4rem 0; border-top: 1px solid var(--iw-border); margin-top: 4rem; }
.seo-link-item { display: inline-block; margin: 5px; padding: 8px 16px; border-radius: 50px; background: rgba(255,255,255,0.03); color: var(--iw-muted) !important; text-decoration: none; font-size: 0.85rem; border: 1px solid transparent; transition: 0.3s; }
.seo-link-item:hover { background: rgba(37, 211, 102, 0.1); border-color: var(--iw-green); color: #fff !important; transform: translateY(-2px); }

/* FAQ & ACCORDION */
.accordion-item { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.1); margin-bottom: 10px; border-radius: 10px !important; overflow: hidden; }
.accordion-button { background: transparent !important; color: #fff !important; font-weight: 600; box-shadow: none !important; padding: 1.2rem; }
.accordion-button:not(.collapsed) { color: var(--iw-green) !important; }
.accordion-button::after { filter: invert(1); }
.accordion-body { background: transparent; color: var(--iw-muted) !important; }

/* FOOTER */
footer { background: #000; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 4rem; margin-top: 5rem; }
.footer-heading { color: #fff !important; font-weight: 700; margin-bottom: 1.2rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-list { list-style: none !important; padding: 0 !important; margin: 0; }
.footer-list li { margin-bottom: 0.6rem; }
.footer-list a { color: #94a3b8 !important; text-decoration: none; font-size: 0.9rem; transition: 0.3s; display: inline-flex; align-items: center; gap: 5px; }
.footer-list a:hover { color: var(--iw-green) !important; transform: translateX(5px); }
.social-circle { width: 40px; height: 40px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; transition: all 0.3s ease; }
.social-circle:hover { background: var(--iw-green); color: #000 !important; transform: translateY(-3px); }

/* UTILITAIRES & ANIMATION */
.fade-in-section { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.whatsapp-btn-neon { position: fixed; bottom: 25px; right: 25px; z-index: 9999; background: #000; color: #fff !important; padding: 12px 24px; border-radius: 12px; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 12px; border: 2px solid #25D366; box-shadow: 0 0 15px rgba(37, 211, 102, 0.4); transition: 0.3s; }
.whatsapp-btn-neon:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(37, 211, 102, 0.8); background: #0a0a0a; }

/* === MEGA MENU (UNIFIÉ) === */
.iw-desktop-only { display: block !important; } .iw-mobile-only { display: none !important; }
@media (max-width: 991.98px){ .iw-desktop-only { display: none !important; } .iw-mobile-only { display: block !important; } }

.iw-megamenu { position: fixed; left: 50%; top: 85px; transform: translate(-50%, 15px); width: min(1140px, 95vw); z-index: 1050; background: #0f172a; border: 1px solid var(--iw-border); border-radius: 20px; box-shadow: 0 40px 100px rgba(0,0,0,0.7); padding: 30px; visibility: hidden; opacity: 0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.iw-megamenu[hidden]{ display:none!important; }
.iw-megamenu.is-open { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
.iw-mega-close { display: none; position: absolute; top: 20px; right: 20px; background: none; border: none; color: #fff; font-size: 2rem; }
.iw-mega-search-box { background: rgba(0,0,0,0.2); border: 1px solid var(--iw-border); border-radius: 12px; padding: 10px 15px; display: flex; align-items: center; gap: 10px; margin-bottom: 25px; }
.iw-mega-search-box input { background: none; border: none; color: #fff; width: 100%; outline: none; }
.iw-mega-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.iw-mega-title { color: var(--iw-green); font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 15px; }
.iw-mega-link { display: flex; align-items: center; gap: 10px; color: #cbd5e1 !important; text-decoration: none; padding: 8px 0; transition: 0.2s; }
.iw-mega-link:hover { color: var(--iw-green) !important; transform: translateX(5px); }
.iw-mega-promo { background: linear-gradient(135deg, rgba(37,211,102,0.1), rgba(0,255,255,0.05)); padding: 20px; border-radius: 15px; border: 1px solid rgba(37,211,102,0.2); }

@media (max-width: 991px) {
  .iw-megamenu { top: 0; left: 0; transform: translateY(100%); width: 100vw; height: 100vh; border-radius: 0; padding: 20px; }
  .iw-megamenu.is-open { transform: translateY(0); }
  .iw-mega-close { display: block !important; }
}

/* MARQUEE (INDEX) */
.marquee-container { overflow: hidden; padding: 3rem 0; background: linear-gradient(90deg, var(--iw-bg) 0%, transparent 15%, transparent 85%, var(--iw-bg) 100%); border-top: 1px solid var(--iw-border); border-bottom: 1px solid var(--iw-border); }
.marquee-track { display: flex; gap: 2rem; width: max-content; animation: scroll 40s linear infinite; }
.marquee-item { width: 280px; border-radius: 1rem; border: 1px solid var(--iw-border); height: 180px; object-fit: cover; opacity: 0.7; transition: 0.3s; }
.marquee-link:hover .marquee-item { transform: scale(1.05); opacity: 1; border-color: var(--iw-green); box-shadow: 0 5px 20px rgba(37,211,102,0.2); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* CONTACT SPECIFIC */
.contact-wrapper { background: var(--iw-dark-card); border: 1px solid var(--iw-border); border-radius: var(--iw-radius); overflow: hidden; display: flex; flex-wrap: wrap; box-shadow: 0 20px 60px rgba(0,0,0,0.5); margin-top: 3rem; }
.contact-info { flex: 1; padding: 3rem; background: rgba(2, 6, 23, 0.5); min-width: 300px; border-right: 1px solid var(--iw-border); }
.contact-form { flex: 1.3; padding: 3rem; min-width: 300px; }
.form-control, .form-select { background: rgba(255, 255, 255, 0.05) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; color: #ffffff !important; padding: 0.9rem; border-radius: 0.8rem; margin-bottom: 1.5rem; transition: 0.3s; }
.form-control:focus, .form-select:focus { border-color: var(--iw-green) !important; box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15); color: white !important; }