/* ==========================================================
   MY ENERGY — DESIGN SYSTEM
   Charte graphique : noir profond + vert lime + serif Lora
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --lime: #C8F032;
    --lime-dark: #A8D028;
    --lime-bg: #E8F5C5;
    --black: #0E0E0E;
    --black-soft: #1A1A1A;
    --grey-dark: #222;
    --grey: #6B6B6B;
    --grey-light: #9A9A9A;
    --bg-light: #F5F5F5;
    --bg-cream: #FAFAF8;
    --border: #E0E0E0;
    --white: #FFF;
    
    --font-serif: 'Lora', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius: 8px;
    --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--grey-dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--black);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.15rem; font-weight: 600; }

.italic-accent {
    font-style: italic;
    font-weight: 500;
    color: var(--lime-dark);
}

.tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--lime-dark);
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--lime);
    margin-bottom: 1.5rem;
}

.tag-light {
    color: var(--lime);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    background: rgba(14, 14, 14, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    position: relative;
    padding-left: 0.5rem;
}

.logo::before {
    content: '';
    position: absolute;
    left: 0;
    top: -2px;
    width: 6px;
    height: 12px;
    border-left: 1.5px solid var(--white);
    border-top: 1.5px solid var(--white);
}

.logo .my {
    color: var(--lime);
}

.logo .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lime);
    margin-left: 2px;
    align-self: flex-end;
    margin-bottom: 5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 0.3rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--lime);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--lime);
}

.nav-cta {
    background: var(--lime);
    color: var(--black) !important;
    padding: 0.6rem 1.3rem !important;
    border-radius: 4px;
    font-weight: 600 !important;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--white);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    background: none;
    border: none;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--lime);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 240, 50, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--lime);
    color: var(--lime);
}

.btn-dark {
    background: var(--black);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--lime);
    color: var(--black);
}

/* ===== LIME SIDEBAR ===== */
.page-with-bar {
    position: relative;
}

.page-with-bar::before {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--lime);
    z-index: 999;
}

/* ===== SECTIONS ===== */
section {
    padding: 6rem 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 900px;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header .subtitle {
    font-size: 1.1rem;
    color: var(--grey);
    line-height: 1.5;
}

/* ===== FOOTER ===== */
footer {
    background: var(--black);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 1rem;
}

.footer-col h4 {
    color: var(--lime);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.7rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--lime);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.8s var(--transition) forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        flex-direction: column;
        background: var(--black);
        padding: 2rem;
        width: 80%;
        height: calc(100vh - 60px);
        transition: right var(--transition);
        gap: 1.5rem;
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
