/* ===== Base ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background: #fff;
}
.navbar-brand { font-size: 1.15rem; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: #fff;
    padding: 70px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-compact { padding: 50px 0; }
.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    opacity: 0.15;
    pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero .breadcrumb-custom { font-size: 0.9rem; opacity: 0.85; margin-bottom: 1rem; }
.hero .breadcrumb-custom a { color: rgba(255,255,255,0.85); text-decoration: none; }
.hero .breadcrumb-custom a:hover { color: var(--secondary); }

.trust-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.12);
    padding: 8px 16px; border-radius: 50px;
    font-size: 0.9rem; margin-bottom: 1rem;
}
.trust-badge i { width: 18px; color: var(--secondary); }

.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item i { width: 26px; color: var(--secondary); flex-shrink: 0; }
.trust-item small { display: block; font-size: 0.8rem; opacity: 0.75; }

.price-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--secondary); color: var(--dark);
    padding: 10px 18px; border-radius: 50px;
    font-weight: 600;
}
.price-pill i { width: 18px; }

/* ===== Hero form ===== */
.hero-form {
    background: #fff;
    color: var(--dark);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.form-card h3 { color: var(--dark); margin-bottom: 6px; font-size: 1.2rem; font-weight: 700; }
.form-card p { font-size: 0.9rem; color: #666; margin-bottom: 14px; }
.leadrs-placeholder {
    border: 2px dashed var(--accent);
    padding: 20px; border-radius: 8px;
    background: #fff7ed; font-size: 0.9rem;
}
.leadrs-placeholder code {
    background: #fff; padding: 2px 6px; border-radius: 4px;
    font-family: monospace; font-size: 0.85rem;
}

/* ===== Section ===== */
.section { padding: 60px 0; }
.section-alt { background: var(--gray); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.section-title p { color: #666; font-size: 1.05rem; max-width: 700px; margin: 0 auto; }

/* ===== Custom cards ===== */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.2s;
}
.card-link:hover {
    transform: translateY(-3px);
    color: inherit;
}
.card-link:hover .card { border-color: var(--primary); box-shadow: 0 12px 28px rgba(0,0,0,0.08); }
.card-link .card i:first-child { width: 32px; color: var(--secondary); margin-bottom: 0.75rem; }

.card-mini {
    display: flex; align-items: center; gap: 10px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--dark); font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
    font-size: 0.92rem;
}
.card-mini i { width: 18px; color: var(--secondary); flex-shrink: 0; }
.card-mini:hover { background: var(--gray); border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* ===== City grid ===== */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}
.city-tile {
    background: var(--gray);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--dark);
    display: flex; flex-direction: column;
    transition: all 0.15s;
    text-decoration: none;
}
.city-tile strong { font-size: 0.95rem; }
.city-tile small { font-size: 0.8rem; color: #888; }
.city-tile:hover {
    background: var(--primary); color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}
.city-tile:hover small { color: rgba(255,255,255,0.8); }

/* ===== Editorial ===== */
.editorial h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; color: var(--primary); }
.editorial h3 { font-size: 1.15rem; font-weight: 600; margin: 24px 0 12px; color: var(--dark); }
.editorial p { margin-bottom: 14px; color: #444; }
.editorial ul li { margin-bottom: 6px; color: #444; }

.info-box {
    display: flex; align-items: flex-start; gap: 12px;
    background: #fff7ed;
    border-left: 4px solid var(--secondary);
    padding: 16px 20px; border-radius: 8px;
    margin-top: 20px;
}
.info-box i { color: var(--accent); width: 22px; flex-shrink: 0; margin-top: 2px; }
.info-box p { margin: 0; font-size: 0.92rem; }

/* ===== Link lists ===== */
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.link-list li:last-child { border-bottom: none; }
.link-list a {
    display: flex; align-items: center; gap: 6px;
    color: var(--dark); font-size: 0.92rem;
    text-decoration: none;
}
.link-list a:hover { color: var(--primary); }
.link-list i { width: 14px; color: var(--secondary); opacity: 0.6; }

/* ===== Data card ===== */
.data-card { background: var(--gray); border: none; }
.data-card h4 { margin-bottom: 14px; font-size: 1rem; }
.data-row {
    display: flex; justify-content: space-between;
    padding: 6px 0; font-size: 0.9rem; color: #666;
}
.data-row strong { color: var(--dark); }

/* ===== Footer ===== */
.site-footer { background: var(--dark); }
.site-footer h5 { font-size: 1rem; margin-bottom: 12px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--secondary) !important; }

/* ===== Buttons custom ===== */
.btn-sun {
    background: var(--secondary); color: var(--dark);
    border: none; font-weight: 600;
    padding: 10px 22px; border-radius: 50px;
}
.btn-sun:hover { background: var(--accent); color: #fff; }

/* ===== Local KPIs (encart hero) ===== */
.local-kpis-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 18px 20px;
    backdrop-filter: blur(8px);
}
.local-kpis-card h6 {
    color: rgba(255,255,255,0.9);
    display: flex; align-items: center; gap: 8px;
}
.kpi-box {
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 12px 14px;
    text-align: left;
    transition: background 0.2s;
}
.kpi-box:hover { background: rgba(255,255,255,0.13); }
.kpi-box strong {
    display: block;
    font-size: 1.15rem;
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.1;
}
.kpi-box small {
    display: block;
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
    margin-top: 3px;
    line-height: 1.3;
}
.kpi-sources {
    color: rgba(255,255,255,0.5);
    font-size: 0.72rem;
    font-style: italic;
}

/* ===== Certif badges ===== */
.certif-strip {
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    border: 1px solid #eee;
    border-radius: 12px;
}
.certif-label {
    display: flex; align-items: center; gap: 6px; justify-content: center;
    color: #555; font-size: 0.85rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.certif-badge {
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    background: #fff;
    transition: all 0.2s;
    height: 100%;
}
.certif-badge:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.certif-badge strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.1;
}
.certif-badge small {
    display: block;
    font-size: 0.7rem;
    color: #888;
    line-height: 1.2;
}
.certif-rge     { border-color: #2c7a7b; }
.certif-rge strong     { color: #2c7a7b; }
.certif-qualipv { border-color: #1a5490; }
.certif-qualipv strong { color: #1a5490; }
.certif-mpr     { border-color: #003e7c; }
.certif-mpr strong     { color: #003e7c; }
.certif-edf     { border-color: #fe5722; }
.certif-edf strong     { color: #fe5722; }
.certif-deca    { border-color: #555; }
.certif-deca strong    { color: #555; }
.certif-consuel { border-color: #228b22; }
.certif-consuel strong { color: #228b22; }

/* ===== Process steps ===== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    position: relative;
}
@media (max-width: 991px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .process-steps { grid-template-columns: 1fr; } }
.process-step {
    background: #fff;
    border-radius: 14px;
    padding: 28px 18px 22px;
    text-align: center;
    border: 1px solid #eee;
    position: relative;
    transition: transform 0.15s, box-shadow 0.15s;
}
.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.07);
}
.process-num {
    position: absolute;
    top: -16px; left: 50%;
    transform: translateX(-50%);
    width: 36px; height: 36px;
    background: var(--secondary);
    color: var(--dark);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.05rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.process-step i {
    width: 36px; height: 36px;
    color: var(--primary);
    margin-bottom: 12px;
}
.process-step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}
.process-step p {
    font-size: 0.88rem;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.5;
}
.step-time {
    display: inline-block;
    background: var(--gray);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ===== Stats officielles ===== */
.stats-officielles {
    background: linear-gradient(135deg, #f0f9ff 0%, #fff7ed 100%);
    border-radius: 12px;
    border-left: 4px solid var(--secondary);
}
.stats-officielles h4 {
    display: flex; align-items: center; gap: 8px;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.stats-officielles strong {
    color: var(--primary);
    font-size: 1.2rem;
    display: block;
}
.stats-officielles small {
    color: #555;
    font-size: 0.85rem;
}

/* ===== Calculateur ROI ===== */
.calc-roi h2 {
    color: var(--primary);
    font-size: 1.4rem;
    display: flex; align-items: center; gap: 10px;
}
.calc-roi .form-range::-webkit-slider-thumb {
    background: var(--secondary);
}
.calc-roi .form-range::-moz-range-thumb {
    background: var(--secondary);
}
.kpi-result {
    background: var(--gray);
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
    transition: transform 0.15s;
}
.kpi-result:hover { transform: translateY(-2px); }
.kpi-result small {
    display: block;
    color: #666;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.kpi-result strong {
    display: block;
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
}
.kpi-result .text-success { color: var(--success) !important; }

/* ===== FAQ accordion ===== */
.faq-section h2 {
    display: flex; align-items: center; gap: 12px;
    color: var(--primary);
    font-size: 1.5rem;
}
.faq-section .accordion-item {
    border: none;
    border-bottom: 1px solid #eee;
}
.faq-section .accordion-button {
    background: transparent;
    font-weight: 600;
    color: var(--dark);
    padding: 1rem 0;
    box-shadow: none !important;
    font-size: 1.02rem;
}
.faq-section .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--primary);
}
.faq-section .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}
.faq-section .accordion-body {
    padding: 0 0 1.2rem 0;
    color: #555;
    line-height: 1.7;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .hero h1 { font-size: 1.9rem; }
    .hero { padding: 50px 0 60px; }
}
