:root {
    /* Color Palette */
    --primary-color: #00C896;
    /* Vibrant Teal/Green */
    --primary-hover: #00A87E;
    --secondary-color: #1A1A2E;
    /* Dark Navy */
    --accent-color: #4D7CFF;
    /* Electric Blue */
    --text-main: #1A1A2E;
    --text-light: #6B7280;
    --background-light: #F4F7F6;
    --white: #FFFFFF;
    --error: #EF4444;
    --success: #10B981;

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--background-light);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 200, 150, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 150, 0.6);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

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

/* Header */
header {
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

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

/* New Global Nav Styles */
nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-switcher a {
    text-decoration: none;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    opacity: 1;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    nav.active {
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }
}

/* Card Component */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* Simulator Grid */
.simulator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

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

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.1);
}

/* ViteUnDevis Widget Styling */
#v0dc0c1751fd {
    width: 100%;
    font-family: var(--font-main) !important;
}

/* Attempt to style injected elements if possible (might require !important if widget uses inline styles) */
#v0dc0c1751fd input,
#v0dc0c1751fd select,
#v0dc0c1751fd textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: var(--font-main);
    margin-bottom: 15px;
}

#v0dc0c1751fd button,
#v0dc0c1751fd input[type="submit"] {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 12px 32px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#v0dc0c1751fd button:hover,
#v0dc0c1751fd input[type="submit"]:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 150, 0.6);
}

/* New ViteUnDevis Widget Styling */
#vb78b21c711d {
    width: 100%;
    font-family: var(--font-main) !important;
}

#vb78b21c711d input,
#vb78b21c711d select,
#vb78b21c711d textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: var(--font-main);
    margin-bottom: 15px;
}

#vb78b21c711d button,
#vb78b21c711d input[type="submit"] {
    border-radius: 10px;
    height: 8px;
    width: 100%;
    margin-top: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

/* Result Animations */
@keyframes highlight {
    0% {
        transform: scale(1);
        color: var(--white);
    }

    50% {
        transform: scale(1.1);
        color: var(--primary-color);
    }

    100% {
        transform: scale(1);
        color: var(--white);
    }
}

.result-value.updating {
    animation: highlight 0.3s ease;
}

/* Input Groups (SOC, Prices) */
.input-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.input-group-half {
    flex: 1;
}

/* Range Slider Styling */
input[type=range] {
    width: 100%;
    margin: 10px 0;
    cursor: pointer;
}

/* Quick Select Buttons */
.quick-select-group {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.quick-btn {
    padding: 4px 10px;
    font-size: 0.8rem;
    border: 1px solid #E5E7EB;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

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