/* ================================================
   BLOC PAGES ENFANTS (carousel)
   ================================================ */

.mhb-child-pages {
    padding: 40px var(--mhb-section-padding-x) var(--mhb-section-padding-bottom);
}

.mhb-child-pages__header {
    margin-bottom: 30px;
    text-align: center;
}

.mhb-child-pages__title {
    font-family: var(--mhb-font-display);
    font-size: clamp(28px, 4vw, 44px);
    text-transform: uppercase;
    color: var(--mhb-text-white);
    margin: 0 0 12px;
    letter-spacing: 0.02em;
}

.mhb-child-pages__intro {
    font-family: var(--mhb-font-primary);
    font-size: 16px;
    color: var(--mhb-text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ================================================
   CARD CHILD PAGE (dans le carousel)
   ================================================ */

.mhb-card--child-page {
    position: relative;
    border-radius: var(--mhb-radius-md);
    overflow: hidden;
    isolation: isolate;
    background: var(--mhb-bg-dark);
    border: 1px solid var(--mhb-border-glass);
    transition: transform var(--mhb-transition-base), box-shadow var(--mhb-transition-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    flex: 0 0 350px;
}

.mhb-card--child-page:hover {
    transform: none;
    box-shadow: var(--mhb-shadow-lg);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Image — bandeau compact */
.mhb-card--child-page__image {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: var(--mhb-bg-dark);
    flex-shrink: 0;
    transform: translateZ(0);
}

.mhb-card--child-page__image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, var(--mhb-bg-dark) 0%, rgba(11, 23, 45, 0.65) 30%, transparent 72%);
    pointer-events: none;
}

.mhb-card--child-page__image > img {
    display: block;
    position: absolute;
    inset: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    max-width: none;
    object-fit: cover;
    transition: transform var(--mhb-transition-smooth);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.mhb-card--child-page:hover .mhb-card--child-page__image > img {
    transform: translateZ(0) scale(1.08);
}

.mhb-card--child-page__image .mhb-card__overlay {
    display: none;
}

/* Placeholder avec logo MHB centré, taille naturelle */
.mhb-card--child-page__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--mhb-primary) 0%, var(--mhb-bg-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.mhb-card--child-page__logo {
    display: block;
    width: auto;
    height: auto;
    max-height: 70%;
    max-width: 50px;
    object-fit: contain;
    opacity: 0.2;
    transition: opacity var(--mhb-transition-base);
}

.mhb-card--child-page:hover .mhb-card--child-page__logo {
    opacity: 0.35;
}

/* Contenu */
.mhb-card--child-page__content {
    position: relative;
    z-index: 2;
    padding: 18px 22px 22px;
    margin-top: -1px;
    background: var(--mhb-bg-dark);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mhb-card--child-page__title {
    font-family: var(--mhb-font-display);
    font-size: 20px;
    text-transform: uppercase;
    color: var(--mhb-text-white);
    margin: 0 0 6px;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.mhb-card--child-page__excerpt {
    font-family: var(--mhb-font-primary);
    font-size: 13px;
    color: var(--mhb-text-gray);
    line-height: 1.5;
    margin: 0 0 12px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA */
.mhb-card--child-page__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mhb-font-display);
    font-size: 13px;
    text-transform: uppercase;
    color: var(--mhb-secondary);
    letter-spacing: 0.05em;
    transition: gap var(--mhb-transition-base), color var(--mhb-transition-base);
    margin-top: auto;
}

.mhb-card--child-page:hover .mhb-card--child-page__cta {
    gap: 14px;
    color: var(--mhb-accent);
}

.mhb-card--child-page__cta svg {
    transition: transform var(--mhb-transition-base);
}

.mhb-card--child-page:hover .mhb-card--child-page__cta svg {
    transform: translateX(4px);
}

/* Lien full card */
.mhb-card--child-page .mhb-card__link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

/* Message vide */
.mhb-child-pages__empty {
    text-align: center;
    color: var(--mhb-text-gray);
    font-style: italic;
    padding: 40px;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
    .mhb-card--child-page {
        flex: 0 0 300px;
    }
}

@media (max-width: 568px) {
    .mhb-card--child-page {
        flex: 0 0 280px;
    }

    .mhb-card--child-page__content {
        padding: 14px 18px 18px;
    }
}
