/* ==========================================================================
   GreenDeal.fr - Shared Styles
   ========================================================================== */

/* CSS Variables */
:root {
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;

    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;

    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --glass-white: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.1);
    --glass-inner-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);

    --liquid-gradient: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.75) 100%);
    --frost-blur: blur(20px);
    --surface: rgba(246, 252, 246, 0.96);

    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.65;
    color: var(--gray-800);
    background: linear-gradient(160deg, #e8f5e9 0%, #c8e6c9 25%, #a5d6a7 50%, #c8e6c9 75%, #e8f5e9 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--green-800);
    text-decoration: none;
}

a:hover {
    color: var(--green-600);
}

/* Ambient Background */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.light-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.light-orb-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(134, 239, 172, 0.6) 0%, transparent 70%);
    top: -300px;
    right: -200px;
}

.light-orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.5) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
}

.light-orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.4) 0%, transparent 70%);
    top: 40%;
    left: 30%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 0.6rem 1.25rem;
    background: var(--liquid-gradient);
    backdrop-filter: var(--frost-blur);
    -webkit-backdrop-filter: var(--frost-blur);
    top: 0;
    width: 100%;
    border-radius: 0;
    border: 1px solid transparent;
    border-bottom-color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--green-800);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--green-500), var(--emerald-500));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    transition: transform 0.3s var(--transition-spring), box-shadow 0.3s var(--transition-smooth);
}

.logo:hover .logo-icon {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

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

.nav-links > li > a {
    display: block;
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.25s var(--transition-smooth);
}

.nav-links > li > a:hover {
    color: var(--green-700);
    background: rgba(34, 197, 94, 0.1);
}

.nav-cta {
    background: linear-gradient(135deg, var(--green-500), var(--emerald-500));
    color: white !important;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    transition: all 0.3s var(--transition-smooth);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gray-700);
    margin: 4px 0;
    border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    background: linear-gradient(135deg, var(--green-500), var(--emerald-500));
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
    transition: all 0.3s var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
    color: white;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--glass-shadow);
    color: var(--gray-800);
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--liquid-gradient);
    backdrop-filter: var(--frost-blur);
    border-top: 1px solid var(--glass-border);
    padding: 0.5rem 1rem 0.65rem;
    z-index: 100;
}

.mobile-nav-list {
    display: flex;
    justify-content: space-around;
    list-style: none;
}

.mobile-nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    text-decoration: none;
    color: var(--gray-500);
    font-size: 0.65rem;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    transition: all 0.2s var(--transition-smooth);
}

.mobile-nav-item a:hover,
.mobile-nav-item a.active {
    color: var(--green-600);
    background: rgba(34, 197, 94, 0.1);
}

.mobile-nav-icon {
    font-size: 1.1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 3rem 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--green-800);
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--gray-600);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--green-600);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.85rem;
    color: var(--gray-500);
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: var(--gray-500);
}

.footer-legal-links a:hover {
    color: var(--green-600);
}

/* ==========================================================================
   Focus States
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--green-500);
    outline-offset: 2px;
}

/* ==========================================================================
   Responsive - Navigation
   ========================================================================== */
@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav {
        display: block;
    }
}

/* ==========================================================================
   Responsive - Footer
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem 5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .nav, .mobile-nav, .ambient-bg {
        display: none !important;
    }
}
