:root {
    /* Colors - Slate & Amber Theme */
    --primary: #0F172A; /* Slate 900 */
    --primary-light: #1E293B; /* Slate 800 */
    --secondary: #FFC107; /* Brighter Yellow/Amber */
    --secondary-dark: #FFB300; 
    --accent: #EA580C; /* Orange 600 */
    --text: #334155; /* Slate 700 */
    --text-light: #64748B; /* Slate 500 */
    --text-muted: #94A3B8; /* Slate 400 */
    --bg-light: #F8FAFC; /* Slate 50 */
    --white: #FFFFFF;
    --border: #E2E8F0; /* Slate 200 */
    --success: #10B981; /* Emerald 500 */
    
    /* Spacing & Sizing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--white);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    color: var(--primary);
    font-weight: 800;
    line-height: 1.2;
}

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

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

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
    width: 100%;
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
}

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

.card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 24px;
    transition: var(--transition);
    width: 100%;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
    width: 100%;
}

@media (max-width: 1024px) {
    .grid-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Stars */
.star-rating {
    display: flex;
    gap: 4px;
    color: var(--secondary) !important;
    align-items: center;
}

.star-rating svg, .star-rating i {
    fill: var(--secondary) !important;
    width: 18px;
    height: 18px;
    color: var(--secondary) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 10px;
    text-align: center;
    font-size: 1rem;
    max-width: 100%;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--primary) !important;
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--secondary);
    background-color: var(--bg-light);
}

.btn-full {
    width: 100%;
}

/* Header & Nav */
.main-header {
    height: var(--header-height);
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Desktop Search Box in Nav */
.desktop-search-box {
    position: relative;
    width: 200px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.desktop-search-box:focus-within {
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    width: 260px; /* Expands on focus */
}

.desktop-search-box input {
    border: none;
    background: transparent;
    padding: 10px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    width: 100%;
    outline: none;
    color: var(--primary);
}

.desktop-search-box i {
    color: var(--text-muted);
    width: 16px;
    height: 16px;
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.burger-menu {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 993px) {
    .burger-menu { display: none; }
}

@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .logo-text { font-size: 1.1rem; }
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--primary);
    z-index: 2100;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.close-drawer {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-search-box {
    margin-top: 30px;
    position: relative;
    width: 100%;
}

.mobile-search-box input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border-radius: var(--radius-md);
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    outline: none;
    font-size: 1rem;
}

.mobile-search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero {
    padding: calc(var(--header-height) + 60px) 0 80px;
    background-size: cover;
    background-position: center;
    color: var(--white);
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    width: 100%;
    text-align: center;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.7));
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    max-width: 900px;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 700px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    font-weight: 700;
}

.trust-row {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.trust-item i {
    color: var(--secondary);
    width: 18px;
    height: 18px;
}

/* Expertise Section */
.expertise-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    width: 100%;
}

@media (max-width: 768px) {
    .features-grid { 
        grid-template-columns: 1fr !important; 
        gap: 16px; 
    }
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
    height: 100%;
}

.feature-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.feature-item h3 { font-size: 1.25rem; margin-bottom: 10px; }

/* Simulator Card */
.simulator-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: calc(var(--header-height) + 20px);
    width: 100%;
    max-width: 100%;
}

.simulator-header {
    text-align: center;
    margin-bottom: 24px;
}

.simulator-header h3 { margin-bottom: 8px; color: var(--primary); }

.sim-form { display: flex; flex-direction: column; gap: 16px; }

.sim-group { display: flex; flex-direction: column; gap: 8px; }
.sim-group label { font-weight: 700; font-size: 0.9rem; color: var(--primary); }
.sim-group input, .sim-group select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.sim-group input:focus, .sim-group select:focus {
    border-color: var(--secondary);
}

.sim-result {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    text-align: center;
    display: none;
}

.sim-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
}

@media (max-width: 1024px) {
    .simulator-card { 
        position: static;
        width: 100% !important;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .simulator-card { 
        padding: 24px; 
    }
}

/* Regions Grid */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.region-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--primary) !important;
    width: 100%;
}

.region-card span {
    color: var(--primary) !important;
    font-weight: 800;
    font-size: 1.1rem;
}

.region-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Search Bar & Overlay */
.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input-wrapper input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    outline: none;
    color: var(--primary);
    transition: var(--transition);
    background-color: var(--white);
}

.search-input-wrapper input:focus {
    border-color: var(--secondary);
}

.search-input-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 2500;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    border: 1px solid var(--border);
}

.search-item {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    font-weight: 700;
    color: var(--primary) !important;
    display: flex;
    justify-content: space-between;
    width: 100%;
    text-align: left;
}

.search-item span { opacity: 0.5; font-weight: 400; font-size: 0.9rem; margin-left: 10px; }

.search-item:hover { background: var(--bg-light); color: var(--secondary) !important; }

/* FAQ */
.faq-grid { max-width: 800px; margin: 0 auto; width: 100%; }
.faq-item { background: var(--white); margin-bottom: 16px; border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden; transition: var(--transition); }
.faq-question { width: 100%; padding: 24px; display: flex; align-items: center; justify-content: space-between; background: none; border: none; cursor: pointer; text-align: left; font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.faq-question svg, .faq-question i { transition: var(--transition); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: var(--transition); opacity: 0; color: var(--text); }
.faq-item.active { border-color: var(--secondary); }
.faq-item.active .faq-answer { padding-bottom: 24px; max-height: 1000px; opacity: 1; }
.faq-item.active .faq-question { color: var(--secondary); }
.faq-item.active .faq-question svg, .faq-item.active .faq-question i { transform: rotate(180deg); color: var(--secondary); }

/* Sub Pages */
.sub-hero, .page-header {
    background: var(--primary);
    color: var(--white);
    padding: calc(var(--header-height) + 60px) 0 60px;
    width: 100%;
}

.sub-hero h1, .page-header h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.75rem); margin-bottom: 12px; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.breadcrumb::-webkit-scrollbar { height: 0; display: none; }

.breadcrumb a { flex-shrink: 0; white-space: nowrap; }
.breadcrumb span { flex-shrink: 0; white-space: nowrap; }

.breadcrumb a:hover { color: var(--secondary); opacity: 1; }

/* Maillage / Nearby Grid */
.nearby-section { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); }
.nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

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

.nearby-badge {
    background: var(--white) !important;
    color: var(--primary) !important;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: block;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.nearby-badge:hover {
    border-color: var(--secondary);
    background: var(--bg-light) !important;
    transform: translateY(-2px);
    color: var(--secondary) !important;
}

/* Companies */
.companies-list { display: flex; flex-direction: column; gap: 24px; }
.company-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.company-card:hover { border-color: var(--secondary); box-shadow: var(--shadow-md); }

.company-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.company-info h3 { font-size: 1.4rem; margin-bottom: 8px; color: var(--primary); }
.company-address { display: flex; align-items: center; gap: 8px; color: var(--text-light); font-size: 0.95rem; }

.company-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.rating-score { font-weight: 800; font-size: 1.25rem; color: var(--primary); white-space: nowrap; }

.company-actions {
    display: flex;
    gap: 16px;
    width: 100%;
}

@media (max-width: 640px) {
    .company-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .company-rating { align-items: flex-start; }
    .company-actions { flex-direction: column; }
    .company-card { padding: 20px; }
}

/* Fallback Box */
.fallback-box {
    background: var(--primary);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 40px 0;
    width: 100%;
}

.fallback-box h3 { color: var(--white); font-size: 1.75rem; margin-bottom: 16px; }
.fallback-box p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.9; }

@media (max-width: 640px) {
    .fallback-box { padding: 30px 20px; }
}

/* Pricing Table */
.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow);
    width: 100%;
}

.pricing-card h3 { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--secondary); }

.pricing-list { display: flex; flex-direction: column; gap: 16px; }
.pricing-row { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border); padding-bottom: 12px; gap: 10px; }
.pricing-label { font-weight: 700; color: var(--primary); }
.pricing-value { color: var(--secondary); font-weight: 800; white-space: nowrap; }

/* Footer */
.footer { background: var(--primary); color: var(--white); padding: 80px 0 40px; width: 100%; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-logo { margin-bottom: 24px; }
.footer-logo .logo-icon { background: var(--white); color: var(--primary); }
.footer-logo .logo-text { color: var(--white); }
.footer h4 { color: var(--white); font-size: 1.2rem; margin-bottom: 24px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--secondary); }

.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255, 255, 255, 0.7); font-weight: 500; }
.footer-links a:hover { color: var(--secondary); padding-left: 5px; }

.footer-bottom { margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; opacity: 0.7; font-size: 0.9rem; }

@media (max-width: 768px) {
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
}

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Utility */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.secondary-text { color: var(--secondary); }

/* Section Lead */
.section-lead {
    line-height: 1.8;
}

@media (max-width: 480px) {
    .trust-badge { width: 100%; justify-content: center; font-size: 0.8rem; }
    .hero-content { width: 100%; }
}