/* ============================================================================
   MH Site Builder — Frontend CSS
   Charte : Bleu roi #1E40AF + Rouge #BE123C + Plus Jakarta Sans
   ============================================================================ */

:root {
    --mh-primary: #1E40AF;
    --mh-primary-dark: #1E3A8A;
    --mh-primary-light: #DBEAFE;
    --mh-accent: #BE123C;
    --mh-accent-dark: #9F1239;
    --mh-neutral-900: #111827;
    --mh-neutral-700: #374151;
    --mh-neutral-600: #4B5563;
    --mh-neutral-400: #9CA3AF;
    --mh-neutral-200: #E5E7EB;
    --mh-neutral-100: #F3F4F6;
    --mh-neutral-50: #F9FAFB;
    --mh-success: #16A34A;
    --mh-danger: #BE123C;
    --mh-shadow-sm: 0 1px 2px rgba(17,24,39,.04);
    --mh-shadow-md: 0 4px 12px rgba(30,64,175,.08);
    --mh-shadow-lg: 0 12px 24px -8px rgba(30,64,175,.18);
    --mh-radius: 12px;
    --mh-radius-sm: 8px;
    --mh-radius-lg: 20px;
    --mh-transition: .2s cubic-bezier(.4,0,.2,1);
    --mh-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mh-container: 1200px;
}

/* ============================================================================
   BASE
   ============================================================================ */

body.mhsb-body {
    margin: 0;
    padding: 0;
    font-family: var(--mh-font);
    color: var(--mh-neutral-900);
    background: #fff;
    overflow-x: hidden;
}

body.mhsb-body * {
    box-sizing: border-box;
}

.mhsb-main {
    min-height: 60vh;
    padding-top: 0;
}

/* ============================================================================
   TOP BAR (petit bandeau d'infos)
   ============================================================================ */

.mhsb-topbar {
    background: var(--mh-neutral-900);
    color: #fff;
    font-size: 13px;
    padding: 8px 20px;
}

.mhsb-topbar-inner {
    max-width: var(--mh-container);
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.mhsb-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.85);
}

.mhsb-topbar-item svg {
    color: var(--mh-accent);
    flex-shrink: 0;
}

.mhsb-topbar-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: var(--mh-transition);
}

.mhsb-topbar-phone:hover {
    color: var(--mh-accent);
}

.mhsb-topbar-phone svg {
    color: var(--mh-accent);
}

/* ============================================================================
   NAVBAR (sticky, logo + menu + CTAs)
   ============================================================================ */

.mhsb-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--mh-neutral-200);
    transition: var(--mh-transition);
}

.mhsb-navbar-scrolled {
    box-shadow: var(--mh-shadow-md);
}

.mhsb-navbar-inner {
    max-width: var(--mh-container);
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.mhsb-navbar-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mhsb-navbar-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.mhsb-navbar-menu {
    flex: 1;
}

.mhsb-navbar-menu ul {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.mhsb-navbar-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--mh-neutral-700);
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    border-radius: var(--mh-radius-sm);
    transition: var(--mh-transition);
}

.mhsb-navbar-menu a:hover {
    color: var(--mh-primary);
    background: var(--mh-primary-light);
}

.mhsb-navbar-ctas {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.mhsb-navbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--mh-radius-sm);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: var(--mh-transition);
    white-space: nowrap;
}

.mhsb-navbar-cta-primary {
    background: var(--mh-primary);
    color: #fff;
}

.mhsb-navbar-cta-primary:hover {
    background: var(--mh-primary-dark);
}

.mhsb-navbar-cta-accent {
    background: transparent;
    color: var(--mh-accent);
    border: 2px solid var(--mh-accent);
}

.mhsb-navbar-cta-accent:hover {
    background: var(--mh-accent);
    color: #fff;
}

.mhsb-navbar-burger {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.mhsb-navbar-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--mh-neutral-900);
    transition: var(--mh-transition);
}

/* Mobile menu */
@media (max-width: 1024px) {
    .mhsb-navbar-menu {
        display: none;
    }
    .mhsb-navbar-ctas .mhsb-navbar-cta-accent {
        display: none;
    }
    .mhsb-navbar-burger {
        display: flex;
    }
    body.mhsb-menu-open .mhsb-navbar-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--mh-neutral-200);
        box-shadow: var(--mh-shadow-md);
        padding: 16px;
    }
    body.mhsb-menu-open .mhsb-navbar-menu ul {
        flex-direction: column;
    }
    body.mhsb-menu-open .mhsb-navbar-menu a {
        display: block;
    }
}

/* ============================================================================

.mhsb-hero,
.mhsb-intro,
.mhsb-stats,
.mhsb-why-us,
.mhsb-services-grid,
.mhsb-process,
.mhsb-before-after,
.mhsb-client-types,
.mhsb-testimonials,
.mhsb-depts,
.mhsb-services-comp,
.mhsb-faq,
.mhsb-pricing,
.mhsb-cta-block,
.mhsb-content-html,
.mhsb-generic {
    font-family: var(--mh-font);
    color: var(--mh-neutral-900);
    padding: 64px 20px;
    max-width: var(--mh-container);
    margin: 0 auto;
    line-height: 1.6;
}

.mhsb-hero h1,
.mhsb-hero h2,
.mhsb-hero h3,
section[class^="mhsb-"] h1,
section[class^="mhsb-"] h2,
section[class^="mhsb-"] h3 {
    line-height: 1.2;
    margin: 0 0 16px 0;
    font-weight: 700;
}

/* v0.5.4 — couleur bleue uniquement hors sections à fond sombre */
section[class^="mhsb-"]:not(.mhsb-stats):not(.mhsb-cta-block) h1,
section[class^="mhsb-"]:not(.mhsb-stats):not(.mhsb-cta-block) h2,
section[class^="mhsb-"]:not(.mhsb-stats):not(.mhsb-cta-block) h3 {
    color: var(--mh-primary);
}

section[class^="mhsb-"] h2 {
    font-size: 32px;
}

section[class^="mhsb-"] h3 {
    font-size: 20px;
    font-weight: 600;
}

.mhsb-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.mhsb-subtitle {
    color: var(--mh-neutral-600);
    font-size: 17px;
    margin: 8px 0 0 0;
}

/* ============================================================================
   HERO
   ============================================================================ */

.mhsb-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 80px 20px;
}

.mhsb-hero h1 {
    font-size: 44px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.mhsb-hero-lead {
    font-size: 18px;
    color: var(--mh-neutral-600);
    margin: 20px 0 28px;
}

.mhsb-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.mhsb-badge-trust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--mh-primary-light);
    color: var(--mh-primary-dark);
    font-size: 13px;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid rgba(30, 64, 175, 0.12);
}

.mhsb-badge-trust svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.mhsb-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mhsb-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--mh-radius-sm);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: var(--mh-transition);
    box-shadow: var(--mh-shadow-sm);
}

.mhsb-cta svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mhsb-cta-primary {
    background: var(--mh-primary);
    color: #fff;
}

.mhsb-cta-primary:hover {
    background: var(--mh-primary-dark);
    box-shadow: var(--mh-shadow-lg);
    transform: translateY(-1px);
}

.mhsb-cta-accent {
    background: var(--mh-accent);
    color: #fff;
}

.mhsb-cta-accent:hover {
    background: var(--mh-accent-dark);
    box-shadow: 0 12px 24px -8px rgba(190,18,60,.25);
    transform: translateY(-1px);
}

.mhsb-hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--mh-radius-lg);
    box-shadow: var(--mh-shadow-lg);
}

/* ============================================================================
   STATS
   ============================================================================ */

.mhsb-stats {
    background: linear-gradient(135deg, var(--mh-primary) 0%, var(--mh-primary-dark) 100%);
    color: #fff;
    max-width: none;
    border-radius: 0;
    padding: 60px 20px;
}

/* v0.5.2 — spécificité maximale contre thème (GeneratePress override) */
.mhsb-stats.mhsb-stats h2,
.mhsb-stats.mhsb-stats h3,
.mhsb-stats.mhsb-stats p,
.mhsb-stats.mhsb-stats .mhsb-stat-value,
.mhsb-stats.mhsb-stats .mhsb-stat-label,
body .mhsb-stats h2,
body .mhsb-stats .mhsb-stat-value,
body .mhsb-stats .mhsb-stat-label {
    color: #ffffff !important;
}

.mhsb-stats h2 {
    text-align: center;
    margin-bottom: 40px;
}

.mhsb-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: var(--mh-container);
    margin: 0 auto;
}

.mhsb-stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mhsb-stat-value {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.mhsb-stat-label {
    font-size: 14px;
    color: rgba(255,255,255,.85);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ============================================================================
   CARDS GRIDS
   ============================================================================ */

.mhsb-cards-grid {
    display: grid;
    gap: 24px;
}

.mhsb-cards-3 { grid-template-columns: repeat(3, 1fr); }
.mhsb-cards-4 { grid-template-columns: repeat(4, 1fr); }

.mhsb-card-reason,
.mhsb-card-service,
.mhsb-card-client,
.mhsb-card-dept,
.mhsb-card-sc {
    background: #fff;
    border: 1px solid var(--mh-neutral-200);
    border-radius: var(--mh-radius);
    overflow: hidden;
    transition: var(--mh-transition);
    text-decoration: none;
    color: var(--mh-neutral-900);
    display: flex;
    flex-direction: column;
}

.mhsb-card-service:hover,
.mhsb-card-client:hover,
.mhsb-card-dept:hover,
.mhsb-card-sc:hover {
    border-color: var(--mh-primary);
    box-shadow: var(--mh-shadow-md);
    transform: translateY(-2px);
}

.mhsb-card-reason {
    padding: 32px 28px;
}

.mhsb-card-reason .mhsb-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mh-primary-light);
    color: var(--mh-primary);
    border-radius: var(--mh-radius-sm);
    margin-bottom: 20px;
}

.mhsb-card-reason .mhsb-card-icon svg {
    width: 28px;
    height: 28px;
}

.mhsb-card-reason p {
    color: var(--mh-neutral-600);
    margin: 8px 0 0 0;
}

.mhsb-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--mh-neutral-100);
}

.mhsb-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.mhsb-card-service:hover .mhsb-card-image img,
.mhsb-card-client:hover .mhsb-card-image img,
.mhsb-card-dept:hover .mhsb-card-image img {
    transform: scale(1.05);
}

.mhsb-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mhsb-card-body h3 {
    margin-bottom: 8px;
}

.mhsb-card-body p {
    color: var(--mh-neutral-600);
    margin: 0 0 16px 0;
    flex: 1;
    font-size: 15px;
}

.mhsb-card-price {
    display: inline-block;
    padding: 4px 12px;
    background: var(--mh-primary-light);
    color: var(--mh-primary-dark);
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    align-self: flex-start;
}

.mhsb-card-freq {
    color: var(--mh-accent);
    font-size: 13px;
    font-weight: 600;
    margin: 8px 0 0 0;
}

.mhsb-card-dept {
    text-align: center;
}

.mhsb-card-dept h3 {
    padding: 16px;
    font-size: 16px;
    margin: 0;
}

.mhsb-card-sc {
    padding: 28px 24px;
    text-align: left;
}

.mhsb-card-sc .mhsb-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mh-primary) 0%, var(--mh-accent) 100%);
    color: #fff;
    border-radius: var(--mh-radius-sm);
    margin-bottom: 16px;
}

.mhsb-card-sc .mhsb-card-icon svg {
    width: 24px;
    height: 24px;
}

.mhsb-card-sc h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
    margin-bottom: 8px;
}

.mhsb-external-indicator {
    display: inline-flex;
    color: var(--mh-neutral-400);
}

.mhsb-external-indicator svg {
    width: 14px;
    height: 14px;
}

.mhsb-card-sc p {
    color: var(--mh-neutral-600);
    font-size: 14px;
    margin: 0;
}

/* ============================================================================
   PROCESS STEPS
   ============================================================================ */

.mhsb-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: mhsb-step;
}

.mhsb-step {
    background: #fff;
    border: 1px solid var(--mh-neutral-200);
    border-radius: var(--mh-radius);
    padding: 28px 24px;
    position: relative;
    transition: var(--mh-transition);
}

.mhsb-step:hover {
    border-color: var(--mh-primary);
    box-shadow: var(--mh-shadow-md);
}

.mhsb-step-number {
    position: absolute;
    top: -16px;
    left: 24px;
    width: 36px;
    height: 36px;
    background: var(--mh-accent);
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(190,18,60,.25);
}

.mhsb-step-icon {
    width: 48px;
    height: 48px;
    background: var(--mh-primary-light);
    color: var(--mh-primary);
    border-radius: var(--mh-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 16px;
}

.mhsb-step-icon svg {
    width: 24px;
    height: 24px;
}

.mhsb-step h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.mhsb-step p {
    color: var(--mh-neutral-600);
    font-size: 14px;
    margin: 0;
}

/* ============================================================================
   BEFORE / AFTER
   ============================================================================ */

.mhsb-ba-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mhsb-ba {
    background: #fff;
    border: 1px solid var(--mh-neutral-200);
    border-radius: var(--mh-radius);
    overflow: hidden;
    margin: 0;
}

.mhsb-ba-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--mh-neutral-200);
}

.mhsb-ba-before,
.mhsb-ba-after {
    position: relative;
    background: var(--mh-neutral-100);
    aspect-ratio: 1;
}

.mhsb-ba-before img,
.mhsb-ba-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mhsb-ba-label {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(17,24,39,.85);
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mhsb-ba-after .mhsb-ba-label {
    background: var(--mh-success);
}

.mhsb-ba figcaption {
    padding: 16px 20px;
    text-align: center;
    font-weight: 600;
    color: var(--mh-neutral-700);
}

/* ============================================================================
   FAQ
   ============================================================================ */

.mhsb-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mhsb-faq-item {
    background: #fff;
    border: 1px solid var(--mh-neutral-200);
    border-radius: var(--mh-radius-sm);
    overflow: hidden;
    transition: var(--mh-transition);
}

.mhsb-faq-item[open] {
    border-color: var(--mh-primary);
    box-shadow: var(--mh-shadow-sm);
}

.mhsb-faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    position: relative;
    padding-right: 56px;
    color: var(--mh-neutral-900);
    list-style: none;
}

.mhsb-faq-item summary::-webkit-details-marker {
    display: none;
}

.mhsb-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--mh-primary-light);
    color: var(--mh-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    transition: var(--mh-transition);
}

.mhsb-faq-item[open] summary::after {
    content: "−";
    background: var(--mh-primary);
    color: #fff;
}

.mhsb-faq-answer {
    padding: 0 24px 20px;
    color: var(--mh-neutral-700);
    line-height: 1.7;
}

.mhsb-faq-answer p {
    margin: 0;
}

/* ============================================================================
   PRICING TABLE
   ============================================================================ */

.mhsb-pricing-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--mh-neutral-200);
    border-radius: var(--mh-radius);
}

.mhsb-pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.mhsb-pricing-table thead th {
    background: var(--mh-primary-light);
    color: var(--mh-primary-dark);
    padding: 14px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mhsb-pricing-table tbody tr {
    border-top: 1px solid var(--mh-neutral-200);
}

.mhsb-pricing-table tbody tr:hover {
    background: var(--mh-neutral-50);
}

.mhsb-pricing-table td {
    padding: 16px 20px;
}

.mhsb-pt-price {
    font-weight: 700;
    color: var(--mh-primary);
    white-space: nowrap;
}

.mhsb-pt-note {
    color: var(--mh-neutral-600);
    font-size: 13px;
}

/* ============================================================================
   CTA BLOCK
   ============================================================================ */

.mhsb-cta-block {
    background: linear-gradient(135deg, var(--mh-primary) 0%, var(--mh-accent) 150%);
    color: #fff;
    max-width: none;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mhsb-cta-block::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 70%);
    pointer-events: none;
}

.mhsb-cta-inner {
    max-width: var(--mh-container);
    margin: 0 auto;
    position: relative;
}

/* v0.5.2 — spécificité maximale contre thème */
.mhsb-cta-block.mhsb-cta-block h2,
.mhsb-cta-block.mhsb-cta-block h3,
.mhsb-cta-block .mhsb-cta-inner h2,
.mhsb-cta-block .mhsb-cta-inner h3,
body .mhsb-cta-block h2,
body .mhsb-cta-block h3 {
    color: #ffffff !important;
}

.mhsb-cta-block.mhsb-cta-block p,
.mhsb-cta-block .mhsb-cta-inner p,
body .mhsb-cta-block p {
    color: rgba(255, 255, 255, 0.92) !important;
}

.mhsb-cta-block h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.mhsb-cta-block p {
    font-size: 18px;
    margin-bottom: 32px;
}

.mhsb-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.mhsb-cta-block .mhsb-cta-primary {
    background: #fff;
    color: var(--mh-primary);
}

.mhsb-cta-block .mhsb-cta-primary:hover {
    background: var(--mh-neutral-50);
}

.mhsb-cta-block .mhsb-cta-accent {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.3);
}

.mhsb-cta-block .mhsb-cta-accent:hover {
    background: rgba(255,255,255,.15);
    border-color: #fff;
}

/* ============================================================================
   INTRO / PROSE
   ============================================================================ */

.mhsb-intro {
    text-align: center;
}

.mhsb-intro h2 {
    margin-bottom: 24px;
}

.mhsb-prose {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.mhsb-prose p {
    margin: 0 0 16px 0;
    color: var(--mh-neutral-700);
    font-size: 16.5px;
    line-height: 1.7;
}

/* ============================================================================
   TESTIMONIALS GRW WRAPPER
   ============================================================================ */

.mhsb-testimonials {
    background: var(--mh-neutral-50);
    max-width: none;
}

.mhsb-grw-wrapper {
    max-width: var(--mh-container);
    margin: 0 auto;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.mhsb-footer {
    background: var(--mh-neutral-900);
    color: #fff;
    font-family: var(--mh-font);
    padding: 60px 20px 20px;
    margin-top: 80px;
}

.mhsb-footer-inner {
    max-width: var(--mh-container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.mhsb-footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.mhsb-footer h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mh-accent);
    margin: 0 0 16px 0;
}

.mhsb-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mhsb-footer a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: 14px;
    transition: var(--mh-transition);
}

.mhsb-footer a:hover {
    color: #fff;
}

.mhsb-footer p {
    margin: 0 0 10px 0;
    color: rgba(255,255,255,.75);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mhsb-footer p svg {
    flex-shrink: 0;
    color: var(--mh-accent);
}

.mhsb-footer-bottom {
    max-width: var(--mh-container);
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.mhsb-footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    margin: 0;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 992px) {
    .mhsb-cards-3,
    .mhsb-cards-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .mhsb-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mhsb-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mhsb-footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    section[class^="mhsb-"] {
        padding: 48px 16px;
    }
    .mhsb-hero {
        grid-template-columns: 1fr;
        padding: 40px 16px;
    }
    .mhsb-hero h1 {
        font-size: 32px;
    }
    .mhsb-cards-3,
    .mhsb-cards-4,
    .mhsb-steps-grid,
    .mhsb-stats-grid,
    .mhsb-ba-grid {
        grid-template-columns: 1fr;
    }
    section[class^="mhsb-"] h2 {
        font-size: 26px;
    }
    .mhsb-cta-block h2 {
        font-size: 28px;
    }
    .mhsb-footer-inner {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   v0.6.3 — Inline CTA + Villes Grid (neighbors_grid, villes_grid, cities_grid)
   ========================================================================== */

/* Inline CTA block */
.mhsb-inline-cta-block {
    margin: 32px 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15,23,42,0.08);
}
.mhsb-inline-cta-block--devis {
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
    color: #fff;
}
.mhsb-inline-cta-block--urgent {
    background: #FEF3F2;
    border-left: 5px solid #BE123C;
}
.mhsb-inline-cta-inner {
    padding: 22px 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.mhsb-inline-cta-text {
    flex: 1 1 280px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mhsb-inline-cta-text strong {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
}
.mhsb-inline-cta-block--urgent .mhsb-inline-cta-text strong { color: #991B1B; }
.mhsb-inline-cta-block--devis  .mhsb-inline-cta-text strong { color: #fff; }
.mhsb-inline-cta-text span {
    font-size: 0.95rem;
    line-height: 1.5;
}
.mhsb-inline-cta-block--urgent .mhsb-inline-cta-text span { color: #4B5563; }
.mhsb-inline-cta-block--devis  .mhsb-inline-cta-text span { color: rgba(255,255,255,0.92); }
.mhsb-inline-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.mhsb-ict-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.96rem;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    line-height: 1;
}
.mhsb-ict-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15,23,42,0.15);
}
.mhsb-ict-btn svg { width: 18px; height: 18px; }
/* Variant DEVIS (fond bleu) */
.mhsb-inline-cta-block--devis .mhsb-ict-btn--primary {
    background: #fff;
    color: #1E40AF;
}
.mhsb-inline-cta-block--devis .mhsb-ict-btn--secondary {
    background: rgba(255,255,255,0.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}
/* Variant URGENT (fond rouge clair) */
.mhsb-inline-cta-block--urgent .mhsb-ict-btn--primary {
    background: #BE123C;
    color: #fff;
}
.mhsb-inline-cta-block--urgent .mhsb-ict-btn--secondary {
    background: #25D366;
    color: #fff;
}
@media (max-width: 640px) {
    .mhsb-inline-cta-inner { padding: 20px; flex-direction: column; align-items: stretch; }
    .mhsb-inline-cta-buttons { width: 100%; }
    .mhsb-ict-btn { flex: 1 1 auto; justify-content: center; }
}

/* Grille de villes (neighbors_grid, villes_grid, cities_grid) */
.mhsb-villes-grid {
    padding: 48px 0;
    margin: 24px 0;
}
.mhsb-villes-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 22px;
}
.mhsb-villecard {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    text-decoration: none !important;
    color: #0F172A;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    position: relative;
}
.mhsb-villecard:hover {
    border-color: #1E40AF;
    box-shadow: 0 4px 14px rgba(30,64,175,0.12);
    transform: translateY(-2px);
}
.mhsb-villecard-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #EFF6FF;
    color: #1E40AF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mhsb-villecard-icon svg { width: 18px; height: 18px; }
.mhsb-villecard-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mhsb-villecard-name {
    font-weight: 600;
    font-size: 0.98rem;
    color: #0F172A;
    line-height: 1.3;
}
.mhsb-villecard-sub {
    font-size: 0.82rem;
    color: #64748B;
    line-height: 1.35;
}
.mhsb-villecard-arrow {
    flex-shrink: 0;
    color: #94A3B8;
    font-size: 1.2rem;
    transition: color 0.15s ease, transform 0.15s ease;
}
.mhsb-villecard:hover .mhsb-villecard-arrow {
    color: #1E40AF;
    transform: translateX(3px);
}

/* Variant villes_grid (pages département) : 3 col sur desktop */
.mhsb-villes-grid--villes .mhsb-villes-grid-inner {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ==========================================================================
   v0.6.3.1 — Hotfixes spécificité (process_steps stack, simulator icon)
   ========================================================================== */

/* Renforcer la spécificité pour battre GeneratePress/LWS Optimize merge */
section.mhsb-process .mhsb-steps-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px;
}
@media (max-width: 992px) {
    section.mhsb-process .mhsb-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 640px) {
    section.mhsb-process .mhsb-steps-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Simulator eyebrow : icône SVG propre (remplace l'emoji 📊) */
.mhsb-sim-eyebrow {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1E40AF;
    background: #EFF6FF;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 14px;
}
.mhsb-sim-eyebrow-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    color: #1E40AF;
}
.mhsb-sim-eyebrow-icon svg {
    width: 16px !important;
    height: 16px !important;
    display: block;
}

/* Même logique défensive sur les autres grilles critiques */
section.mhsb-services-grid .mhsb-services-grid-inner,
section.mhsb-why-us .mhsb-why-grid,
section.mhsb-client-types .mhsb-cards-grid,
section.mhsb-services-comp .mhsb-cards-grid {
    display: grid !important;
}

/* ==========================================================================
   v0.6.3.1 — Key Facts Grid (mhsb-kf-grid)
   Fusion de 2-3 content_html consécutifs avec [mh_animation] en grille.
   ========================================================================== */

.mhsb-kf-grid {
    display: grid !important;
    gap: 20px;
    margin: 32px 0;
}
.mhsb-kf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mhsb-kf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mhsb-kf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.mhsb-kf-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.mhsb-kf-item:hover {
    border-color: #1E40AF;
    box-shadow: 0 4px 14px rgba(30,64,175,0.10);
    transform: translateY(-1px);
}
.mhsb-kf-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 2px 6px rgba(15,23,42,0.06);
}
.mhsb-kf-icon > * { max-width: 100% !important; max-height: 100% !important; }
.mhsb-kf-icon img,
.mhsb-kf-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.mhsb-kf-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mhsb-kf-body strong {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
}
.mhsb-kf-body p {
    margin: 0 !important;
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.55;
}

@media (max-width: 992px) {
    .mhsb-kf-grid--3,
    .mhsb-kf-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .mhsb-kf-grid--2,
    .mhsb-kf-grid--3,
    .mhsb-kf-grid--4 { grid-template-columns: 1fr; }
    .mhsb-kf-item { padding: 16px; }
    .mhsb-kf-icon { width: 60px; height: 60px; }
}

/* ==========================================================================
   v0.6.3.2 — Process Steps redesign (4-cols stable, connectors, icons)
   Le renderer émet déjà des inline styles pour le grid principal, ce
   complément ajoute les interactions et protège le responsive.
   ========================================================================== */

/* Icônes SVG dans process steps : taille forcée */
section.mhsb-process .mhsb-step-icon svg {
    width: 28px !important;
    height: 28px !important;
    display: block;
}

/* Hover sur la carte étape */
section.mhsb-process .mhsb-step:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(30,64,175,0.12) !important;
    border-color: #1E40AF !important;
}
section.mhsb-process .mhsb-step:hover .mhsb-step-icon {
    background: #1E40AF !important;
    color: #fff !important;
}
section.mhsb-process .mhsb-step-icon {
    transition: background 0.2s ease, color 0.2s ease;
}

/* Responsive : le grid inline doit aussi se comporter en mobile */
@media (max-width: 992px) {
    section.mhsb-process .mhsb-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    section.mhsb-process .mhsb-step-connector {
        display: none !important;
    }
}
@media (max-width: 640px) {
    section.mhsb-process .mhsb-steps-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   v0.6.3.3 — mhsb-anim-steps : grid responsive pour les blocs "ÉTAPE 1/2/3/4"
   CSS externe = survit à wp_kses qui peut stripper display:grid des inline styles.
   ========================================================================== */

.mhsb-anim-steps {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    gap: 12px !important;
    margin: 32px 0 !important;
    padding: 16px !important;
    background: #F9FAFB !important;
    border-radius: 12px !important;
}
.mhsb-anim-step-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    padding: 16px !important;
    background: #fff !important;
    border-radius: 8px !important;
    border: 1px solid #E2E8F0 !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
    min-height: 180px !important;
}
.mhsb-anim-step-item:hover {
    border-color: #1E40AF !important;
    box-shadow: 0 4px 14px rgba(30,64,175,0.10) !important;
    transform: translateY(-2px) !important;
}
.mhsb-anim-step-item > div:first-child {
    font-size: 11px !important;
    color: #1E40AF !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    margin-bottom: 10px !important;
}
.mhsb-anim-step-item > div:nth-child(2) {
    margin: 8px 0 12px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 80px !important;
}
.mhsb-anim-step-item > div:last-child {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #0F172A !important;
    line-height: 1.3 !important;
}
.mhsb-anim-step-item > div:nth-child(2) svg,
.mhsb-anim-step-item > div:nth-child(2) img {
    max-width: 80px !important;
    height: auto !important;
}

@media (max-width: 640px) {
    .mhsb-anim-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 420px) {
    .mhsb-anim-steps {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   v0.6.3.4 — Titres stylisés (heroe gradient, h2 underline, h3 renforcé)
   ========================================================================== */

/* HERO H1 — gradient tri-couleur (noir → bleu → rouge), typographie imposante */
body.mhsb-body .mhsb-hero h1 {
    font-size: clamp(36px, 5vw, 54px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.05 !important;
    background: linear-gradient(135deg, #0F172A 0%, #1E40AF 55%, #BE123C 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;  /* fallback navigateurs anciens */
    margin-bottom: 20px !important;
    text-wrap: balance;
}

/* H2 sections (sauf stats, cta_block qui sont sur fond coloré) — poids + letter-spacing */
body.mhsb-body section[class^="mhsb-"]:not(.mhsb-stats):not(.mhsb-cta-block):not(.mhsb-hero) h2 {
    font-size: clamp(28px, 3.2vw, 38px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: #0F172A !important;
    line-height: 1.15 !important;
    margin-bottom: 10px !important;
    text-wrap: balance;
}

/* Underline décoratif sous les h2 du section-header (ceux centrés) */
body.mhsb-body .mhsb-section-header h2 {
    position: relative !important;
    padding-bottom: 18px !important;
}
body.mhsb-body .mhsb-section-header h2::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 72px !important;
    height: 4px !important;
    background: linear-gradient(90deg, #1E40AF 0%, #BE123C 100%) !important;
    border-radius: 999px !important;
}

/* Eyebrow : styliser .mhsb-subtitle placé après un h2 comme texte de support */
body.mhsb-body .mhsb-section-header .mhsb-subtitle {
    font-size: 16px !important;
    line-height: 1.55 !important;
    color: #475569 !important;
    max-width: 640px !important;
    margin: 18px auto 0 !important;
}

/* H2 dans cta_block & stats : gardent le blanc mais avec typographie enrichie */
body.mhsb-body .mhsb-cta-block h2,
body.mhsb-body .mhsb-stats h2 {
    font-size: clamp(28px, 3.5vw, 42px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.1 !important;
    text-wrap: balance;
}

/* H3 — renforcement */
body.mhsb-body section[class^="mhsb-"] h3 {
    font-size: clamp(17px, 1.6vw, 20px) !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    letter-spacing: -0.01em !important;
    line-height: 1.3 !important;
}

/* Cards — h3 de carte avec accent bleu subtil au hover */
body.mhsb-body .mhsb-card-reason:hover h3,
body.mhsb-body .mhsb-card-service:hover h3,
body.mhsb-body .mhsb-card-sc:hover h3,
body.mhsb-body .mhsb-villecard:hover .mhsb-villecard-name {
    color: #1E40AF !important;
    transition: color 0.2s ease !important;
}

/* Intro h2 (section "Une installation sur mesure") — style éditorial */
body.mhsb-body .mhsb-intro h2 {
    font-size: clamp(26px, 3vw, 34px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: #0F172A !important;
    max-width: 760px !important;
    margin: 0 auto 20px !important;
    line-height: 1.2 !important;
    text-wrap: balance !important;
    text-align: center !important;
}
body.mhsb-body .mhsb-intro h2::after {
    content: "" !important;
    display: block !important;
    width: 56px !important;
    height: 3px !important;
    background: linear-gradient(90deg, #1E40AF 0%, #BE123C 100%) !important;
    margin: 16px auto 0 !important;
    border-radius: 999px !important;
}

/* FAQ summary : renforcer typo des questions */
body.mhsb-body .mhsb-faq-item summary {
    font-weight: 700 !important;
    color: #0F172A !important;
    letter-spacing: -0.005em !important;
}

/* Pricing table thead */
body.mhsb-body .mhsb-pricing-table thead th {
    font-size: 13px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #64748B !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #1E40AF !important;
}

/* ==========================================================================
   v0.6.3.5 — Fix SVG invisibles dans mhsb-anim-step-item
   Le display:flex précédent cassait le rendu du <span> shortcode qui a
   line-height:0. On repart sur text-align:center + ciblage précis du SVG.
   ========================================================================== */

/* Reset : pas de flex sur l'icon holder, text-align suffit */
body.mhsb-body .mhsb-anim-step-item > div:nth-child(2) {
    display: block !important;
    margin: 10px auto 14px !important;
    text-align: center !important;
    line-height: 0 !important;          /* évite espace fantôme du span */
    min-height: 80px !important;
    padding: 4px 0 !important;
}

/* Span généré par [mh_animation] : garantir inline-block centré */
body.mhsb-body .mhsb-anim-step-item > div:nth-child(2) > span,
body.mhsb-body .mhsb-anim-step-item > div:nth-child(2) > .mh-anim-wrap {
    display: inline-block !important;
    max-width: 80px !important;
    width: 100% !important;
    line-height: 0 !important;
}

/* Le SVG à l'intérieur doit être block et respecter la largeur du span */
body.mhsb-body .mhsb-anim-step-item > div:nth-child(2) svg {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 80px !important;
    margin: 0 auto !important;
}

/* Badge "ÉTAPE N" : conserver espacement correct */
body.mhsb-body .mhsb-anim-step-item > div:first-child {
    line-height: 1.2 !important;
}

/* Libellé (Diagnostic, Préparation…) */
body.mhsb-body .mhsb-anim-step-item > div:last-child {
    line-height: 1.3 !important;
}

/* ==========================================================================
   v0.6.4 — Contact Form WhatsApp (auto-injecté avant cta_block)
   ========================================================================== */

.mhsb-contact-form-whatsapp {
    margin: 60px 0 !important;
    padding: 0 !important;
    background: transparent;
}

.mhsb-contact-form-whatsapp .mhsb-cf-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 36px 32px 32px;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    border: 1px solid #DBEAFE;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

/* Ornement discret en coin */
.mhsb-contact-form-whatsapp .mhsb-cf-inner::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.mhsb-contact-form-whatsapp .mhsb-cf-header {
    text-align: center;
    margin-bottom: 28px;
    position: relative;
}

.mhsb-contact-form-whatsapp .mhsb-cf-header-icon {
    display: inline-flex;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
}

.mhsb-contact-form-whatsapp .mhsb-cf-header h2 {
    font-size: clamp(22px, 2.5vw, 28px) !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    margin: 0 0 10px !important;
    letter-spacing: -0.015em !important;
    line-height: 1.2 !important;
    text-wrap: balance;
}

.mhsb-contact-form-whatsapp .mhsb-cf-header h2::after {
    display: none !important;  /* override underline deco */
}

.mhsb-contact-form-whatsapp .mhsb-cf-subtitle {
    font-size: 15px !important;
    color: #475569 !important;
    margin: 0 auto !important;
    max-width: 520px;
    line-height: 1.5 !important;
}

/* Badges contexte (ville, service, type étab) */
.mhsb-contact-form-whatsapp .mhsb-cf-context-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}
.mhsb-contact-form-whatsapp .mhsb-cf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #DBEAFE;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #1E3A8A;
    line-height: 1;
}
.mhsb-contact-form-whatsapp .mhsb-cf-badge svg {
    color: #1E40AF;
    flex-shrink: 0;
}

/* Grid du formulaire */
.mhsb-contact-form-whatsapp .mhsb-cf-form {
    margin: 0;
}
.mhsb-contact-form-whatsapp .mhsb-cf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.mhsb-contact-form-whatsapp .mhsb-cf-field-full {
    grid-column: 1 / -1;
}
@media (max-width: 600px) {
    .mhsb-contact-form-whatsapp .mhsb-cf-grid {
        grid-template-columns: 1fr;
    }
    .mhsb-contact-form-whatsapp .mhsb-cf-inner {
        padding: 28px 20px 24px;
    }
}

/* Champ */
.mhsb-contact-form-whatsapp .mhsb-cf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}
.mhsb-contact-form-whatsapp .mhsb-cf-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}
.mhsb-contact-form-whatsapp .mhsb-cf-label em {
    color: #BE123C;
    font-style: normal;
    font-weight: 700;
}
.mhsb-contact-form-whatsapp .mhsb-cf-field input,
.mhsb-contact-form-whatsapp .mhsb-cf-field select,
.mhsb-contact-form-whatsapp .mhsb-cf-field textarea {
    width: 100%;
    padding: 11px 14px;
    font: inherit;
    font-size: 15px;
    color: #0F172A;
    background: white;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}
.mhsb-contact-form-whatsapp .mhsb-cf-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}
.mhsb-contact-form-whatsapp .mhsb-cf-field textarea {
    resize: vertical;
    min-height: 84px;
    font-family: inherit;
}
.mhsb-contact-form-whatsapp .mhsb-cf-field input:focus,
.mhsb-contact-form-whatsapp .mhsb-cf-field select:focus,
.mhsb-contact-form-whatsapp .mhsb-cf-field textarea:focus {
    outline: none;
    border-color: #1E40AF;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}
.mhsb-contact-form-whatsapp .mhsb-cf-field input:invalid:not(:placeholder-shown) {
    border-color: #BE123C;
}

/* Submit */
.mhsb-contact-form-whatsapp .mhsb-cf-submit-row {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.mhsb-contact-form-whatsapp .mhsb-cf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.30);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    min-width: 280px;
}
.mhsb-contact-form-whatsapp .mhsb-cf-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.40);
    filter: brightness(1.05);
}
.mhsb-contact-form-whatsapp .mhsb-cf-submit:active {
    transform: translateY(0);
}
.mhsb-contact-form-whatsapp .mhsb-cf-submit-sending {
    animation: mhsbCfPulse 0.8s ease-in-out infinite;
    pointer-events: none;
}
.mhsb-contact-form-whatsapp .mhsb-cf-submit-sent {
    background: linear-gradient(135deg, #16A34A 0%, #15803D 100%) !important;
    animation: none !important;
    pointer-events: none;
}
@keyframes mhsbCfPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

.mhsb-contact-form-whatsapp .mhsb-cf-phone-fallback {
    font-size: 13px;
    color: #64748B;
}
.mhsb-contact-form-whatsapp .mhsb-cf-phone-fallback a {
    color: #1E40AF;
    font-weight: 600;
    text-decoration: none;
}
.mhsb-contact-form-whatsapp .mhsb-cf-phone-fallback a:hover {
    text-decoration: underline;
}

.mhsb-contact-form-whatsapp .mhsb-cf-privacy {
    text-align: center;
    font-size: 11.5px;
    color: #94A3B8;
    margin: 16px 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    line-height: 1.5;
}
.mhsb-contact-form-whatsapp .mhsb-cf-privacy svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* Mode compact (si appelé avec compact=1) */
.mhsb-contact-form-whatsapp.mhsb-cf-compact .mhsb-cf-inner {
    padding: 24px 20px 20px;
}
.mhsb-contact-form-whatsapp.mhsb-cf-compact .mhsb-cf-header {
    margin-bottom: 20px;
}
.mhsb-contact-form-whatsapp.mhsb-cf-compact .mhsb-cf-header h2 {
    font-size: 20px !important;
}

/* MH Killer 29/10/2026 : bandeau cookies (#mh-consent) sur mobile, pose AU-DESSUS de la barre fixe
   « Appeler / WhatsApp » (.mhsb-sticky-cta) au lieu de la recouvrir, et plus compact. */
@media (max-width: 768px) {
    #mh-consent {
        bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
        left: 8px !important;
        right: 8px !important;
        padding: 10px 12px !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
    #mh-consent p { margin: 0 0 8px !important; }
    #mh-consent .mh-consent-btns button { min-height: 40px !important; padding: 8px 10px !important; font-size: 14px !important; }
    #mh-consent-reopen.mh-float { bottom: 84px !important; }
}

/* === Conversion mobile (13/11/2026, Claude) : actions visibles dès le 1er écran ===
   - boutons « Demander un devis » / « Appeler » remontés juste sous le titre (mobile)
   - barre Appeler / WhatsApp visible dès l'arrivée (avant : après 200 px de défilement)
   - bandeau cookies compact (161 px → ~100 px) et en HAUT de l'écran : il ne cache plus les boutons
   - bouton WhatsApp de l'en-tête masqué sur mobile (il coupait « Devis gratuit » ; WhatsApp reste dans la barre du bas)
   - /devis/ (page 1033) : le formulaire passe juste sous le titre (avant : 3 770 px plus bas)
   ⚠️ Si MH Site Builder régénère ce fichier, remettre ce bloc (copie : projet « BOT GOOGLE ADS »). */
@media (max-width:768px){
  body.mhsb-body .mhsb-hero-content{display:flex;flex-direction:column}
  body.mhsb-body .mhsb-hero-content>h1{order:0}
  body.mhsb-body .mhsb-hero-content>.mhsb-hero-ctas{order:1;margin:14px 0 10px}
  body.mhsb-body .mhsb-hero-content>.mhsb-hero-lead{order:2}
  body.mhsb-body .mhsb-hero-content>.mhsb-hero-badges{order:3}
  body.mhsb-body .mhsb-sticky-cta{transform:translateY(0)!important}
  body.mhsb-body{padding-bottom:64px!important}
  body.mhsb-body .mhsb-navbar-ctas .mhsb-navbar-cta-accent{display:none!important}
  body.mhsb-body .mhsb-navbar-ctas .mhsb-navbar-cta-primary{white-space:nowrap}
  #mh-consent{display:flex!important;align-items:center;gap:10px;padding:8px 10px!important;
    top:calc(8px + env(safe-area-inset-top,0px))!important;bottom:auto!important}
  #mh-consent p{margin:0!important;font-size:11.5px!important;line-height:1.3!important;flex:1}
  #mh-consent .mh-consent-btns{display:flex;flex-direction:column;gap:6px;margin:0!important;flex:0 0 auto}
  #mh-consent .mh-consent-btns button{min-height:34px!important;padding:6px 12px!important;font-size:13px!important;min-width:84px}
}
body.page-id-1033 #mhsb-main{display:flex;flex-direction:column}
body.page-id-1033 #mhsb-main>*{order:2}
body.page-id-1033 #mhsb-main>.mhsb-hero{order:0}
body.page-id-1033 #mhsb-main>.mhsb-contact-form-whatsapp{order:1}

/* === Page dédiée aux annonces /devis-hotte-pro/ (page 2738, 13/11/2026) ===
   Ordre : titre + boutons → formulaire → intervention / étapes → FAQ → bloc appel. Liens « pages liées » masqués. */
body.page-id-2738 #mhsb-main{display:flex;flex-direction:column}
body.page-id-2738 #mhsb-main>*{order:6}
body.page-id-2738 #mhsb-main>.mhsb-hero{order:0}
body.page-id-2738 #mhsb-main>.mh-lp-ancre{order:1;scroll-margin-top:80px}
body.page-id-2738 #mhsb-main>.mhsb-contact-form-whatsapp{order:2}
body.page-id-2738 #mhsb-main>.mhsb-content-html{order:3}
body.page-id-2738 #mhsb-main>.mhsb-faq{order:4}
body.page-id-2738 #mhsb-main>.mhsb-cta-block{order:5}
body.page-id-2738 #mhsb-main>.mhsb-related{display:none!important}
body.page-id-2738 .mhsb-content-html .mhsb-prose{max-width:760px;margin:0 auto;padding:8px 20px 24px}
@media (max-width:768px){body.page-id-2738 .mhsb-hero-image{display:none!important}}

/* === Bandeau cookies + barre du haut, mobile (13/11/2026 06h45, Claude) ===
   - CORRECTIF : le bandeau se ferme bien après « Accepter » / « Refuser » (l'attribut hidden l'emporte)
   - bandeau intégré en haut, pleine largeur, même bleu nuit que la barre du haut, boutons identiques
   - barre du haut sur une seule ligne centrée (avis + téléphone) */
#mh-consent[hidden]{display:none!important}
@media (max-width:768px){
  #mh-consent{top:0!important;left:0!important;right:0!important;bottom:auto!important;max-width:none!important;margin:0!important;
    border:0!important;border-radius:0!important;background:#111827!important;color:#E5E7EB!important;
    box-shadow:0 4px 14px rgba(0,0,0,.28)!important;padding:10px 14px!important;gap:12px!important}
  #mh-consent p{font-size:12px!important;line-height:1.35!important;color:#E5E7EB!important}
  #mh-consent a{color:#fff!important}
  #mh-consent .mh-consent-btns{flex-direction:column!important;gap:6px!important}
  #mh-consent .mh-consent-btns button{background:#fff!important;color:#111827!important;border:1px solid #fff!important;
    min-height:32px!important;padding:5px 12px!important;font-size:13px!important;min-width:88px!important;border-radius:6px!important}
  body.mhsb-body .mhsb-topbar{padding-top:7px!important;padding-bottom:7px!important}
  body.mhsb-body .mhsb-topbar-inner{justify-content:center!important;flex-wrap:nowrap!important;gap:18px!important}
  body.mhsb-body .mhsb-topbar-item{display:none!important}
}

/* === Couleurs (13/11/2026 07h, Claude) — une couleur par action, plus de violet ===
   Appeler = rouge partout · Devis = bleu · WhatsApp = vert. Titres et blocs : bleu nuit → bleu, sans rouge mélangé (le « violet »). */
body.mhsb-body .mhsb-hero h1{background:linear-gradient(135deg,#0F172A 0%,#0F172A 45%,#1E40AF 100%)!important;
  -webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important}
body.mhsb-body .mhsb-cta-block{background:linear-gradient(135deg,#1E40AF 0%,#0F172A 100%)!important}
body.mhsb-body .mhsb-card-sc .mhsb-card-icon{background:linear-gradient(135deg,#1E40AF 0%,#1E3A8A 100%)!important}
body.mhsb-body .mhsb-sticky-tel{background:#BE123C!important}
body.mhsb-body .mhsb-sticky-wa{background:#16A34A!important}
body.mhsb-body a.mhsb-cta[href^="tel:"]{background:#BE123C!important;border-color:#BE123C!important;color:#fff!important}
body.mhsb-body a.mhsb-cta[href*="wa.me"]{background:#16A34A!important;border-color:#16A34A!important;color:#fff!important}
body.mhsb-body .mhsb-navbar-cta-accent[href*="wa.me"]{color:#15803D!important;border-color:#16A34A!important}
