/* --- RESET & VARIABLES --- */
:root {
    --bg-dark: #050508;
    --bg-card: #0f0f16;
    --bg-card-hover: #161622;
    
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    
    --brand-purple: #7B2CFF;
    --brand-pink: #FF3BD4;
    --brand-cyan: #00C2FF;
    
    --gradient-main: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-pink) 50%, var(--brand-cyan) 100%);
    --gradient-text: linear-gradient(90deg, #bfa1ff, #ff8ce6, #8eeaff);
    
    --radius: 12px;
    --shadow-glow: 0 0 20px rgba(123, 44, 255, 0.15);
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    --container-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}
.btn-primary {
    background: var(--gradient-main);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(123, 44, 255, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 44, 255, 0.6);
}
.btn-secondary {
    background: transparent;
    border: 2px solid var(--brand-purple);
    color: white;
}
.btn-secondary:hover {
    background: rgba(123, 44, 255, 0.1);
}

/* --- ANIMATIONS --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- NAVIGATION --- */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO IMAGE RESPONSIVE */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.5rem;
    color: white;
    gap: 8px;
}
.logo img {
    display: block;
    max-height: 50px; 
    width: auto;
    max-width: 200px;
    object-fit: contain;
}
@media (max-width: 600px) {
    .logo img { max-height: 40px; }
}
.logo span { 
    color: var(--brand-cyan); 
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.nav-links a:hover { color: white; }

/* Mobile Nav: Hide links, keep CTA */
@media (max-width: 800px) {
    .nav-links a:not(.btn) { display: none; }
}

/* --- HERO GRID LAYOUT --- */
#hero {
    padding: 100px 0 80px;
    background: radial-gradient(circle at top center, #1a0b38 0%, var(--bg-dark) 70%);
    overflow: hidden; 
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr; 
    align-items: center;
    gap: 40px;
}

/* Hero Text Side */
.hero-text {
    text-align: left;
}
h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}
.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}
.hero-cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.reassurance {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.reassurance span::before {
    content: "✓";
    color: var(--brand-cyan);
    margin-right: 6px;
    font-weight: bold;
}

/* --- HERO VISUAL (IMAGE CLEAN) --- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* STYLE DE L'IMAGE APP (Clean) */
.app-screen {
    position: relative;
    z-index: 2; /* L'image au premier plan */
    width: 360px; /* Taille standard d'un mobile */
    max-width: 100%;
    height: auto;
    
    /* On ajoute juste une ombre naturelle pour qu'il se détache du fond */
    /* Pas de border-radius ou border car l'image contient déjà le cadre */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
}

/* La lueur violette */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 80%;
    background: radial-gradient(circle, rgba(123, 44, 255, 0.4) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1; /* La lueur en arrière plan */
}

/* RESPONSIVE HERO */
@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    .hero-text {
        text-align: center;
        order: 1;
    }
    .hero-sub { margin: 0 auto 40px; }
    .hero-cta-group { justify-content: center; }
    .reassurance { justify-content: center; }
    
    .hero-visual {
        order: 2;
    }
    h1 { font-size: 2.5rem; }
}

/* --- SECTIONS COMMON --- */
section { padding: 80px 0; }
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 16px;
}
.section-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- PROBLEM --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}
.card:hover {
    border-color: var(--brand-purple);
    transform: translateY(-5px);
}
.card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}
.card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.punchline {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 50px;
    color: white;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
}

/* --- SOLUTION --- */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.solution-item {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--brand-cyan);
}
.solution-item:nth-child(2) { border-color: var(--brand-pink); }
.solution-item:nth-child(3) { border-color: var(--brand-purple); }

.solution-item h3 { font-size: 1.4rem; margin-bottom: 12px; }
.solution-item p { color: var(--text-muted); }

/* --- HOW IT WORKS --- */
.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    counter-reset: step;
}
.step {
    flex: 1;
    min-width: 250px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.step::before {
    counter-increment: step;
    content: "0" counter(step);
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255,255,255,0.03);
    z-index: 0;
}
.step h3, .step p { position: relative; z-index: 1; }
.step h3 { margin-bottom: 10px; color: var(--brand-cyan); }

/* --- OFFER (THE CORE) --- */
#offre {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #120824 100%);
}
.offer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(123, 44, 255, 0.3);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-glow);
}

.offer-details h2 { font-size: 2.5rem; margin-bottom: 10px; }
.price-line { font-size: 1.25rem; margin-bottom: 20px; color: var(--text-muted); }
.highlight-commission {
    color: var(--brand-cyan);
    font-weight: bold;
    font-size: 1.5rem;
}
.badge-promo {
    display: inline-block;
    background: rgba(255, 59, 212, 0.15);
    color: var(--brand-pink);
    border: 1px solid var(--brand-pink);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 30px;
}
.offer-list ul { list-style: none; }
.offer-list li { margin-bottom: 12px; display: flex; align-items: center; }
.offer-list li::before {
    content: "★";
    color: var(--brand-purple);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* SIMULATOR */
.simulator-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
}
.sim-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; text-align: center; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.9rem; margin-bottom: 5px; color: var(--text-muted); }
.form-input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 6px;
    color: white;
    font-family: inherit;
}

.toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 8px;
}
.toggle-label { font-size: 0.9rem; font-weight: 600; color: var(--brand-pink); }

/* Custom Switch */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #444;
    transition: .4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute; content: "";
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider { background-color: var(--brand-pink); }
input:checked + .slider:before { transform: translateX(20px); }

.results {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}
.result-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.95rem; }
.result-row.total { font-size: 1.2rem; font-weight: 700; color: var(--brand-cyan); margin-top: 10px; }
.disclaimer { font-size: 0.7rem; color: #555; margin-top: 10px; text-align: center; }

/* --- DIFFERENTIATION --- */
.diff-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}
.diff-item {
    flex: 1;
    min-width: 280px;
    padding: 20px;
}
.diff-item h3 { color: var(--brand-purple); margin-bottom: 10px; }

/* --- FAQ --- */
.faq-item {
    background: var(--bg-card);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}
.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after { content: "+"; font-size: 1.2rem; color: var(--brand-cyan); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
    color: var(--text-muted);
}
.faq-item.active .faq-answer { padding-bottom: 20px; }
.faq-item.active .faq-question::after { content: "-"; }

/* --- FOOTER CTA --- */
.footer-cta {
    text-align: center;
    padding: 100px 20px;
    background: radial-gradient(circle at bottom, #1a0b38 0%, var(--bg-dark) 70%);
}
.footer-cta h2 { font-size: 2.5rem; margin-bottom: 30px; }
.footer-sub { color: var(--text-muted); margin-top: 20px; display: block; font-size: 0.9rem; }

/* --- MEDIA QUERIES GENERAL --- */
@media (max-width: 900px) {
    .offer-container { grid-template-columns: 1fr; }
}

/* --- PRINT --- */
@media print {
    body { background: white; color: black; }
    nav, .simulator-box, .switch, .hero-cta-group, footer { display: none; }
    .text-gradient { background: none; color: black; }
    h1, h2, h3 { color: black; }
    .card, .step, .offer-container { border: 1px solid #ccc; box-shadow: none; color: black; }
    p { color: #333; }
    a[href]:after { content: " (" attr(href) ")"; font-size: 0.8rem; }
}