/* Variables de couleurs et paramètres de base */
:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typographie & Utilitaires */
h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 800; }
h2 { font-size: 2.5rem; margin-bottom: 20px; font-weight: 800; text-align: center; }
p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Boutons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}
.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
}
.btn-secondary:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Header & Nav */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 1.5rem; font-weight: 800; }
.logo span { color: var(--primary); }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 400; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* Hero Section */
.hero { padding: 150px 0 100px; min-height: 100vh; display: flex; align-items: center; }
.hero-container { display: flex; align-items: center; gap: 50px; }
.hero-text { flex: 1; }
.hero-buttons { display: flex; gap: 20px; }
.hero-image { flex: 1; display: flex; justify-content: center; }

/* Abstract Server Mockup (CSS Art) */
.server-mockup {
    width: 300px;
    height: 400px;
    background: var(--bg-card);
    border: 2px solid #334155;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(59, 130, 246, 0.2);
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    position: relative;
    animation: float 4s ease-in-out infinite;
}
.server-mockup::before {
    content: ''; width: 100%; height: 2px; background: var(--gradient); position: absolute; top: 0; left: 0;
}
.light-indicator {
    height: 40px; background: #0f172a; border-radius: 6px; position: relative; overflow: hidden;
}
.light-indicator::after {
    content: ''; position: absolute; right: 15px; top: 15px; width: 10px; height: 10px; border-radius: 50%;
    background: #10b981; box-shadow: 0 0 10px #10b981;
    animation: blink 2s infinite alternate;
}
.light-indicator:nth-child(2)::after { background: var(--primary); box-shadow: 0 0 10px var(--primary); animation-delay: 0.5s; }
.light-indicator:nth-child(3)::after { background: var(--secondary); box-shadow: 0 0 10px var(--secondary); animation-delay: 1s; }

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }
@keyframes blink { 0% { opacity: 0.3; } 100% { opacity: 1; } }

/* Features */
.features { padding: 100px 0; background: #0b1120; }
.grid-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; }
.feature-card {
    background: var(--bg-card); padding: 40px 30px; border-radius: 12px; transition: transform 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}
.feature-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.feature-card .icon { font-size: 2.5rem; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 15px; }

/* CTA / Contact */
.cta { padding: 100px 0; text-align: center; }
.cta-container { max-width: 600px; }
.contact-form { display: flex; gap: 10px; margin-top: 30px; }
.contact-form input {
    flex: 1; padding: 15px 20px; border-radius: 8px; border: 1px solid #334155;
    background: var(--bg-card); color: white; outline: none; font-size: 1rem;
}
.contact-form input:focus { border-color: var(--primary); }
.success-msg { color: #10b981; margin-top: 20px; font-weight: bold; }

/* Footer */
footer { padding: 40px 0; border-top: 1px solid #334155; text-align: center; margin-top: 50px; }
footer p { margin: 10px 0 0; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 768px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-buttons { justify-content: center; }
    h1 { font-size: 2.5rem; }
    .nav-links { display: none; /* Simplification pour mobile */ }
    .contact-form { flex-direction: column; }
}
