:root {
    --bg-dark: #040805;
    --bg-surface: #0b140f;
    --accent-green: #00ff66;
    --accent-leaf: #2ecc71;
    --text-primary: #ffffff;
    --text-secondary: #9cbca4;
    --text-muted: #4e6b56;
}

* {
    box-sizing: border-box;
    margin: 0; padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 255, 102, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(46, 204, 113, 0.04) 0px, transparent 50%);
}

.grid-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(46, 204, 113, 0.01) 1px, transparent 1px), linear-gradient(90deg, rgba(46, 204, 113, 0.01) 1px, transparent 1px);
    background-size: 50px 50px; z-index: -2; pointer-events: none;
}

/* Animations Organiques */
@keyframes bloomIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes sapPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.2); }
    70% { box-shadow: 0 0 0 15px rgba(0, 255, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 102, 0); }
}

/* Barre de navigation */
nav {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: 95%; max-width: 1200px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 32px; background: rgba(11, 20, 15, 0.75);
    backdrop-filter: blur(20px); border-radius: 50px;
    border: 1px solid rgba(0, 255, 102, 0.08); z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.logo { font-size: 1.4rem; font-weight: 900; text-decoration: none; color: #fff; letter-spacing: 2px; }
.logo span { color: var(--accent-green); text-shadow: 0 0 10px var(--accent-green); }
.nav-links a { color: var(--text-secondary); text-decoration: none; margin-left: 20px; font-weight: 500; transition: 0.3s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-green); }

.lang-switch {
    background: rgba(0, 255, 102, 0.05); border: 1px solid rgba(0, 255, 102, 0.2);
    color: var(--accent-green); padding: 6px 14px; border-radius: 30px;
    cursor: pointer; font-weight: 700; font-size: 0.8rem; margin-left: 15px; transition: 0.3s;
}
.lang-switch:hover { background: var(--accent-green); color: var(--bg-dark); }

/* Conteneurs de pages */
.page { max-width: 1200px; margin: 0 auto; padding: 180px 20px 60px 20px; animation: bloomIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.section-title { text-align: center; font-size: 3rem; font-weight: 900; margin-bottom: 50px; letter-spacing: -1px; }

/* Page Accueil / Hero */
.hero { text-align: center; }
.badge { background: linear-gradient(90deg, rgba(0,255,102,0.1), rgba(46,204,113,0.1)); padding: 8px 20px; border-radius: 100px; font-size: 0.85rem; font-weight: 600; border: 1px solid rgba(0, 255, 102, 0.2); display: inline-block; margin-bottom: 35px; }
.hero h1 { font-size: 5.5rem; font-weight: 900; line-height: 1.05; margin-bottom: 30px; letter-spacing: -3px; }
.hero h1 span { background: linear-gradient(90deg, var(--accent-green), var(--accent-leaf)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.35rem; color: var(--text-secondary); max-width: 750px; margin: 0 auto 50px auto; line-height: 1.6; }

/* Moniteur de Statut */
.status-panel { background: var(--bg-surface); border: 1px solid rgba(0, 255, 102, 0.08); border-radius: 24px; padding: 30px; max-width: 600px; margin: 40px auto; text-align: left; transition: 0.3s; }
.animated-panel { animation: sapPulse 3s infinite; }
.status-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px; margin-bottom: 15px; }
.status-title { font-weight: 800; font-size: 1.1rem; }
.status-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 0.95rem; }
.status-label { color: var(--text-secondary); }
.badge-system { padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.badge-system.online { background: rgba(0, 255, 102, 0.1); color: var(--accent-green); }

/* Bento Grid (Modules) */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.bento-card { background: var(--bg-surface); border: 1px solid rgba(255, 255, 255, 0.02); border-radius: 32px; padding: 45px; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.bento-card.large { grid-column: span 2; }
.bento-card:hover { transform: translateY(-5px); border-color: rgba(0, 255, 102, 0.25); box-shadow: 0 20px 40px rgba(0,255,102,0.05); }
.card-icon { font-size: 2.5rem; margin-bottom: 25px; background: rgba(255,255,255,0.02); width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 16px; }
.bento-card h3 { font-size: 1.6rem; margin-bottom: 15px; }
.bento-card p { color: var(--text-secondary); line-height: 1.6; }
.text-center { text-align: center; }

/* Liste d'actions (Ce que fait le bot) */
.action-container { display: flex; flex-direction: column; gap: 30px; max-width: 900px; margin: 0 auto; }
.action-row { display: flex; align-items: center; gap: 40px; background: var(--bg-surface); padding: 35px; border-radius: 24px; border: 1px solid rgba(255,255,255,0.02); transition: 0.3s; }
.action-row:hover { border-color: rgba(0, 255, 102, 0.2); }
.action-row:nth-child(even) { flex-direction: row-reverse; }
.action-text h3 { font-size: 1.8rem; color: #fff; margin-bottom: 15px; }
.action-text p { color: var(--text-secondary); line-height: 1.6; }
.action-illustration { font-size: 4rem; background: rgba(0,255,102,0.03); width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; border-radius: 24px; border: 1px solid rgba(0,255,102,0.08); }

/* Boite Légale */
.legal-box { background: var(--bg-surface); border: 1px solid rgba(255,255,255,0.02); padding: 40px; border-radius: 24px; max-width: 800px; margin: 0 auto; line-height: 1.8; color: var(--text-secondary); }
.legal-box h3 { color: #fff; margin: 25px 0 10px 0; }

/* Boutons & Pied de page */
.btn-container { display: flex; justify-content: center; }
.btn { padding: 18px 40px; font-size: 1.05rem; font-weight: 700; border-radius: 100px; text-decoration: none; transition: all 0.3s ease; }
.btn-primary { background: var(--accent-green); color: var(--bg-dark); box-shadow: 0 10px 30px rgba(0, 255, 102, 0.2); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 40px rgba(0, 255, 102, 0.4); }

footer { background: #020403; padding: 40px 20px; text-align: center; font-size: 0.9rem; color: var(--text-muted); border-top: 1px solid rgba(255,255,255,0.02); margin-top: 100px; }
footer a { color: var(--text-muted); text-decoration: none; margin-left: 15px; transition: 0.3s; }
footer a:hover, footer a.active { color: var(--accent-green); }