:root {
    --primary: #0077B6;
    --primary-light: #90E0EF;
    --primary-dark: #03045E;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --bg-main: #ffffff;
    --bg-alt: #f3f4f6;
    --border: #e5e7eb;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-8: 4rem;
    --space-12: 6rem;
}

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

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

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
}

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

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

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: var(--space-3);
    color: var(--text-main);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin-bottom: var(--space-3); color: var(--text-muted); font-size: 1.125rem; }

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 999px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 119, 182, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-light);
    color: var(--primary-dark);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo i {
    color: var(--primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-4);
}

.main-nav a:not(.btn) {
    font-weight: 500;
    color: var(--text-main);
}

.main-nav a:not(.btn):hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    position: relative;
    padding: var(--space-12) 0;
    overflow: hidden;
    background-color: var(--bg-alt);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.hero-content h1 span {
    color: var(--primary);
    display: block;
}

.hero-image {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: rotate(2deg);
    transition: var(--transition);
}

.hero-image:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Sections */
.section {
    padding: var(--space-12) 0;
}

.section-alt {
    background-color: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-8);
}

/* Grids */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.feature-card {
    background: var(--bg-main);
    padding: var(--space-6);
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    color: var(--primary-dark);
}

/* Split layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.split-image {
    border-radius: 1.5rem;
    overflow: hidden;
}

/* Simulator Widget */
.simulator-widget {
    background: var(--bg-main);
    padding: var(--space-6);
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-light);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-alt);
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.2);
}

.simulator-result {
    margin-top: var(--space-6);
    padding: var(--space-4);
    background: var(--primary-dark);
    color: white;
    border-radius: 1rem;
    text-align: center;
    display: none;
}

.simulator-result h3 {
    color: var(--primary-light);
    margin-bottom: var(--space-2);
}

.result-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-2);
}

/* City Grid */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-4);
}

.city-link {
    display: block;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-main);
}

.city-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* RGPD Banner */
.rgpd-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-main);
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 15px -3px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    padding: var(--space-4) 0;
}

.rgpd-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    text-align: center;
}

.rgpd-banner p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.rgpd-actions {
    display: flex;
    gap: var(--space-2);
}

.rgpd-actions .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: white;
    padding: var(--space-8) 0 var(--space-4);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.site-footer h3, .site-footer h4 {
    color: white;
}

.site-footer p {
    color: #cbd5e1;
}

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

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: #cbd5e1;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Specific Overrides */
.site-footer .btn-outline {
    color: white;
    border-color: rgba(255,255,255,0.5);
}
.site-footer .btn-outline:hover {
    background-color: white;
    color: var(--primary-dark);
}

/* Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (min-width: 768px) {
    .rgpd-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (max-width: 1024px) {
    .hero-grid, .split-layout {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .hero-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-4);
        border-bottom: 1px solid var(--border);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}