/* ==========================================================================
   EVSpark — Feuille de style unique
   Palette, composants, pages accueil + antivirus, responsive Bootstrap 5
   ========================================================================== */

/* ---------- Variables CSS ---------- */
:root {
    --primary: #00D9FF;
    --secondary: #7C3AED;
    --accent: #F59E0B;
    --dark: #1F2937;
    --light-gray: #F3F4F6;
    --medium-gray: #9CA3AF;
    --white: #FFFFFF;
    --gradient-electric: linear-gradient(135deg, #00D9FF 0%, #7C3AED 100%);
    --gradient-warm: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    --shadow-sm: 0 2px 8px rgba(0, 217, 255, 0.1);
    --shadow-md: 0 8px 24px rgba(0, 217, 255, 0.15);
    --shadow-lg: 0 16px 48px rgba(0, 217, 255, 0.2);
}

/* ---------- Reset / Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--white);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

::selection {
    background: var(--primary);
    color: white;
}

/* ---------- Navbar EVSpark (Bootstrap override) ---------- */
.evs-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--light-gray);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    z-index: 1030;
    transition: background 0.3s;
}

.evs-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
}

.evs-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-electric);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    text-decoration: none !important;
}

.evs-navbar .nav-link {
    color: var(--dark) !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    padding: 0.5rem 0.8rem !important;
}

.evs-navbar .nav-link:hover {
    color: var(--primary) !important;
}

.evs-navbar .navbar-toggler {
    border-color: var(--light-gray);
}

.evs-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(0, 217, 255, 0.25);
}

/* Language switcher */
.language-switcher {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    background: var(--light-gray);
    padding: 0.35rem;
    border-radius: 25px;
}

.lang-btn {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border: none;
    background: transparent;
    color: var(--medium-gray);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
}

.lang-btn:hover {
    color: var(--dark);
    text-decoration: none;
}

.lang-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ---------- Boutons EVSpark ---------- */
.btn-evs {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-electric);
    color: white !important;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.btn-evs:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    color: white !important;
}

.btn-evs-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--dark) !important;
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-evs-secondary:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    transform: scale(1.03);
}

/* ---------- Section communes ---------- */
.section {
    padding: 5rem 5%;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    background: var(--gradient-electric);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--medium-gray);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 4rem;
    gap: 4rem;
    background: linear-gradient(135deg, #FAFAFA 0%, #F3F4F6 50%, #E5E7EB 100%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    background: var(--gradient-electric);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--medium-gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mia-showcase {
    position: relative;
    max-width: 550px;
}

.mia-showcase img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

/* ---------- FEATURES ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    border: 2px solid var(--light-gray);
    transition: all 0.4s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--medium-gray);
    line-height: 1.7;
}

/* ---------- SCREENSHOTS ---------- */
.screenshots-section {
    background: var(--light-gray);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.screenshot-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.screenshot-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.screenshot-item:hover img {
    transform: scale(1.03);
}

.screenshot-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(31, 41, 55, 0.92));
    color: white;
    padding: 2.5rem 1.2rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ---------- LIGHTBOX ---------- */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(0, 217, 255, 0.3);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
    transition: color 0.3s;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--primary);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    cursor: pointer;
    padding: 1rem;
    transition: color 0.3s;
    user-select: none;
    z-index: 10000;
}

.lightbox-nav:hover {
    color: var(--primary);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    font-weight: 600;
}

/* ---------- VIDEO DEMO ---------- */
.demo-section {
    background: white;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--light-gray);
}

.video-container video {
    width: 100%;
    display: block;
}

/* ---------- DOWNLOAD ---------- */
.download-section {
    text-align: center;
}

.download-card {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 30px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--light-gray);
}

.version-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--gradient-electric);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.download-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.download-description {
    color: var(--medium-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.requirements {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
}

.requirements h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.requirements ul {
    list-style: none;
    padding: 0;
}

.requirements li {
    padding: 0.3rem 0;
    color: var(--medium-gray);
}

.requirements li::before {
    content: "✓ ";
    color: var(--primary);
    font-weight: 700;
}

/* Antivirus warning banner (page accueil) */
.av-warning {
    max-width: 900px;
    margin: 2rem auto 0;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 2px solid #F59E0B;
    border-radius: 20px;
    padding: 2rem 2.5rem;
    text-align: left;
}

.av-warning h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #92400E;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.av-warning p {
    color: #78350F;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.av-warning a {
    color: #92400E;
    font-weight: 700;
    text-decoration: underline;
}

.av-warning a:hover {
    color: #78350F;
}

/* ---------- DOCUMENTATION ---------- */
.doc-section {
    background: var(--light-gray);
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.doc-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.doc-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.doc-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-electric);
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.doc-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.doc-content {
    color: var(--medium-gray);
    line-height: 1.8;
}

.code-block {
    background: var(--dark);
    color: #00FF88;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    border-left: 4px solid var(--primary);
}

/* ---------- ABOUT ---------- */
.about-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, white 100%);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mia-history {
    background: white;
    border-radius: 30px;
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-sm);
    line-height: 1.9;
    color: var(--medium-gray);
    text-align: left;
}

.mia-history h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--medium-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* ==========================================================================
   PAGE ANTIVIRUS — Styles spécifiques
   ========================================================================== */

.page-header {
    padding: 8rem 5% 3rem;
    background: linear-gradient(135deg, #FAFAFA 0%, #F3F4F6 50%, #E5E7EB 100%);
    text-align: center;
}

.page-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-electric);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--medium-gray);
    max-width: 750px;
    margin: 0 auto;
}

.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 5%;
}

.info-banner {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 2px solid #F59E0B;
    border-radius: 20px;
    padding: 2rem 2.5rem;
    margin-bottom: 3rem;
}

.info-banner h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #92400E;
    margin-bottom: 1rem;
}

.info-banner p {
    color: #78350F;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.section-block {
    margin-bottom: 3rem;
}

.section-block h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-electric);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-block h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-block p {
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Antivirus cards (accordéons) */
.av-card {
    background: white;
    border: 2px solid var(--light-gray);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.av-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.av-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    user-select: none;
}

.av-card-header h3 {
    flex: 1;
    margin-bottom: 0;
}

.av-toggle {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
    font-weight: 300;
}

.av-card.open .av-toggle {
    transform: rotate(45deg);
}

.av-card-body {
    display: none;
    padding-top: 0.5rem;
}

.av-card.open .av-card-body {
    display: block;
}

/* Steps (étapes numérotées) */
.step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    align-items: flex-start;
}

.step-number {
    min-width: 36px;
    height: 36px;
    background: var(--gradient-electric);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-text {
    color: var(--medium-gray);
    line-height: 1.7;
}

.step-text strong {
    color: var(--dark);
}

.step-text code {
    background: var(--light-gray);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--secondary);
}

.path-highlight {
    background: var(--dark);
    color: #00FF88;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 0.8rem 0;
    overflow-x: auto;
    border-left: 4px solid var(--primary);
}

/* Tip / Warning boxes */
.tip-box {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border: 2px solid #10B981;
    border-radius: 15px;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
}

.tip-box p {
    color: #065F46;
    margin-bottom: 0;
}

.tip-box strong {
    color: #047857;
}

.warning-box {
    background: linear-gradient(135deg, #FEF2F2 0%, #FECACA 100%);
    border: 2px solid #EF4444;
    border-radius: 15px;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
}

.warning-box p {
    color: #991B1B;
    margin-bottom: 0;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-electric);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
}

.back-link:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    color: white;
}

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

@media (max-width: 991.98px) {
    .evs-navbar .navbar-collapse {
        background: white;
        border-radius: 0 0 20px 20px;
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: var(--shadow-md);
    }

    .language-switcher {
        margin-top: 1rem;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .cta-buttons {
        justify-content: center;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-nav {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .av-card {
        padding: 1.5rem;
    }

    .mia-history {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 5rem;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .feature-card, .doc-card {
        padding: 2rem;
    }

    .download-card {
        padding: 2.5rem 1.5rem;
    }
}
