/* ==================================================================
   FICHIER : style.css
   VERSION : MOBILE PERFECT (CENTERED LOGIN + VISIBLE INPUT)
   ================================================================== */

/* 1. VARIABLES & THEME */
:root {
    --bg: #FAFAFA;
    --text: #0F0F0F;
    --accent: #2D5BFF;
    --subtle: #666666;
    --card-bg: #FFFFFF;
    
    /* Couleurs Terminal */
    --term-bg: #1E1E1E;
    --term-header: #2D2D2D;
    --term-text: #E0E0E0;
    --term-green: #00FF9C;
    --term-dim: #666;
}

/* 2. REGLAGES GLOBAUX */
html, body {
    margin: 0; padding: 0; 
    overflow-x: hidden; 
    overflow-y: auto; 
    background-color: var(--bg); color: var(--text);
    font-family: 'Inter', sans-serif;
    transition: background-color 0.5s ease, color 0.5s ease;
}

@media (min-width: 769px) {
    html, body { height: 100%; overflow: hidden; }
    .main-scroll-container {
        height: 100vh; overflow-y: scroll;
        scroll-snap-type: y mandatory; scroll-behavior: smooth;
    }
    .full-screen-section, .footer-monolith { 
        height: 100vh; 
        scroll-snap-align: start; 
    }
    .full-screen-section { padding: 80px 5% 40px 5%; }
}

.full-screen-section {
    display: flex; flex-direction: column;
    justify-content: center; 
    align-items: center; 
    box-sizing: border-box; 
    min-height: 100vh;
    width: 100%;
}

/* 3. NAVBAR */
.navbar {
    display: flex; justify-content: space-between; padding: 20px 5%;
    align-items: center; position: fixed; width: 100%; top: 0; z-index: 100;
    background: rgba(250, 250, 250, 0.95); backdrop-filter: blur(15px); box-sizing: border-box;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.logo { font-weight: 900; font-size: 1.5rem; letter-spacing: -1px; }

.btn-app-stealth {
    position: relative; text-decoration: none; border: 1px solid var(--text);
    padding: 12px 28px; font-weight: 900; font-size: 0.7rem; letter-spacing: 1.5px;
    color: var(--text); overflow: hidden; transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-flex; justify-content: center; align-items: center; border-radius: 4px;
}
.text-hover { position: absolute; opacity: 0; transform: translateY(20px); color: #d4af37; }
.btn-app-stealth:hover { background: var(--text); border-color: var(--text); }
.btn-app-stealth:hover .text-default { opacity: 0; transform: translateY(-20px); color: var(--bg); }
.btn-app-stealth:hover .text-hover { opacity: 1; transform: translateY(0); color: #d4af37; }
.text-default, .text-hover { transition: 0.3s ease; }

/* 4. HERO SECTION */
.hero-mode { align-items: center; text-align: center; }
.main-title { font-size: clamp(2.5rem, 7vw, 6rem); font-weight: 900; line-height: 1; margin: 0; letter-spacing: -2px; }
.hero-tagline { color: var(--subtle); margin: 30px auto; font-size: 1rem; text-transform: uppercase; letter-spacing: 1.5px; line-height: 1.6; max-width: 500px; }

.partners-row { display: flex; gap: 30px; align-items: center; justify-content: center; margin-bottom: 35px; width: 100%; opacity: 0.8; transition: 0.3s; }
.partner-img { height: 30px !important; width: auto !important; display: block; }
.partners-row img:first-child { height: 38px !important; } 
.partners-row:hover { opacity: 1; }

.btn-main {
    display: inline-block; text-decoration: none; background: var(--text); color: var(--bg); border: none;
    padding: 22px 50px; font-weight: 900; text-transform: uppercase; cursor: pointer; transition: 0.3s;
    letter-spacing: 1px; border-radius: 4px; box-shadow: var(--soft-shadow);
}
.btn-main:hover { background: var(--accent); color: white; transform: translateY(-3px); box-shadow: 0 15px 30px -10px rgba(45, 91, 255, 0.4); }

/* 5. SHOWCASE (Login) */
.center-mode { align-items: center; text-align: center; }
#telegram-section { background: linear-gradient(to bottom, var(--bg), #F0F0F0); }
.showcase h2 { font-size: 2.2rem; font-weight: 900; margin-bottom: 40px; text-transform: uppercase; letter-spacing: -1px; }
.accent-text { color: var(--accent); }

/* WRAPPER (Desktop Default) */
.input-wrapper {
    background: var(--card-bg); 
    display: inline-flex; 
    align-items: center;
    padding: 8px 10px 8px 20px; border-radius: 50px; border: 1px solid rgba(0,0,0,0.08); 
    margin-bottom: 50px; box-shadow: var(--soft-shadow); transition: 0.3s;
    margin-left: auto; margin-right: auto;
}
.input-wrapper:focus-within { border-color: var(--accent); transform: scale(1.01); }
.tg-logo { width: 22px; height: 22px; fill: var(--accent); margin-right: 15px; }
.tg-input { background: transparent; border: none; color: var(--text); padding: 10px 0; outline: none; font-size: 1rem; width: 220px; font-weight: 500; }
.tg-input::placeholder { color: #999; }
.input-wrapper button {
    background: var(--accent); border: none; color: white; padding: 14px 30px; cursor: pointer;
    font-weight: 900; text-transform: uppercase; margin-left: 10px; border-radius: 40px;
    letter-spacing: 1px; font-size: 0.8rem; transition: 0.3s;
}
.input-wrapper button:hover { background: #1a45d9; box-shadow: 0 5px 15px rgba(45, 91, 255, 0.3); }

/* 6. CARTES */
.cards-container { 
    display: flex; gap: 30px; perspective: 1000px; flex-wrap: wrap; 
    justify-content: center; width: 100%;
}

.credit-card {
    width: 400px; height: 250px; border-radius: 24px; padding: 30px;
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative; box-sizing: border-box; overflow: hidden;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-image: linear-gradient(135deg, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0) 50%);
    text-align: left;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.15);
}
.credit-card:hover { transform: translateY(-15px) rotateX(5deg) scale(1.02); box-shadow: 0 40px 80px -20px rgba(0,0,0,0.2); }

/* PUCES SOLIDES ET VIVES */
.card-chip {
    width: 50px; height: 40px; border-radius: 8px; position: relative; overflow: hidden; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); z-index: 10;
}
.card-chip::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10;
    background-image: linear-gradient(90deg, transparent 33%, rgba(0,0,0,0.2) 33%, rgba(0,0,0,0.2) 34%, transparent 34%, transparent 66%, rgba(0,0,0,0.2) 66%, rgba(0,0,0,0.2) 67%, transparent 67%),
    linear-gradient(0deg, transparent 33%, rgba(0,0,0,0.2) 33%, rgba(0,0,0,0.2) 34%, transparent 34%, transparent 66%, rgba(0,0,0,0.2) 66%, rgba(0,0,0,0.2) 67%, transparent 67%);
}
.card-blue .card-chip { background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%); border: 1px solid #cca300; }
.card-black .card-chip { background: linear-gradient(135deg, #E0E0E0 0%, #B0B0B0 100%); border: 1px solid #999; }

.card-blue { background: linear-gradient(135deg, #2D5BFF 0%, #1a45d9 100%); color: #FFFFFF; }
.card-black { background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%); border: 1px solid rgba(255,255,255,0.1); color: #F5F5F5; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-type { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 900; opacity: 0.6; }
.card-number { font-family: 'Courier Prime', monospace; font-size: 1.4rem; margin: 25px 0; letter-spacing: 2px; white-space: nowrap; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.card-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.card-holder { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 800; margin-bottom: 5px; }
.card-validity { display: flex; gap: 15px; font-size: 0.6rem; opacity: 0.8; text-transform: uppercase; }
.validity-label { font-size: 0.4rem; display: block; margin-bottom: 3px; font-weight: 700; }

/* MODIFICATION : LOGO VISA IMAGE */
.visa-logo {
    width: 70px;
    height: auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.visa-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}


/* ==================================================================
   SECTION 3 : SYSTEM CORE (TERMINAL MODE)
   ================================================================== */

.scroll-trigger-container {
    width: 100%; display: flex; justify-content: center; margin-top: 60px;
    animation: floatArrow 2s infinite ease-in-out;
}
.scroll-down-btn { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--subtle); transition: 0.3s; opacity: 0.7; }
.scroll-down-btn:hover { color: var(--accent); opacity: 1; }
.scroll-text { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 8px; }
.scroll-down-btn svg { width: 24px; height: 24px; }
@keyframes floatArrow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* --- TERMINAL WINDOW --- */
.protocol-mode { background: var(--bg); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.section-header { margin-bottom: 50px; text-align: center; width: 100%; }
.section-subtitle { display: block; font-size: 0.75rem; font-weight: 900; letter-spacing: 3px; text-transform: uppercase; color: var(--subtle); margin-bottom: 15px; opacity: 0.8; }
.protocol-mode h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; margin: 0; line-height: 1; text-transform: uppercase; letter-spacing: -1px; }

.terminal-window {
    width: 100%; max-width: 700px;
    background: var(--term-bg);
    border-radius: 12px;
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.3);
    overflow: hidden;
    font-family: 'Courier Prime', monospace;
    text-align: left;
    border: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.terminal-header {
    background: var(--term-header);
    padding: 12px 15px;
    display: flex; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.window-controls { display: flex; gap: 8px; margin-right: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.terminal-title {
    color: #888; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.5px; width: 100%; text-align: center; margin-right: 35px;
}

.terminal-body {
    padding: 25px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--term-text);
}

.log-line { margin-bottom: 5px; display: block; }
.cmd-prompt { color: var(--term-green); margin-right: 8px; font-weight: 700; }
.cmd { color: #569CD6; font-weight: 700; }
.arg { color: #CE9178; }
.dim { color: var(--term-dim); font-size: 0.85rem; font-style: italic; }
.warn { color: #FFBD2E; }
.success { color: var(--term-green); }
.highlight { background: rgba(0, 255, 156, 0.1); color: var(--term-green); padding: 2px 5px; border-radius: 4px; display: inline-block; margin-top: 5px; font-weight: 700; }
.spacer { height: 15px; }

.cursor {
    animation: blink 1s infinite;
    background: var(--term-text);
    width: 8px; height: 16px; display: inline-block; vertical-align: middle;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* --- SECURITY BADGE --- */
.security-badge {
    margin-top: 20px;
    display: inline-flex; align-items: center;
    padding: 10px 20px;
    background: rgba(0,0,0,0.03); 
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    color: var(--subtle);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    font-family: 'Courier Prime', monospace;
}
.security-badge svg { width: 14px; height: 14px; margin-right: 10px; opacity: 0.7; }

/* ==================================================================
   SECTION 4 : PRICING (ARCHITECTURAL DESIGN + BUTTON ALIGN)
   ================================================================== */

.pricing-mode {
    background: var(--bg);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}

/* Le conteneur principal */
.pricing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    width: 100%;
    max-width: 1100px;
    padding: 0 20px;
}

/* --- STYLE COMMUN DES CARTES --- */
.pricing-card {
    flex: 1;
    max-width: 450px;
    min-height: 580px;
    border-radius: 40px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    align-items: flex-start; 
}

.pricing-card:hover {
    transform: translateY(-15px);
}

.card-content {
    display: flex; flex-direction: column;
    width: 100%;
}

.tier-label {
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.6;
}

.price-block {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 50px;
    letter-spacing: -3px;
    display: flex; align-items: baseline;
}

.currency { font-size: 2rem; vertical-align: top; margin-right: 5px; }
.period { font-size: 1rem; font-weight: 500; letter-spacing: 0; opacity: 0.5; margin-left: 10px; }

/* LISTE DES FEATURES */
.features-list { list-style: none; padding: 0; margin: 0 0 30px 0; width: 100%; }

.features-list li {
    font-size: 1.05rem;
    margin-bottom: 22px;
    font-weight: 500;
    display: flex; align-items: center; gap: 12px;
}
.features-list li strong { font-weight: 900; }
.features-list li.disabled { opacity: 0.3; text-decoration: line-through; }

/* --- BOUTON : CORRECTION ALIGNEMENT --- */
.btn-tier {
    width: 100%; 
    padding: 22px; 
    text-align: center;
    font-weight: 900; text-transform: uppercase; text-decoration: none;
    border-radius: 16px; transition: 0.3s;
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin-top: auto;
    box-sizing: border-box;
    display: block;
}

/* --- CARTE STANDARD (BLANC PUR) --- */
.standard-tier {
    background: #FFFFFF;
    color: var(--text);
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
}
.standard-tier .btn-tier {
    background: transparent; border: 2px solid #000; color: #000;
}
.standard-tier .btn-tier:hover { background: #000; color: #FFF; }

/* --- CARTE PREMIUM (NOIR PROFOND) --- */
.premium-tier {
    background: #080808;
    color: #FFFFFF;
    box-shadow: 0 40px 80px -10px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transform: scale(1.05);
    z-index: 2;
}
.tier-badge {
    position: absolute; top: 25px; right: 25px;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
    padding: 8px 16px; border-radius: 20px;
    font-size: 0.6rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px;
}
.premium-tier .btn-tier {
    background: #FFF; color: #000; border: 2px solid #FFF;
}
.premium-tier .btn-tier:hover { 
    background: var(--accent); color: #FFF; border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(45, 91, 255, 0.4);
}

/* ==================================================================
   SECTION 5 : SYSTEM LOGS (FOOTER)
   ================================================================== */

.footer-monolith {
    background: #0F0F0F;
    color: #FFF;
    padding: 100px 5% 40px 5%; 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 100vh;
    scroll-snap-align: start;
    box-sizing: border-box;
}

.faq-container {
    width: 100%; max-width: 900px;
    margin-bottom: 80px;
}

.faq-header {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
    display: flex; justify-content: space-between; align-items: flex-end;
}
.faq-header h3 { font-size: 1.5rem; font-weight: 900; letter-spacing: 2px; margin: 0; }
.faq-header p { color: var(--subtle); font-size: 0.8rem; letter-spacing: 1px; margin: 0; font-family: 'Courier Prime', monospace; }

/* --- SYSTEM LOG LIST --- */
.faq-list {
    display: flex; flex-direction: column;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.faq-row {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: background 0.2s ease;
}
.faq-row:hover { background: rgba(255,255,255,0.03); }

.log-header {
    padding: 25px 0;
    display: flex; align-items: center; justify-content: flex-start;
    font-family: 'Courier Prime', monospace;
    font-size: 0.9rem;
}

.prefix { color: var(--subtle); margin-right: 15px; }
.command { color: #FFF; font-weight: 700; flex-grow: 1; letter-spacing: 1px; }
.status { color: var(--subtle); font-weight: 700; }

.faq-row.active { background: rgba(0, 255, 156, 0.05); }
.faq-row.active .command { color: var(--term-green); }
.faq-row.active .status { color: var(--term-green); }

.log-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 0;
}

.faq-row.active .log-content {
    max-height: 200px;
    padding: 0 0 25px 40px;
}

.log-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    border-left: 2px solid var(--term-green);
    padding-left: 15px;
}

/* --- FOOTER --- */
.main-footer {
    width: 100%; max-width: 900px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px; margin-top: 20px;
}
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-weight: 900; font-size: 1.2rem; letter-spacing: -1px; }
.footer-links a {
    color: var(--subtle); text-decoration: none; font-size: 0.75rem;
    margin-left: 20px; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s;
}
.footer-links a:hover { color: #FFF; }
.footer-copy { font-size: 0.6rem; color: rgba(255,255,255,0.2); }

/* ==================================================================
   MOBILE RESPONSIVE (CORRECTION FINALE - ULTIME)
   ================================================================== */
@media (max-width: 768px) {
    /* Ajustements globaux */
    .full-screen-section { padding: 80px 20px 40px 20px; }
    .navbar { padding: 15px 20px; }
    .logo { font-size: 1.4rem; }
    .btn-app-stealth { padding: 10px 20px; font-size: 0.65rem; }
    .main-title { font-size: 2.5rem; }
    .btn-main { width: 100%; max-width: 320px; padding: 18px; }
    
    /* On cache les textes décoratifs du Hero sur mobile */
    .hero-mode div[style*="margin-top: 50px"] { display: none !important; }

    /* --- 1. LE PARENT (C'est lui qui force le centrage) --- */
    .telegram-connect {
        display: flex !important;
        justify-content: center !important; /* Centre horizontalement */
        align-items: center !important;     /* Centre verticalement */
        flex-direction: column !important;
        width: 100% !important;
        margin-bottom: 50px;
    }

    /* --- 2. L'ENFANT (La boîte blanche) --- */
    .input-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 320px !important; /* Largeur fixe propre */
        margin: 0 !important; /* IMPORTANT : On annule les marges du desktop */
        padding: 30px;
        background: #FFFFFF;
        border-radius: 24px;
        box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
        gap: 15px;
    }

    /* Logo Télégram */
    .tg-logo {
        margin: 0 !important;
        width: 45px; height: 45px;
        fill: var(--accent);
        margin-bottom: 5px !important;
    }

    /* Champ texte */
    .tg-input {
        width: 100% !important;
        height: 50px;
        text-align: center;
        background: #F2F4F7 !important; /* Gris clair */
        border: 2px solid #E0E0E0 !important;
        border-radius: 12px;
        font-size: 1rem;
        color: #0F0F0F;
        padding: 0;
        margin: 0 !important;
    }
    
    .tg-input::placeholder { color: #9DA3AE; }

    /* Bouton */
    .input-wrapper button {
        width: 100% !important;
        margin: 0 !important;
        height: 50px;
        border-radius: 12px;
        font-size: 0.9rem;
        display: flex; align-items: center; justify-content: center;
    }
    
    /* Le reste (Cartes, Terminal, Prix, Footer) */
    .cards-container { flex-direction: column; align-items: center; width: 100%; gap: 25px; }
    .credit-card { width: 100%; max-width: 450px; height: auto; aspect-ratio: 1.586; padding: 25px; margin: 0; }
    
    .terminal-window { max-width: 100%; font-size: 0.75rem; }
    
    .pricing-container { flex-direction: column; gap: 40px; }
    .pricing-card { width: 100%; min-height: auto; transform: scale(1) !important; }

    .log-header { font-size: 0.8rem; flex-wrap: wrap; }
    .prefix { display: none; }
    .faq-row.active .log-content { padding-left: 0; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}
/* =========================================
   PREMIUM LOADER (STYLE LUXE - AJOUTER A LA FIN)
   ========================================= */
#premium-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(5, 5, 5, 0.98); /* Noir profond presque total */
    backdrop-filter: blur(15px); /* Effet flou moderne */
    z-index: 99999; /* Au-dessus de tout */
    display: none; /* Caché par défaut, le JS l'affiche */
    align-items: center; justify-content: center;
    flex-direction: column;
}

.loader-content {
    text-align: center; width: 300px;
}

.loader-logo {
    font-size: 2.5rem; font-weight: 900; letter-spacing: -2px; color: #FFFFFF;
    margin-bottom: 50px;
    animation: pulse 2s infinite ease-in-out;
}

.loader-progress-track {
    width: 100%; height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px; overflow: hidden;
    margin-bottom: 20px;
}

#loader-bar {
    width: 0%; height: 100%;
    background: #2D5BFF; /* Bleu Kleis */
    box-shadow: 0 0 20px rgba(45, 91, 255, 0.6); /* Lueur néon */
    transition: width 0.4s ease;
}

#loader-status {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem; font-weight: 700; color: #888;
    letter-spacing: 2px; text-transform: uppercase;
}

/* Animation de respiration du logo */
@keyframes pulse {
    0% { opacity: 0.6; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 0.6; transform: scale(0.98); }
}