/* Immo Taroudant — approved artisan team, 13 September 2026.
   Applies only while the companion MU plugin is enabled. */

body.imt-page.imt-equipe-accueil .imt-hero {
    position: relative;
    isolation: isolate;
    min-height: 760px;
    padding: clamp(70px, 8vw, 126px) 0 34px;
    background-color: #f7f2e9;
    background-image: url("equipe-riad.webp");
    background-size: cover;
    background-position: center 38%;
    background-repeat: no-repeat;
}

body.imt-page.imt-equipe-accueil .imt-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse 32% 41% at 50% 41%, rgba(255, 252, 244, .72), rgba(255, 252, 244, .2) 80%, transparent 100%);
}

body.imt-page.imt-equipe-accueil .imt-hero > .imt-landscape {
    display: none;
}

body.imt-page.imt-equipe-accueil .imt-hero-heading {
    position: relative;
    padding: 20px 0 10px;
}

body.imt-page.imt-equipe-accueil .imt-hero-heading .imt-eyebrow {
    margin: 0 0 22px;
    color: #102c46;
    text-shadow: 0 1px 10px #fff;
}

body.imt-page.imt-equipe-accueil .imt-hero-heading h1 {
    max-width: 700px;
    margin: 0 auto 14px;
    font-size: clamp(38px, 3.55vw, 56px);
    line-height: 1.05;
    color: #073369 !important;
    text-shadow: 0 1px 14px rgba(255, 252, 244, .7);
    text-wrap: balance;
}

body.imt-page.imt-equipe-accueil .imt-hero-heading h1 em {
    color: #79541b;
    font-weight: 400;
}

body.imt-page.imt-equipe-accueil .imt-hero-heading > p:last-child {
    max-width: 810px;
    margin: 14px auto 0;
    padding: 0 12px;
    color: #073369;
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.5;
    text-shadow: 0 1px 10px #fff;
}

body.imt-page.imt-equipe-accueil .imt-hero-search {
    position: relative;
    width: min(1400px, 92%);
    padding: 12px 0 0;
}

body.imt-page.imt-equipe-accueil .imt-search-modes {
    margin-bottom: 0;
}

body.imt-page.imt-equipe-accueil .imt-mode-label {
    text-shadow: 0 1px 8px #fff;
}

body.imt-page.imt-equipe-accueil .imt-search-modes .imt-natural,
body.imt-page.imt-equipe-accueil .imt-search-modes .imt-search {
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 12px 34px rgba(71, 49, 26, .1);
}

/* Other public pages: a quiet background behind the existing heading,
   with no additional banner height above the property catalogue. */
body.imt-page.imt-equipe-riad:not(.imt-equipe-accueil) #imt-main {
    position: relative;
    isolation: isolate;
}

body.imt-page.imt-equipe-riad:not(.imt-equipe-accueil) #imt-main::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: clamp(280px, 35vw, 480px);
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(to bottom, rgba(255, 255, 255, .66), rgba(255, 255, 255, .86) 66%, #fff 100%),
        url("equipe-riad.webp");
    background-size: cover;
    background-position: center 28%;
    background-repeat: no-repeat;
}

@media (min-width: 1700px) {
    body.imt-page.imt-equipe-accueil .imt-hero {
        min-height: 880px;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    body.imt-page.imt-equipe-accueil .imt-hero {
        padding-top: 74px;
        min-height: 0;
    }
    body.imt-page.imt-equipe-accueil .imt-hero-heading h1 {
        max-width: 610px;
    }
    body.imt-page.imt-equipe-accueil .imt-hero::before {
        background: linear-gradient(to bottom, rgba(255, 252, 246, .15), rgba(255, 252, 246, .72) 25%, rgba(255, 252, 246, .38));
    }
}

@media (max-width: 600px) {
    body.imt-page.imt-equipe-accueil .imt-hero {
        padding: clamp(155px, 42vw, 240px) 0 26px;
        background-size: 100% auto;
        background-position: center top;
    }
    body.imt-page.imt-equipe-accueil .imt-hero::before {
        background: linear-gradient(to bottom, transparent 0, transparent 100px, rgba(247, 242, 233, .66) 190px, #f7f2e9 330px);
    }
    body.imt-page.imt-equipe-accueil .imt-hero-heading {
        padding: 18px 0 8px;
    }
    body.imt-page.imt-equipe-accueil .imt-hero-heading .imt-eyebrow {
        font-size: 11px;
        letter-spacing: .12em;
        margin-bottom: 15px;
    }
    body.imt-page.imt-equipe-accueil .imt-hero-heading h1 {
        max-width: 460px;
        font-size: clamp(29px, 8vw, 40px);
        line-height: 1.08;
    }
    body.imt-page.imt-equipe-accueil .imt-hero-heading h1 em {
        display: inline-block;
        margin-top: 8px;
    }
    body.imt-page.imt-equipe-accueil .imt-hero-heading > p:last-child {
        font-size: 15px;
    }
    body.imt-page.imt-equipe-accueil .imt-hero-search {
        width: 94%;
    }
    body.imt-page.imt-equipe-riad:not(.imt-equipe-accueil) #imt-main::before {
        height: 280px;
        background-size: auto, 100% auto;
        background-position: center top;
    }
}

@media print {
    body.imt-page.imt-equipe-accueil .imt-hero {
        min-height: 0;
        padding: 0;
        background: #fff;
    }
    body.imt-page.imt-equipe-accueil .imt-hero::before,
    body.imt-page.imt-equipe-riad:not(.imt-equipe-accueil) #imt-main::before {
        display: none;
    }
}
