.chaps-hero-post-col-component {
    display: block;

    /* CSS Custom Properties */
    --chv-bg: linear-gradient(286deg, #DFE9E6 0%, #6C8182 95.02%);
    --chv-text: #18211E;
    --chv-stat-value: #18211E;
    --chv-stat-label: #18211E;
    --chv-stat-bg: #DCEFE3;
    --chv-breadcrumb: inherit;
    --chv-img-radius: 10px;
    --chv-form-bg: #ffffff;
    --chv-form-field-bg: #F2F2F3;
    --chv-form-text: #18211E;
    --chv-form-border-top: #EFC9F3;
    --chv-pt: 0px;
    --chv-pb: 0px;
    --chv-mt: 0px;
    --chv-mb: 0px;
    --chv-ml: 0px;

    margin-top: var(--chv-mt);
    margin-bottom: var(--chv-mb);
}

/* INNER */
.chaps-hero-post-col-component__inner {
    background: var(--chv-bg);
    min-height: auto;
    padding-top: var(--chv-pt);
    padding-bottom: var(--chv-pb);
    overflow: hidden;
}

/* BREADCRUMB */
.breadcrumb-container.--ready {
    opacity: 1;
}

.chaps-hero-post-col-component__breadcrumb {
    color: var(--chv-breadcrumb);
}

.chaps-hero-post-col-component__breadcrumb a,
.chaps-hero-post-col-component__breadcrumb span {
    color: inherit;
}

chaps-hero-post-col-component .breadcrumb-container ul{
    white-space: normal;
}

/* LEFT */
.chaps-hero-post-col-component__left {
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
    padding: 2rem 1.5rem;
}

/* CONTENT */
.chaps-hero-post-col-component__content {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

/* TITLE */
.chaps-hero-post-col-component__title {
    color: var(--chv-text) !important;
}

.chaps-hero-post-col-component__title p {
    margin: 0;
    color: inherit;
}

/* DESCRIPTION */
.chaps-hero-post-col-component__description {
    max-width: 100%;
    color: var(--chv-text) !important;
}

.chaps-hero-post-col-component__description p {
    margin-bottom: 0;
    color: inherit;
}

/* STATS */
.chaps-hero-post-col-component__stats {
    gap: 1.5rem;
}

.chaps-hero-post-col-component__stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chaps-hero-post-col-component__stat-value {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--chv-stat-value);
}

.chaps-hero-post-col-component__stat-label {
    font-size: 0.8rem;
    color: var(--chv-stat-label);
    opacity: 0.75;
    line-height: 1.3;
}

/* QUOTE */
.chaps-hero-post-col-component__quote {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    border-left: 3px solid currentColor;
    border-left-color: var(--chv-stat-value, #18211E);
}

.chaps-hero-post-col-component__quote-icon {
    flex-shrink: 0;
    color: var(--chv-stat-value, #18211E);
    opacity: 0.55;
    margin-top: 2px;
    line-height: 0;
}

.chaps-hero-post-col-component__quote-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
}

.chaps-hero-post-col-component__quote-text {
    margin: 0;
    font-size: 0.925rem;
    line-height: 1.6;
    color: var(--chv-text, #18211E);
    font-style: italic;
}

.chaps-hero-post-col-component__quote-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    justify-content: flex-end;
}

.chaps-hero-post-col-component__quote-author-name {
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--chv-text, #18211E);
}

.chaps-hero-post-col-component__quote-author-role {
    font-size: 0.8rem;
    color: var(--chv-text, #18211E);
    opacity: 0.65;
}

.chaps-hero-post-col-component__quote-author-role::before {
    content: '—';
    margin-right: 0.3rem;
}

/* QUOTE — Logo client (remplace le nom texte si renseigné) */
.chaps-hero-post-col-component__quote-client-logo {
    display: block;
    max-height: 36px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Filtre adaptatif : le logo devient lisible quelle que soit la couleur de fond */
    filter: brightness(0) saturate(100%);
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

/* Si l'arrière-plan est sombre (classe utilitaire optionnelle à poser sur le composant) */
.chaps-hero-post-col-component.--logo-invert
.chaps-hero-post-col-component__quote-client-logo {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* On retire le tiret « — » devant le rôle quand un logo est affiché */
.chaps-hero-post-col-component__quote-author:has(
    .chaps-hero-post-col-component__quote-client-logo
)
.chaps-hero-post-col-component__quote-author-role::before {
    content: '';
    margin-right: 0;
}

/* STATS CARD */
.chaps-hero-post-col-component__stats.--card {
    gap: 0.75rem;
    flex-wrap: wrap;
}

.chaps-hero-post-col-component__stats.--card
.chaps-hero-post-col-component__stat {
    background: var(--chv-stat-bg);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    flex: 1 1 calc(33% - 0.75rem);
    min-width: 90px;
}

/* MEDIA */
.chaps-hero-post-col-component__media {
    box-sizing: border-box;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .chaps-hero-post-col-component__media {
        padding: 2rem 1.5rem;
    }
}

/* IMAGE */
.chaps-hero-post-col-component__media-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--chv-img-radius);
}

/* VIDEO */
.chaps-hero-post-col-component__video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.27%;
    border-radius: var(--chv-img-radius);
    overflow: hidden;
}

.chaps-hero-post-col-component__video-wrapper iframe,
.chaps-hero-post-col-component__video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

/* ─── FORM CARD ─── */
.chaps-hero-post-col-component__form-card {
    width: 100%;
    max-width: 589px;
    background: var(--chv-form-bg);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-sizing: border-box;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 10px 40px rgba(0, 0, 0, 0.12);
    border-top: 4px solid var(--chv-form-border-top);
}

.chaps-hero-post-col-component__form-card h1,
.chaps-hero-post-col-component__form-card h2,
.chaps-hero-post-col-component__form-card h3 {
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--chv-form-text);
}

/* LOGOS */
.chaps-hero-post-col-component__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.chaps-hero-post-col-component__logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.chaps-hero-post-col-component__logo-item:hover {
    opacity: 1;
}

.chaps-hero-post-col-component__logo-item img {
    max-height: 100%;
    max-width: 100px;
}

/* BUTTONS */
.chaps-hero-post-col-component__btn--primary {
    background-color: #EFC9F3 !important;
    border-radius: 9999px;
    width: 100%;
}

.chaps-hero-post-col-component__btn--secondary {
    background-color: #ffffff !important;
    border-radius: 9999px;
    border: 1.5px solid rgba(24, 33, 30, 0.15);
    width: 100%;
}

/* ══════════════════════════════════════════════════════════════
   Custom Card Block
   ══════════════════════════════════════════════════════════════ */

.chaps-hero-post-col-component__cards-row {
    width: 100%;
}

.custom-card {
    min-height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
}

.custom-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.custom-card.has_bg_image {
    background-image: var(--card-bg-image);
    background-size: cover;
    background-position: center;
}

.custom-card.has_gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--frame-url);
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.custom-card.has_gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--gradient-url);
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.custom-card .card-title {
    margin: 0;
    line-height: 1.2;
}

.custom-card .contentCustomCard_text p {
    margin: 0;
    color: inherit;
}

.custom-card .contentCustomCard_text a {
    color: var(--currentColor, currentColor);
    text-decoration: underline;
}

.custom-card .custom-card__button a.cv_button {
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-weight: 500;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.custom-card .custom-card__button a.cv_button:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

@media (max-width: 1023px) {
    .chaps-custom-card-block {
        display: block;
    }
    .custom-card {
        min-height: 180px;
    }
}

/* ══════════════════════════════════════════════════════════════
   HubSpot Embed v2 — Static fallback overrides
   (The JS in view.blade.php handles the real override via
   [data-hsfc-id="Renderer"] selectors injected after HubSpot
   hydrates. These rules are a safety net for elements that
   render before JS fires.)
   ══════════════════════════════════════════════════════════════ */

.chaps-hero-post-col-component__form-card .hsfc-Step {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: 100% !important;
}

.chaps-hero-post-col-component__form-card .hsfc-Step__Content {
    padding: 0 !important;
    width: 100% !important;
}

.chaps-hero-post-col-component__form-card .hsfc-FormWrapper,
.chaps-hero-post-col-component__form-card .hsfc-Form {
    width: 100% !important;
    background: transparent !important;
}

.chaps-hero-post-col-component__form-card .hsfc-Heading {
    font-family: 'Hanken Grotesk', sans-serif !important;
    font-size: clamp(1.5rem, 3vw, 2.5rem) !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    color: var(--chv-form-text) !important;
    margin-bottom: 1.5rem !important;
    text-shadow: none !important;
}

.chaps-hero-post-col-component__form-card .hsfc-Row {
    margin-bottom: 10px !important;
    gap: 10px !important;
    width: 100% !important;
}

.chaps-hero-post-col-component__form-card .hsfc-TextInput {
    width: 100% !important;
    height: 52px !important;
    border-radius: 10px !important;
    border: 1px solid #D8D8D8 !important;
    background: var(--chv-form-field-bg) !important;
    padding: 0 16px !important;
    font-size: 15px !important;
    font-family: 'Hanken Grotesk', sans-serif !important;
    color: var(--chv-form-text) !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: border-color 0.2s ease !important;
}

.chaps-hero-post-col-component__form-card .hsfc-TextInput::placeholder {
    color: #9B9B9B !important;
}

.chaps-hero-post-col-component__form-card .hsfc-TextInput:hover {
    box-shadow: none !important;
    border-color: #b0b0b0 !important;
}

.chaps-hero-post-col-component__form-card .hsfc-TextInput:focus,
.chaps-hero-post-col-component__form-card .hsfc-TextInput:focus-visible {
    border-color: var(--chv-form-text) !important;
    outline: none !important;
    box-shadow: none !important;
}

.chaps-hero-post-col-component__form-card .hsfc-PhoneInput__FlagAndCaret {
    background: var(--chv-form-field-bg) !important;
    border: 1px solid #D8D8D8 !important;
    border-right: none !important;
    border-radius: 10px 0 0 10px !important;
    height: 52px !important;
    padding: 0 12px !important;
}

.chaps-hero-post-col-component__form-card .hsfc-PhoneInput:not(.hsfc-PhoneInput--rtl) > .hsfc-TextInput {
    border-left: none !important;
    border-radius: 0 10px 10px 0 !important;
    height: 52px !important;
}

.chaps-hero-post-col-component__form-card .hsfc-DropdownOptions {
    border-radius: 10px !important;
    border: 1px solid #D8D8D8 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10) !important;
    z-index: 9999 !important;
}

.chaps-hero-post-col-component__form-card .hsfc-FieldLabel {
    display: none !important;
}

.chaps-hero-post-col-component__form-card .hsfc-ErrorAlert {
    font-size: 11px !important;
    color: #e53935 !important;
    margin-top: 4px !important;
}

.chaps-hero-post-col-component__form-card .hsfc-CheckboxInput {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    flex-shrink: 0 !important;
    border-radius: 4px !important;
    border: 1px solid #D8D8D8 !important;
    background: #ffffff !important;
    padding: 8px !important;
    cursor: pointer !important;
}

.chaps-hero-post-col-component__form-card .hsfc-CheckboxField label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    cursor: pointer !important;
}

.chaps-hero-post-col-component__form-card .hsfc-RichText {
    font-size: 11px !important;
    color: #777 !important;
    line-height: 1.5 !important;
}

.chaps-hero-post-col-component__form-card .hsfc-RichText a {
    color: #5d7374 !important;
    text-decoration: underline !important;
}

.chaps-hero-post-col-component__form-card .hsfc-Button {
    display: block !important;
    width: 100% !important;
    height: 52px !important;
    border-radius: 999px !important;
    border: none !important;
    background: #EFC9F3 !important;
    color: #18211E !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: 'Hanken Grotesk', sans-serif !important;
    cursor: pointer !important;
    margin-top: 12px !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

.chaps-hero-post-col-component__form-card .hsfc-Button:hover:not([disabled]) {
    transform: translateY(-2px) !important;
    opacity: 0.88 !important;
    background-color: #EFC9F3 !important;
    color: #18211E !important;
}

.chaps-hero-post-col-component__form-card .hsfc-Button:active:not([disabled]) {
    transform: translateY(0) !important;
    box-shadow: none !important;
}

.chaps-hero-post-col-component__form-card .hsfc-NavigationRow {
    margin-top: 4px !important;
}

.chaps-hero-post-col-component__form-card .hsfc-NavigationRow__Buttons {
    width: 100% !important;
    flex-direction: column !important;
}

/* ─── MOBILE ─── */
@media (max-width: 1024px) {
    .chaps-hero-post-col-component__form-card {
        max-width: 100%;
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }
    .chaps-hero-post-col-component__form-card .hsfc-TextInput {
        height: 48px !important;
        font-size: 14px !important;
    }
    .chaps-hero-post-col-component__form-card .hsfc-PhoneInput__FlagAndCaret {
        height: 48px !important;
    }
    .chaps-hero-post-col-component__form-card .hsfc-PhoneInput:not(.hsfc-PhoneInput--rtl) > .hsfc-TextInput {
        height: 48px !important;
    }
    .chaps-hero-post-col-component__form-card .hsfc-Button {
        height: 48px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 640px) {
    .chaps-hero-post-col-component__form-card {
        padding: 1.25rem 1rem;
    }
    .chaps-hero-post-col-component__form-card .hsfc-Heading {
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
    }
    .chaps-hero-post-col-component__form-card .hsfc-TextInput {
        height: 44px !important;
        font-size: 14px !important;
    }
    .chaps-hero-post-col-component__form-card .hsfc-PhoneInput__FlagAndCaret {
        height: 44px !important;
    }
    .chaps-hero-post-col-component__form-card .hsfc-PhoneInput:not(.hsfc-PhoneInput--rtl) > .hsfc-TextInput {
        height: 44px !important;
    }
    .chaps-hero-post-col-component__form-card .hsfc-Button {
        height: 44px !important;
        font-size: 14px !important;
    }
}