/* AESOP Energy — shared design system (PROMPT_ACCUEIL palette). */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1a2a6c;
    --primary-end: #2d4373;
    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #333;
    --text-muted: #666;
    --border: #e2e8f0;
    --accent: #3388ff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* --- Navbar ------------------------------------------------------------- */
.navbar {
    background: linear-gradient(135deg, var(--primary), var(--primary-end));
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 60px;
}
.navbar-container {
    max-width: 1400px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.navbar-brand { display: flex; align-items: center; gap: .5rem; color: #fff;
    text-decoration: none; font-weight: 700; letter-spacing: .5px; }
.brand-icon { font-size: 1.4rem; }
.navbar-links { display: flex; gap: 1.25rem; margin-left: auto; margin-right: 1.25rem; }
.navbar-link { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 500; }
.navbar-link:hover { color: #fff; }
.navbar-actions { display: flex; align-items: center; }
.navbar-btn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
    color: #fff; text-decoration: none;
}
.navbar-btn:hover { background: rgba(255,255,255,0.2); }

/* --- Dropdown ----------------------------------------------------------- */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; right: 0; list-style: none;
    background: #fff; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 200px; padding: .5rem 0; margin-top: .5rem;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.2s ease;
}
.dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-header { padding: .5rem 1rem; font-weight: 600; color: var(--primary);
    border-bottom: 1px solid var(--border); margin-bottom: .25rem; font-size: .9rem; }
.dropdown-item { display: block; padding: .55rem 1rem; color: var(--text);
    text-decoration: none; font-size: .95rem; }
.dropdown-item:hover { background: #f0f7ff; color: var(--primary); }

/* --- Layout ------------------------------------------------------------- */
.main-content { margin-top: 60px; padding: 2rem;
    min-height: calc(100vh - 60px - 60px); }
.container { max-width: 1400px; margin: 0 auto; }

.footer { background: var(--primary); color: #fff; text-align: center;
    padding: 1.25rem; height: 60px; }

/* --- Hero / features ---------------------------------------------------- */
.hero { background: linear-gradient(135deg, #f0f7ff, #e6f0ff); border-radius: 16px;
    padding: 3rem 2rem; text-align: center; margin-bottom: 2rem; }
.hero h1 { color: var(--primary); font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { color: var(--text-muted); max-width: 720px; margin: 0 auto; font-size: 1.1rem; }

.features { display: grid; gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature-card { background: var(--card); border-radius: 12px; padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08); text-decoration: none; color: var(--text);
    transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.feature-icon { font-size: 2rem; margin-bottom: .75rem; }
.feature-card h3 { color: var(--primary); margin-bottom: .5rem; }
.feature-card p { color: var(--text-muted); margin-bottom: 1rem; }
.feature-link { color: var(--accent); font-weight: 600; }

/* --- Dashboard ---------------------------------------------------------- */
.dashboard-header { margin-bottom: 2rem; }
.dashboard-header h1 { color: var(--primary); }
.dashboard-header p { color: var(--text-muted); }
.stats-grid { display: grid; gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat-card { background: var(--card); border-radius: 12px; padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08); text-align: center; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label { color: var(--text-muted); margin-top: .35rem; }
