/* --- VARIABLES --- */
:root {
    --bg-color: #050507;
    --card-bg: rgba(20, 20, 28, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #6366f1; /* Indigo vibrant */
    --accent: #d946ef; /* Fuchsia néon */
    --text: #ffffff;
    --text-muted: #94a3b8;
    --font-main: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* --- LOADER --- */
.loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none;}
.spinner-box { text-align: center; }
.spinner {
    width: 60px; height: 60px; border: 4px solid rgba(99, 102, 241, 0.1);
    border-radius: 50%; border-top-color: var(--primary); border-right-color: var(--accent);
    animation: spin 1s ease-in-out infinite; margin: 0 auto 20px;
}
.loader p { font-size: 0.85rem; letter-spacing: 4px; color: var(--text-muted); font-weight: 600; animation: pulseText 2s infinite;}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseText { 50% { opacity: 0.5; } }

/* --- BACKGROUND --- */
.background-glow {
    position: fixed; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1), transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(217, 70, 239, 0.08), transparent 40%);
    z-index: -2; animation: pulseBg 15s infinite alternate linear;
}
@keyframes pulseBg { 0% { transform: scale(1) rotate(0deg); } 100% { transform: scale(1.1) rotate(5deg); } }

/* --- NAVIGATION --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; position: fixed; width: 100%; top: 0;
    backdrop-filter: blur(20px); background: rgba(5, 5, 7, 0.85);
    border-bottom: 1px solid var(--card-border); z-index: 100;
}
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: 1px; }
.dot { color: var(--primary); }
.nav-link { color: var(--text-muted); text-decoration: none; margin-right: 25px; transition: 0.3s; font-size: 0.9rem; font-weight: 500;}
.nav-link:hover { color: white; }
.cta-nav {
    text-decoration: none; color: white; font-size: 0.9rem; font-weight: 600;
    background: rgba(255,255,255,0.05); padding: 10px 25px; border-radius: 50px;
    border: 1px solid var(--card-border); transition: 0.3s;
}
.cta-nav:hover { background: var(--primary); border-color: var(--primary); box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);}

/* --- HERO SECTION --- */
header {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding-top: 80px; overflow: hidden;
}

.cyber-grid {
    position: absolute; width: 300%; height: 200%; bottom: -100%; left: -100%;
    background-image: linear-gradient(rgba(99, 102, 241, 0.2) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(99, 102, 241, 0.2) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: perspective(1000px) rotateX(70deg);
    opacity: 0.15; z-index: -1;
    animation: gridMove 30s linear infinite;
}
@keyframes gridMove { to { transform: perspective(1000px) rotateX(70deg) translateY(80px); } }

.hero-wrapper {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; max-width: 1300px; padding: 0 20px; gap: 60px; z-index: 1;
}

.hero-content { flex: 1; text-align: left; }

/* Animations */
.anim-delay-1 { animation: fadeUp 0.8s ease-out 0.5s backwards; }
.anim-delay-2 { animation: fadeUp 0.8s ease-out 0.7s backwards; }
.anim-delay-3 { animation: fadeUp 0.8s ease-out 0.9s backwards; }
.anim-delay-4 { animation: fadeUp 0.8s ease-out 1.1s backwards; }
.anim-delay-5 { animation: fadeUp 0.8s ease-out 1.3s backwards; }
.anim-delay-6 { animation: fadeIn 1.2s ease-out 1.5s backwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.status-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 6px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 700;
    color: var(--primary); margin-bottom: 25px; letter-spacing: 1px;
}
.dot-live {
    width: 6px; height: 6px; background-color: #22c55e; border-radius: 50%;
    box-shadow: 0 0 8px #22c55e; animation: blink 2s infinite;
}

h1 { font-size: 4.5rem; line-height: 1.05; margin-bottom: 25px; font-weight: 800; letter-spacing: -1px;}
.gradient-text {
    background: linear-gradient(135deg, var(--text), var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-size: 200% auto; animation: gradientText 5s ease infinite alternate;
}
@keyframes gradientText { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }

p { color: var(--text-muted); font-size: 1.15rem; line-height: 1.7; margin-bottom: 35px; max-width: 550px;}

.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.btn {
    padding: 14px 32px; border-radius: 12px; text-decoration: none; font-weight: 700;
    transition: 0.3s; display: inline-flex; align-items: center; gap: 10px; 
    border: none; /* IMPORTANT : On retire toute bordure par défaut */
    outline: none;
}

/* --- BOUTON PRIMARY (NOUVELLE MÉTHODE : LARGEUR 0) --- */
.primary {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white; 
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.25);
    position: relative; 
    overflow: hidden; 
    z-index: 1;
}

.primary::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    /* ON MET LA LARGEUR A 0 : Impossible d'avoir un trait rouge */
    width: 0; 
    height: 100%;
    background: linear-gradient(45deg, var(--accent), var(--primary));
    transition: width 0.4s ease-out; 
    z-index: -1;
}

.primary:hover::before { 
    /* AU SURVOL, on passe à 100% */
    width: 100%; 
}

.primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(99, 102, 241, 0.5); }
.secondary { background: rgba(255,255,255,0.03); color: white; border: 1px solid var(--card-border); }
.secondary:hover { background: rgba(255,255,255,0.08); border-color: var(--text-muted); transform: translateY(-3px);}

.trust-bar {
    margin-top: 60px; display: flex; gap: 50px; border-top: 1px solid var(--card-border); padding-top: 30px;
}
.trust-item { display: flex; flex-direction: column; }
.trust-num { font-size: 1.4rem; font-weight: 800; color: white; }
.trust-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 5px;}

/* Visuel Droite */
.hero-visual { flex: 1; position: relative; display: flex; justify-content: center; }
.pc-container { position: relative; width: 100%; max-width: 550px; }

/* IMAGE DU PC */
.main-img {
    width: 100%; 
    height: auto;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 30px 70px rgba(0,0,0,0.6);
    display: block;
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.floating-anim { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-25px); } }

.visual-glow {
    position: absolute; width: 400px; height: 400px; background: var(--primary);
    filter: blur(150px); opacity: 0.25; z-index: -1; top: 50%; left: 50%; transform: translate(-50%, -50%);
}

.float-card {
    position: absolute; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(15px);
    border: 1px solid var(--card-border); padding: 14px 20px; border-radius: 16px;
    display: flex; align-items: center; gap: 15px; box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    transition: 0.3s;
}
.float-card:hover { border-color: var(--primary); transform: scale(1.05); }
.icon-circle {
    width: 40px; height: 40px; background: rgba(99, 102, 241, 0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.1rem;
}
.float-card div { display: flex; flex-direction: column; text-align: left; }
.float-card span { font-size: 0.75rem; color: var(--text-muted); font-weight: 500;}
.float-card strong { font-size: 0.95rem; color: white; }
.card-1 { top: 10%; left: -40px; animation: float 5s ease-in-out infinite reverse; }
.card-2 { bottom: 30%; right: -30px; animation: float 7s ease-in-out infinite 1s; }

/* --- PRICING --- */
#pricing { padding: 120px 5%; position: relative; }
.section-title { text-align: center; font-size: 3rem; margin-bottom: 80px; font-weight: 800; letter-spacing: -1px;}

.cards-wrapper {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px; max-width: 1250px; margin: 0 auto;
}

.glass-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    backdrop-filter: blur(30px); border-radius: 28px;
    position: relative; transition: all 0.4s ease; overflow: hidden;
}
.glass-card:hover { transform: translateY(-15px); border-color: rgba(99, 102, 241, 0.4); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7); }

/* --- NOUVEAU : État sélectionné (Permanent) --- */
.glass-card.active-selection {
    border-color: var(--accent); /* Bordure Rose/Violette */
    box-shadow: 0 0 40px rgba(217, 70, 239, 0.4); /* Glow Rose */
    transform: scale(1.02);
    background: linear-gradient(160deg, rgba(217, 70, 239, 0.1), rgba(20, 20, 28, 0.9)); /* Fond teinté léger */
}

.card-content { padding: 50px 40px; position: relative; z-index: 2; }

/* Shine Effect */
.shine {
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: 0.6s; 
    transform: skewX(-20deg); 
    z-index: 1; pointer-events: none;
}
.glass-card:hover .shine { left: 100%; transition: 0.8s ease-in-out; }

.featured {
    border: 2px solid var(--primary); background: linear-gradient(160deg, rgba(99, 102, 241, 0.08), rgba(20, 20, 28, 0.9));
    transform: scale(1.03);
}
.featured:hover { transform: scale(1.05) translateY(-15px); }
.tag-pop {
    position: absolute; top: 20px; right: 20px; background: var(--primary);
    padding: 6px 14px; border-radius: 8px; font-size: 0.75rem; font-weight: 800; z-index: 3; box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.icon-box { font-size: 2.2rem; margin-bottom: 25px; color: var(--text-muted); transition: 0.4s;}
.glass-card:hover .icon-box { color: var(--primary); transform: scale(1.1) rotate(-5deg); }
h3 { font-size: 1.6rem; margin-bottom: 5px; font-weight: 700; }
.price { font-size: 2.8rem; font-weight: 800; margin-bottom: 15px; }
.detail { font-size: 1.1rem; color: var(--text-muted); font-weight: 500; }
.desc { color: var(--text-muted); margin-bottom: 35px; font-size: 0.95rem; min-height: 45px; line-height: 1.6;}
hr { border: 0; border-top: 1px solid var(--card-border); margin: 25px 0; opacity: 0.5;}
.features { list-style: none; margin-bottom: 35px; }
.features li { margin-bottom: 14px; color: #e2e8f0; display: flex; align-items: center; gap: 12px; font-size: 1rem; }
.features i { color: var(--accent); font-size: 0.9rem; }

.card-btn {
    display: block; text-align: center; border: 1px solid var(--card-border);
    color: white; width: 100%; padding: 14px; border-radius: 12px; text-decoration: none;
    transition: 0.3s; font-weight: 600; cursor: pointer;
}
.card-btn:hover { background: white; color: var(--bg-color); border-color: white;}
.full-width { width: 100%; text-align: center; display: block; }

/* --- CONTACT --- */
#contact { padding: 120px 20px; display: flex; justify-content: center; }
.contact-box {
    background: linear-gradient(170deg, rgba(25, 25, 35, 0.9), rgba(10, 10, 12, 0.95));
    border: 1px solid var(--card-border); padding: 60px; border-radius: 30px;
    width: 100%; max-width: 750px; text-align: center; backdrop-filter: blur(30px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.contact-box h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px;}
.form-row { display: flex; gap: 25px; }
.contact-box form { display: flex; flex-direction: column; gap: 25px; margin-top: 40px; }
.input-group { text-align: left; flex: 1; }
.input-group label { display: block; margin-bottom: 10px; font-size: 0.95rem; color: var(--text-muted); font-weight: 500;}

input, select, textarea {
    width: 100%; padding: 16px; background: rgba(0,0,0,0.3); border: 1px solid var(--card-border);
    border-radius: 12px; color: white; outline: none; font-family: var(--font-main); transition: 0.3s;
    font-size: 1rem;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary); background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}
textarea { resize: vertical; }

/* --- FOOTER --- */
footer {
    text-align: center; padding: 50px; border-top: 1px solid var(--card-border);
    color: var(--text-muted); font-size: 0.95rem; background: rgba(5, 5, 7, 0.5);
}

/* --- MOBILE --- */
@media (max-width: 1024px) {
    h1 { font-size: 3.5rem; }
    .hero-wrapper { flex-direction: column; text-align: center; margin-top: 40px; gap: 60px;}
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    p { max-width: 100%; }
    .hero-btns { justify-content: center; }
    .trust-bar { justify-content: center; gap: 30px;}
    .hero-visual { width: 100%; max-width: 500px; }
    .card-1 { left: -10px; } .card-2 { right: -10px; }
    .form-row { flex-direction: column; gap: 0; }
    .cards-wrapper { grid-template-columns: 1fr; max-width: 500px;}
    .featured { transform: scale(1); }
}

.reveal { opacity: 0; transform: translateY(40px); transition: 1s cubic-bezier(0.215, 0.610, 0.355, 1.000); }
.reveal.active { opacity: 1; transform: translateY(0); }