/* 
   DESIGN SYSTEM - TERRA VIVA
   Global styles, variables and layout components
*/

/* 1. VARIABLES & TOKENS */
:root {
    /* Colors */
    --color-primary: #1B5E20;       /* Vert forêt profond */
    --color-primary-light: #2E7D32;
    --color-accent: #7CB342;        /* Vert lime naturel */
    --color-accent-bright: #9CCC65;
    --color-earth: #5D4037;         /* Terre chaude */
    --color-earth-light: #8D6E63;
    --color-white: #FAFAF7;         /* Blanc cassé naturel */
    --color-black: #1A1A1A;
    --color-gray-light: #F5F5F0;
    --color-gray: #757575;
    --color-whatsapp: #25D366;

    /* Typography */
    --font-title: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --border-radius: 12px;
    --border-radius-lg: 24px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.14);
    --transition: all 0.3s ease;
    --navbar-height: 80px;
}

/* 2. RESET CSS */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 3. TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

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

ul {
    list-style: none;
}

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

/* 4. LAYOUT COMPONENTS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 5%;
}

/* 5. BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 10px;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
}

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

.btn-whatsapp svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* 6. NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: var(--shadow);
    z-index: 1000;
    height: var(--navbar-height);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 72px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-black);
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* Mobile Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* 7. FOOTER */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: 60px 0 30px;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-accent-bright);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--color-accent-bright);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

/* 8. WHATSAPP FLOAT & ANIMATIONS */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-whatsapp);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: white;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* 9. RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--navbar-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
        padding: 40px;
    }

    .nav-links.active {
        left: 0;
    }

    .footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}
