/* Import de la police */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

:root {
    --primary-bg: #0f172a; /* Fond sombre principal */
    --secondary-bg: #1e293b; /* Fond sections secondaires */
    --text-light: #e2e8f0;
    --text-dim: #94a3b8;
    
    /* Couleurs vibrantes pour les accents */
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --accent-color: #6366f1;
    --success-color: #10b981;
}

/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.5px; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
.section-padding { padding: 80px 5%; }

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(15, 23, 42, 0.95); /* Semi-transparent */
    backdrop-filter: blur(10px); /* Effet verre dépoli */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
}
.logo i { color: var(--accent-color); margin-right: 10px; }
.logo span { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a:hover { color: var(--accent-color); }

.btn-login {
    background: var(--accent-gradient);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.btn-login:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6); }
.burger { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- Hero Section Vivante --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 5%;
    margin-top: -80px; /* Compensate navbar */
    /* POUR L'IMAGE DE FOND : Remplacez l'URL par votre image locale : url('../img/hero-bg.jpg') */
    background: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
}

/* Calque sombre sur l'image pour la lisibilité */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, var(--primary-bg) 10%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Taille responsive automatique */
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-dim); margin-bottom: 3rem; }

.cta-group { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 10px;
}
.main-cta { background: var(--accent-gradient); box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); }
.main-cta:hover { transform: translateY(-3px); }
.secondary-cta { background: rgba(255,255,255,0.1); backdrop-filter: blur(5px); }
.secondary-cta:hover { background: rgba(255,255,255,0.2); }

/* Petit élément fun animé */
.floating-code {
    position: absolute;
    bottom: 15%; right: 10%;
    font-family: 'Courier New', monospace;
    background: rgba(0,0,0,0.5);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--accent-color);
    color: var(--success-color);
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    display: none; /* Caché sur mobile par défaut */
}
@media (min-width: 1024px) { .floating-code { display: block; } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }

/* --- Services Cards (Sérieux & Fun) --- */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-header h2 i { color: var(--accent-color); }
.section-header p { color: var(--text-dim); font-size: 1.1rem; }

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Grille responsive magique */
    gap: 2.5rem;
}

.service-card {
    background: var(--secondary-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Effet rebond */
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

/* Effet de survol "Wow" */
.service-card:hover {
    transform: translateY(-15px);
    background: #253248;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--accent-color);
}
/* Une barre de couleur en haut au survol */
.service-card::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: var(--accent-gradient);
    transform: scaleX(0); transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }

.icon-wrapper {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.color-1 i { color: #6366f1; }
.color-2 i { color: #10b981; }
.color-3 i { color: #f43f5e; }

.service-card h3 { margin-bottom: 1rem; font-size: 1.5rem; }
.service-card p { color: var(--text-dim); }

/* --- Tech Stack (Sérieux) --- */
.dark-mode { background-color: #0a0f1c; /* Encore plus sombre */ }
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.tech-item {
    background: rgba(255,255,255,0.03);
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    display: flex; align-items: center; gap: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}
.tech-item i { font-size: 1.5rem; color: var(--text-dim); }
.tech-item:hover {
    background: var(--accent-gradient); color: white; border-color: transparent;
    transform: scale(1.05);
}
.tech-item:hover i { color: white; }

/* --- Footer Pro --- */
footer { background: #050911; color: var(--text-dim); margin-top: auto; }
.footer-content {
    padding: 5rem 5%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 { color: white; margin-bottom: 0.5rem; }
.mission-text { margin-top: 1rem; max-width: 300px; font-style: italic; }
.legal-info-box h4 { color: white; margin-bottom: 1.5rem; }
.legal-info-box ul { list-style: none; }
.legal-info-box li { margin-bottom: 0.8rem; display: flex; align-items: center; gap: 10px; }
.legal-info-box i { color: var(--accent-color); font-size: 0.9rem; }

.admin-discrete-link {
    display: inline-block; margin-top: 1rem; font-size: 0.8rem; opacity: 0.5;
}
.admin-discrete-link:hover { opacity: 1; color: var(--accent-color); }

.copyright { padding: 2rem 5%; text-align: center; font-size: 0.9rem; background: rgba(0,0,0,0.2); }

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed; right: 0px; height: 100vh; top: 0;
        background: var(--secondary-bg); display: flex; flex-direction: column;
        align-items: center; justify-content: center; width: 50%;
        transform: translateX(100%); transition: transform 0.5s ease-in;
        z-index: 99;
    }
    .nav-links.nav-active { transform: translateX(0%); }
    .burger { display: block; z-index: 100; }
    .section-padding { padding: 60px 5%; }
    .hero-content h1 { font-size: 2.5rem; }
    .footer-content { flex-direction: column; }
}/* --- EXTENSION DASHBOARD & FORMS --- */

/* Mise en page Dashboard */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--secondary-bg);
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.sidebar-menu { list-style: none; margin-top: 3rem; }
.sidebar-menu li { margin-bottom: 1rem; }
.sidebar-menu a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text-dim);
    font-weight: 500;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
    background: rgba(255,255,255,0.05);
    color: var(--accent-color);
}
.logout-btn { margin-top: auto; color: #f43f5e !important; }

.main-content {
    flex: 1;
    padding: 3rem;
    background: var(--primary-bg);
    overflow-y: auto;
}

/* Cartes de Stats (Widgets) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.stat-card {
    background: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center; gap: 1.5rem;
}
.stat-icon {
    width: 50px; height: 50px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    background: rgba(255,255,255,0.05);
}
.stat-info h3 { font-size: 2rem; margin: 0; line-height: 1; }
.stat-info p { margin: 0; font-size: 0.9rem; color: var(--text-dim); }

/* Formulaires "Glass" */
.login-container {
    height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover;
}
.glass-form {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    width: 100%; max-width: 400px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; }
.form-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 8px;
    color: white;
    font-family: 'Poppins', sans-serif;
}
.form-input:focus { outline: none; border-color: var(--accent-color); }

/* Tableaux Pro */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--secondary-bg);
    border-radius: 12px; overflow: hidden;
}
.data-table th, .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.data-table th { background: rgba(0,0,0,0.2); font-weight: 600; color: var(--text-dim); }
.status-badge {
    padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
}
.status-active { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.status-pending { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }