/* ============================================================
   RESPONSIVE GLOBAL — thème enfant `aml`
   ============================================================ */


/* ─────────────────────────────────────────────────────────────
   Mobile + Tablette — ≤ 1024px
───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {

    /* ─── Header ─── */
    header.wp-block-template-part {
        position: static;
        top: unset;
    }

    /* ─── Hero ─── */
    .hero {
        min-height: auto;
        padding-top: 0 !important;
        padding-bottom: 2rem !important;
        overflow: hidden !important;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .hero-inner {
        padding: 0 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Override FSE layout deux colonnes */
    .hero-inner.is-layout-flex > .wp-block-column,
    .hero-inner.wp-block-columns-is-layout-flex > .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-inner > .wp-block-column:first-child {
        padding: 3rem 1rem 2rem !important;
        text-align: center !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .hero-eyebrow {
        justify-content: center !important;
    }

    .hero h1,
    .hero h2 {
        font-size: clamp(2rem, 5vw, 3rem) !important;
        word-break: break-word;
        margin-bottom: 1.5rem !important;
    }

    .hero-description {
        text-align: center;
        margin-bottom: 2rem !important;
    }

    .hero .wp-block-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        margin-top: 1rem !important;
        gap: 1rem !important;
    }

    .hero .wp-block-buttons .wp-block-button {
        width: 100%;
        text-align: center;
    }

    .hero-inner > .wp-block-column:last-child {
        display: block !important;
        width: 100% !important;
        padding: 0 1rem 2rem !important;
    }

    /* ─── Portraits ─── */
    .hero-portrait,
    .coiffure-hero-portrait,
    .sophrologie-hero-portrait,
    .sophroanalyse-hero-portrait,
    .sexotherapie-hero-portrait,
    .soinsenergetiques-hero-portrait,
    .monparcours-hero-portrait {
        max-width: 340px !important;
        margin: 0 auto !important;
    }

    .hero-portrait img,
    .coiffure-hero-portrait img,
    .sophrologie-hero-portrait img,
    .sophroanalyse-hero-portrait img,
    .sexotherapie-hero-portrait img,
    .soinsenergetiques-hero-portrait img,
    .monparcours-hero-portrait img {
        height: 380px !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    .hero-portrait::before,
    .hero-portrait::after,
    .coiffure-hero-portrait::before,
    .coiffure-hero-portrait::after,
    .sophrologie-hero-portrait::before,
    .sophrologie-hero-portrait::after,
    .sophroanalyse-hero-portrait::before,
    .sophroanalyse-hero-portrait::after,
    .sexotherapie-hero-portrait::before,
    .sexotherapie-hero-portrait::after,
    .soinsenergetiques-hero-portrait::before,
    .soinsenergetiques-hero-portrait::after,
    .monparcours-hero-portrait::before,
    .monparcours-hero-portrait::after {
        display: none !important;
    }

    /* ─── Mon Histoire ─── */
    .parcours-sticky {
        position: static !important;
        top: auto !important;
    }

    /* ─── Infos pratiques ─── */
    .session-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .pratique-box {
        max-width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        padding: 1.5rem !important;
    }

    .pratique-icon {
        display: none !important;
    }

    .pratique-item {
        gap: 0.75rem !important;
    }

    .pratique-item-content .tarif-price {
        white-space: nowrap !important;
        margin-left: 1rem !important;
    }
}


/* ─────────────────────────────────────────────────────────────
   Tablette large — 1025px – 1199px
───────────────────────────────────────────────────────────── */
@media (min-width: 1025px) and (max-width: 1199px) {

    .hero {
        min-height: auto;
        padding-top: 0 !important;
        padding-bottom: 2rem !important;
        overflow: hidden !important;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .hero-inner {
        padding: 0 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Override FSE layout deux colonnes */
    .hero-inner.is-layout-flex > .wp-block-column,
    .hero-inner.wp-block-columns-is-layout-flex > .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-inner > .wp-block-column:first-child {
        padding: 3rem 1rem 2rem !important;
        text-align: center !important;
        width: 100% !important;
    }

    .hero-eyebrow {
        justify-content: center !important;
    }

    .hero h1,
    .hero h2 {
        font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-description {
        text-align: center;
        margin-bottom: 2rem !important;
    }

    .hero .wp-block-buttons {
        flex-direction: row !important;
        justify-content: center !important;
        flex-wrap: wrap;
    }

    .hero-inner > .wp-block-column:last-child {
        display: block !important;
        width: 100% !important;
        padding: 0 1rem 2rem !important;
    }

    .hero-portrait,
    .coiffure-hero-portrait,
    .sophrologie-hero-portrait,
    .sophroanalyse-hero-portrait,
    .sexotherapie-hero-portrait,
    .soinsenergetiques-hero-portrait,
    .monparcours-hero-portrait {
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    .hero-portrait img,
    .coiffure-hero-portrait img,
    .sophrologie-hero-portrait img,
    .sophroanalyse-hero-portrait img,
    .sexotherapie-hero-portrait img,
    .soinsenergetiques-hero-portrait img,
    .monparcours-hero-portrait img {
        height: 420px !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    .hero-portrait::before,
    .hero-portrait::after,
    .coiffure-hero-portrait::before,
    .coiffure-hero-portrait::after,
    .sophrologie-hero-portrait::before,
    .sophrologie-hero-portrait::after,
    .sophroanalyse-hero-portrait::before,
    .sophroanalyse-hero-portrait::after,
    .sexotherapie-hero-portrait::before,
    .sexotherapie-hero-portrait::after,
    .soinsenergetiques-hero-portrait::before,
    .soinsenergetiques-hero-portrait::after,
    .monparcours-hero-portrait::before,
    .monparcours-hero-portrait::after {
        display: none !important;
    }
}


/* ─────────────────────────────────────────────────────────────
   Desktop — ≥ 1200px
───────────────────────────────────────────────────────────── */
@media (min-width: 1200px) {

    .hero {
        min-height: 100vh;
    }

    .hero-inner {
        padding: 0 clamp(20px, 4vw, 40px) !important;
    }
}