:root {
    --primary: #0077B6;
    --primary-dark: #023E8A;
    --secondary: #90E0EF;
    --text-main: #2b2d42;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border: #dee2e6;
    --border-radius: 8px;
    --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);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--bg-light);
    line-height: 1.6;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-main);
}
.logo i {
    color: var(--primary);
}
.logo strong {
    font-weight: 800;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.main-nav a:not(.btn) {
    font-weight: 600;
    color: var(--text-main);
}
.main-nav a:not(.btn):hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: #fff;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-small {
    background: var(--primary-dark);
    color: white;
    padding: 60px 20px;
}
.hero-small h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.hero-small .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Simulator Section */
.simulator-section {
    padding: 60px 0;
    background: var(--bg-white);
}
.simulator-card {
    max-width: 600px;
    margin: -80px auto 0;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
}
.simulator-card h2 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--primary-dark);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,119,182,0.1);
}
.simulator-result {
    margin-top: 24px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    text-align: center;
    display: none;
}
.simulator-result.active {
    display: block;
    animation: fadeIn 0.4s ease;
}
.price-display {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 16px 0;
}

/* Devis Section */
.devis-section {
    padding: 60px 0;
    background: var(--bg-light);
}
.devis-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}
.devis-form-wrapper {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    min-height: 500px;
}
.devis-reassurance {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.reassurance-item {
    display: flex;
    gap: 16px;
}
.reassurance-item i {
    color: var(--primary);
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.reassurance-item h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--primary-dark);
}
.reassurance-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Sections */
.section {
    padding: 80px 0;
}
.bg-white {
    background: var(--bg-white);
}
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

/* Grid Layouts */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-main);
}
.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.blog-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.blog-date {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}
.blog-card h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
}
.blog-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}
.blog-read-more {
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-top: auto;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.feature {
    display: flex;
    gap: 16px;
}
.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--secondary);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature h3 {
    margin-bottom: 8px;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.breadcrumbs a {
    color: var(--text-muted);
}
.breadcrumbs span {
    color: var(--text-main);
    font-weight: 600;
}
.breadcrumbs i {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin: 0 4px;
}

/* Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}
.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3, .footer-col h4 {
    margin-bottom: 16px;
}
.footer-col h3 { color: var(--secondary); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: #aaa; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 16px; }
    .hero h1 { font-size: 2rem; }
    .hero-small h1 { font-size: 2rem; }
    .simulator-card { margin-top: -40px; padding: 20px; }
    .devis-container { grid-template-columns: 1fr; }
}