/* 
   CYBER-GROWTH LANDING PAGE DESIGN SYSTEM (MOBILE-FIRST)
   Créé par Antigravity - Expert Web Design & Marketing CPA
*/

/* Importation des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700;800;900&display=swap');

:root {
    --bg-color: #090d16;
    --card-bg: rgba(15, 23, 42, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-start: #a855f7; /* Violet Néon */
    --accent-end: #6366f1;   /* Bleu Électrique */
    --accent-gradient: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.35);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset de base & Optimisations mobiles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1.5rem 1rem 3rem 1rem;
    position: relative;
}

/* Effets de lueurs d'ambiance en arrière-plan */
.bg-glow-1 {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: var(--accent-start);
    filter: blur(130px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-2 {
    position: absolute;
    bottom: 10%;
    right: -100px;
    width: 350px;
    height: 350px;
    background: var(--accent-end);
    filter: blur(150px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

/* Conteneur principal (Mobile-First Centered) */
.landing-container {
    width: 100%;
    max-width: 440px; /* Calibré parfaitement pour tous les smartphones */
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* --- 1. EN-TÊTE & HEADER --- */
header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

/* Badge Édition Spéciale */
.badge-edition {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.1);
    animation: pulseGlow 2s infinite ease-in-out;
}

.badge-edition::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #c084fc;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #c084fc;
}

/* Titre Principal H1 */
h1 {
    font-family: var(--font-title);
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-top: 0.25rem;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.2));
}

/* Sous-titre H2 / Explication */
.subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
    padding: 0 0.5rem;
}

/* --- 2. ZONE D'APERÇU DU FICHIER --- */
.preview-box {
    background: var(--card-bg);
    border: 2px dashed rgba(168, 85, 247, 0.4);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.preview-box:hover {
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.preview-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
}

.file-icon-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    width: 52px;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.file-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-start);
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex-grow: 1;
}

.file-name {
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    word-break: break-all;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
}

.file-size {
    color: #10b981; /* Vert émeraude */
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.file-status {
    color: var(--text-muted);
}

/* --- 3. LISTE DES BÉNÉFICES --- */
.benefits-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.benefits-title {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefits-title svg {
    color: #fbbf24;
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.benefit-icon {
    width: 20px;
    height: 20px;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.benefit-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.benefit-highlight {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- 4. BOUTON D'ACTION (CTA) --- */
.cta-wrapper {
    position: relative;
    width: 100%;
}

.cta-button {
    width: 100%;
    background: var(--accent-gradient);
    border: none;
    border-radius: 14px;
    color: var(--text-primary);
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 1.15rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
}

.btn-subtext {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0.01em;
    color: var(--text-primary);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}

.cta-button:active {
    transform: translateY(1px);
}

/* Animation de halo de lumière passant sur le bouton */
.cta-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(30deg);
    transition: none;
    animation: shine 4s infinite linear;
}

.cta-icon {
    width: 22px;
    height: 22px;
    animation: bounceDown 1.5s infinite;
}

/* Témoin de confiance en bas */
.trust-indicator {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin-top: -0.5rem;
}

.trust-indicator svg {
    color: #10b981;
    width: 14px;
    height: 14px;
}

/* --- 5. SYSTÈME DE POP-UP (CPA LOCKER MODAL) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #0f1524;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    padding: 1.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

/* En-tête Modal */
.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.alert-icon-wrapper {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ef4444;
    margin-bottom: 0.25rem;
}

.modal-title {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.modal-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Zone d'offres CPA */
.cpa-widget-container {
    background: rgba(5, 7, 12, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.25rem;
    overflow: hidden;
    height: 330px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cpa-widget-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    background: transparent;
}

/* Bouton fermer discret */
.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
    transition: var(--transition-smooth);
    margin-top: 0.25rem;
}

.close-modal-btn:hover {
    color: var(--text-secondary);
}

/* --- ANIMATIONS --- */
@keyframes shine {
    0% {
        left: -60%;
    }
    30% {
        left: 140%;
    }
    100% {
        left: 140%;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
        border-color: rgba(168, 85, 247, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
        border-color: rgba(168, 85, 247, 0.6);
    }
}

@keyframes bounceDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}
