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

:root {
    --primary: #0077B6;
    --primary-light: #E0F2FE;
    --primary-dark: #03045E;
    --secondary: #90E0EF;
    --accent: #CAF0F8;
    --success: #10B981;
    --error: #EF4444;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --bg-main: #F8FAFC;
    --white: #FFFFFF;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utilities */
.py-5 { padding-top: 5rem; padding-bottom: 5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

/* Typography */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; color: var(--primary-dark); }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

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

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

/* Header */
header {
    background: var(--white);
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0;
    background: linear-gradient(rgba(3, 4, 94, 0.85), rgba(0, 119, 182, 0.85)), url('https://images.pexels.com/photos/12224996/pexels-photo-12224996.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=1200&w=1920');
    background-size: cover;
    background-position: center;
    color: var(--white);
    overflow: hidden;
}

.hero h1 { color: var(--white); font-size: 3.5rem; margin-bottom: 1.5rem; }
.hero h1 span { color: var(--secondary); }
.hero p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 2rem; }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 4rem;
    align-items: center;
}

/* Simulator Box */
.simu-box {
    background: var(--white);
    color: var(--text-main);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.1);
}

.simu-box h2 { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--text-main); }

.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--primary); }

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-2-1 {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

/* Cards */
.card {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.3s ease;
    display: block;
}
.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #E2E8F0;
}

/* Local Stats Widget */
.stats-widget {
    background: var(--primary-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--accent);
}

/* Footer */
footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 4rem 0 2rem;
}

footer h4 { color: var(--white); margin-bottom: 1.5rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.75rem; }
footer a { color: #94A3B8; }
footer a:hover { color: var(--white); }

/* ViteUnDevis Specific fixes */
#v01f2495e31d {
    min-height: 500px;
    width: 100%;
}

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-2-1 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .grid-3 { grid-template-columns: 1fr; }
}