body .jfc-contact-name,
#mw-messages .jfc-contact-name {
    font-family: "JFC Brand", Arial, sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: .015em;
    text-transform: uppercase;
}

.jfc-office-address {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
    text-align: inherit;
}

.jfc-office-address > span {
    display: block;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .contact-info .aginfos:has(.jfc-office-address) {
        flex-wrap: wrap;
    }

    .contact-info .aginfos > div:has(.jfc-office-address) {
        max-width: 100%;
        min-width: min(100%, 17rem);
    }
}


@media (max-width: 360px) {
    .jfc-office-address {
        font-size: min(1em, 4.4vw);
    }

    .contact-info .jfc-office-address {
        font-size: min(1em, 3.9vw);
    }
}

@font-face {
    font-family: "JFC Heading Letters";
    src: url("headings.woff") format("woff");
    font-weight: 400;
    font-display: swap;
}

body {
    --jfc-title-font: "JFC Brand", "JFC Button Letters", "JFC Heading Letters", Arial, sans-serif;
}

/* The public theme uses sections for its shared header, body and footer. */
body :is(#primary, main, article, section) :is(h1,h2,h3,h4,h5,h6),
body :is(#primary, main, article, section) :is(h1,h2,h3,h4,h5,h6) :is(a,span,strong,em),
body .property-card .text > p:first-of-type,
body .property-card small.jfc-region,
body :is(#menu-item-834, #menu-item-240) .sub-menu a,
body a[href*="/proprietes-a-vendre-"],
body a[href*="/properties-for-sale-in-"],
body section[data-signature] :is(summary, li a),
body .filter-wrapper button,
body #filter-wrapper button,
body .jfc-report label select,
body .jfc-report label select option {
    font-family: var(--jfc-title-font) !important;
    font-weight: 400 !important;
    letter-spacing: .015em;
    text-transform: uppercase;
}

/* The theme's two banner lines are separated by a space; words within each line use nonbreaking spaces. */
body .ip-banner .banner-ctn > h1 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}
body.home .about .jfc-intro-title,
body.home .about h3 {
    font-size: clamp(1.15rem, 2.05vw, 1.8rem);
    line-height: 1.35;
    text-wrap: balance;
}
body.home .about .jfc-intro-title {
    margin: 1.4rem auto .85rem;
}
body.home .about .jfc-intro-copy,
body.home .cta .jfc-evaluation-copy {
    font: 400 clamp(1rem, 1.2vw, 1.1rem)/1.6 Montserrat, Arial, sans-serif;
    letter-spacing: normal;
    text-transform: none;
    text-align: center;
    max-width: 66ch;
    margin: 0 auto 1.35rem;
}
body.home .cta .jfc-evaluation-copy {
    color: inherit;
}
body .jfc-report :is(label, .jfc-lines dt, .jfc-sign > div, .jfc-sales + div) {
    font-family: var(--jfc-title-font) !important;
}
body .jfc-report .jfc-lines dt {
    overflow-wrap: normal;
    line-height: 1.45;
}
body .jfc-report .jfc-lines dd {
    font-variant-numeric: tabular-nums;
}
body .jfc-report .jfc-region h2 {
    font-size: clamp(1.2rem, 3.5vw, 2.8rem);
    text-wrap: balance;
}
#jfc-home-market .jfc-sign {
    display: none;
}
@media (min-width: 701px) {
    body .jfc-report .jfc-lines > div {
        grid-template-columns: minmax(0,1fr) 9ch 8ch;
    }
    body .jfc-report .jfc-lines dd {
        text-align: right;
    }
}

.social-footer .row > div:has(> img.logo) {
    display: none;
}
body .social-footer {
    padding-block: clamp(1.5rem, 3vw, 2.75rem);
}
body .social-footer .row > .social {
    margin-top: 0;
}

#jfc-home-market {
    box-sizing: border-box;
    scroll-margin-top: 13rem;
    max-width: 64rem;
    margin: clamp(2rem, 5vw, 5rem) auto;
    padding: 0 1rem;
}
#jfc-home-market-title {
    text-align: center;
    font-size: clamp(1.2rem, 2.45vw, 2.05rem);
    text-wrap: balance;
    line-height: 1.3;
    margin: 0 auto 1.2rem;
}
#jfc-home-market-title a {
    color: inherit;
}
#jfc-home-market .jfc-market-sources {
    max-width: 60rem;
    margin: .8rem auto 0;
    text-align: center;
    font-size: .88rem;
}
#jfc-home-market .jfc-market-sources p {
    margin-bottom: .3rem;
}
@media (min-width: 992px) and (max-width: 1499px) {
    .header #primary-menu:has(.jfc-market-nav) > li {
        padding-inline: clamp(.1rem, .32vw, .3rem);
    }
    .header #primary-menu:has(.jfc-market-nav) > li > a.nav-link {
        padding-inline: clamp(.1rem, .28vw, .3rem);
    }
    .header .navbar-collapse a[href^="tel:"] { white-space: nowrap; }
    .header .navbar-collapse:has(.jfc-market-nav) { flex-wrap: wrap; }
}
@media (max-width: 600px) {
    #jfc-home-market { scroll-margin-top: 8rem; }
    body.home section .section-title h2 {
        font-size: clamp(1.18rem, 5.5vw, 1.75rem);
        line-height: 1.3;
        text-wrap: balance;
    }
    body.home section .section-title h6 {
        font-size: clamp(1rem, 4.25vw, 1.3rem);
        line-height: 1.35;
    }
    body .properties-inner :is(h1,h2,h3,.h1styled),
    body .site-main .entry-title {
        font-size: clamp(1.25rem, 5.2vw, 1.9rem);
        line-height: 1.25;
    }
    #jfc-home-market .jfc-report {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* At smaller widths the top bar already carries the broker's wordmark. */
@media (max-width: 991px) {
    body:has(.ip-banner) section.header {
        position: relative !important;
        top: auto !important;
    }
    body:has(.ip-banner) .header .topbar { margin-bottom: 0; }
    body:has(.ip-banner) .header:has(.topbar .logo) .navbar-brand { display: none; }
    body section.ip-banner { margin-top: 0 !important; }
}
@media (max-width: 767px) {
    body section.ip-banner {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: center;
        height: auto !important;
        min-height: 60vh;
        min-height: 60svh;
    }
    body.home section.ip-banner { min-height: 90vh; min-height: 90svh; }
    body section.ip-banner > .ip-swiper {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
    body section.ip-banner > .banner-wrapper {
        box-sizing: border-box;
        position: relative;
        inset: auto;
        transform: none;
        width: 100%;
        padding-block: clamp(1.5rem, 6vw, 2.5rem);
        min-width: 0;
        margin-inline: auto;
    }
}

#mw-calculators .jfc-tax-embed {
    container-type: inline-size;
    position: relative;
    max-width: 760px;
    margin-inline: auto;
    scroll-margin-top: 16rem;
    background: white;
    filter: grayscale(1);
}
#mw-calculators .jfc-tax-embed iframe,
#mw-calculators iframe[srcdoc] {
    filter: grayscale(1);
}
#mw-calculators .jfc-tax-embed iframe {
    display: block;
    filter: grayscale(1) brightness(.82) contrast(2);
}
@media (max-width: 991px) {
    #mw-calculators .jfc-tax-embed { scroll-margin-top: 2rem; }
}
/* Align the host's French heading with the provider's form heading slot.
   The form switches to two columns at 620px inside the frame. */
#mw-calculators .jfc-tax-embed > h2 {
    box-sizing: border-box;
    position: absolute;
    z-index: 1;
    inset: 8px 20px auto;
    height: 43px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    background: #fff;
    color: #000;
    text-align: left;
    font-size: clamp(.82rem, 3.6cqw, 1rem);
    line-height: 1.2;
    pointer-events: none;
}
@container (min-width: 620px) {
    #mw-calculators .jfc-tax-embed > h2 { right: calc(50% + 24px); }
}

#mw-messages .jfc-oaciq-description {
    margin: 0 0 .45rem;
    font: inherit;
    color: inherit;
}
#mw-messages a.jfc-oaciq-link {
    display: block;
    margin: 0 0 .8rem;
    padding: .65rem .75rem;
    border: 1px solid #000;
    border-radius: 3px;
    background: #fff;
    color: #000;
    font: inherit;
    line-height: 1.35;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: .15em;
}
#mw-messages a.jfc-oaciq-link:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}
