/* French synchronization: verbatim English master treatments, exact viewport only.
   Sources: theme.css (cards, pricing, CTAs); about.html (editorial reading layout).
   The approved French homepage pilot remains unchanged. */
@media (width: 1100px) and (height: 900px) {

  /* English interior card, pricing and CTA treatments. */
  html[lang="fr"] body.interior-v21 main :is(.guest-review, .pricing-teaser-option, .partnerships-facts > li, .pricing-page .price-option, .pricing-page .feature, .pricing-page .cost, .booking-page .booking-summary, :where(.steps#craft:has(#the-process) .step-grid > .step)) {
    position: relative;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.11) 0px 6px 20px;
  }
  html[lang="fr"]:not([data-theme="dark"]) body.interior-v21 main :is(.guest-review, .pricing-teaser-option, .partnerships-facts > li, .pricing-page .price-option, .pricing-page .feature, .pricing-page .cost, .booking-page .booking-summary, :where(.steps#craft:has(#the-process) .step-grid > .step)) {
    background-color: rgb(255, 255, 255);
    border-color: transparent;
  }
  html[lang="fr"] body.interior-v21 main :is(.guest-review, .pricing-teaser-option, .partnerships-facts > li, .pricing-page .price-option, .pricing-page .feature, .pricing-page .cost, .booking-page .booking-summary, :where(.steps#craft:has(#the-process) .step-grid > .step))::before {
    content: "";
    position: absolute;
    inset: 0px;
    border: 1px solid rgb(232, 232, 232);
    border-radius: inherit;
    pointer-events: none;
  }
  html[lang="fr"][data-theme="dark"] body.interior-v21 main :is(.guest-review, .pricing-teaser-option, .partnerships-facts > li, .pricing-page .price-option, .pricing-page .feature, .pricing-page .cost, .booking-page .booking-summary, :where(.steps#craft:has(#the-process) .step-grid > .step))::before {
    border-color: var(--theme-line);
  }
  html[lang="fr"][data-theme="dark"] body .pricing-page :is(.price-option, .feature, .cost) {
    outline: none;
  }
  html[lang="fr"] body.interior-v21 main .steps#craft:has(#the-process) .step-grid {
    gap: 24px;
    grid-auto-rows: auto;
    align-items: stretch;
  }
  html[lang="fr"] body.interior-v21 main .steps#craft:has(#the-process) .step-grid > .step {
    padding: 24px;
    min-width: 0px;
  }
  html[lang="fr"][data-theme="dark"] body.interior-v21 main .steps#craft:has(#the-process) .step-number {
    color: rgb(255, 255, 255) !important;
  }
  html[lang="fr"] body.interior-v21 .pricing-page :is(.price-option, .feature, .cost) {
    padding: 24px;
    border-width: 0px;
    min-width: 0px;
  }
  html[lang="fr"] body.interior-v21 .pricing-page :is(.price-grid, .feature-grid, .cost-grid) {
    gap: 24px;
    align-items: stretch;
  }
  html[lang="fr"] body.interior-v21 .pricing-page .option-heading {
    min-height: 64px;
    margin-bottom: 16px;
  }
  html[lang="fr"] body.interior-v21 .pricing-page :is(.feature, .cost) > .pricing-icon {
    margin-bottom: 16px;
  }
  html[lang="fr"] body.interior-v21 .pricing-page :is(.feature, .cost) h3 {
    margin-bottom: 12px;
  }
  html[lang="fr"] body.interior-v21 .pricing-page :is(.price-options, .included, .additional, .reassurance, .pricing-closing) {
    padding: 0px 0px 40px;
  }
  html[lang="fr"] body.interior-v21 .pricing-page :is(.included-intro, .additional > .container, .reassurance-grid) {
    padding-top: 32px;
  }
  html[lang="fr"] body.interior-v21 .pricing-page .additional > .container {
    row-gap: 24px;
  }
  html[lang="fr"] body.interior-v21 .pricing-page .cost-note {
    margin-top: 0px;
  }
  html[lang="fr"] body.interior-v21 .pricing-page .feature h3 {
    min-height: 2.5em;
  }
  @layer bjm-chrome-priority {
  html:root[lang="fr"] body:is(.interior-v21, .contact-site)[class] > :is(header, main) :is(a, button, input)[class]:is(.nav-cta, .homepage-v21 .cta-primary, .about-action-primary, .booking-primary, .booking-link, .faq-chat, .article-primary, .craft-booking-cta) {
    background-color: rgb(8, 127, 145) !important;
    border-color: rgb(8, 127, 145) !important;
    color: rgb(255, 255, 255) !important;
  }
  }
  @layer bjm-chrome-priority {
  html:root[lang="fr"] body:is(.interior-v21, .contact-site)[class] > :is(header, main) :is(a, button, input)[class]:is(.nav-cta, .homepage-v21 .cta-primary, .about-action-primary, .booking-primary, .booking-link, .faq-chat, .article-primary, .craft-booking-cta) :is(span, strong, em) {
    color: rgb(255, 255, 255) !important;
  }
  }
  @layer bjm-chrome-priority {
  html:root[lang="fr"] body:is(.interior-v21, .contact-site)[class] > :is(header, main) :is(a, button, input)[class]:is(.nav-cta, .homepage-v21 .cta-primary, .about-action-primary, .booking-primary, .booking-link, .faq-chat, .article-primary, .craft-booking-cta):focus-visible {
    outline: rgb(8, 127, 145) solid 2px !important;
    outline-offset: 5px !important;
  }
  }

  /* English About layout; French text keeps its natural wrapping. */
  html[lang="fr"] body.interior-v21 main.about-page, html[lang="fr"] body.interior-v21 main.about-page :is(h1, h2, h3, h4, h5, h6, p, ul, ol, li, blockquote, figcaption, .about-copy, .about-action) {
    text-align: left;
  }
  html[lang="fr"] body.interior-v21 main.about-page .about-grid, html[lang="fr"] body.interior-v21 main.about-page .about-section:nth-of-type(6) .about-grid {
    grid-template-columns: minmax(0px, 1fr);
    gap: 20px;
    width: 100%;
    margin-inline: 0px;
  }
  html[lang="fr"] body.interior-v21 main.about-page .about-heading {
    max-width: min(100%, 40ch);
    text-wrap: balance;
    margin-bottom: 0px;
    font-size: 34px;
    line-height: 1.18;
    letter-spacing: -0.03em;
  }
  html[lang="fr"] body.interior-v21 main.about-page h1.about-heading {
    max-width: min(100%, 34ch);
    font-size: 48px;
    line-height: 1.1;
  }
  html[lang="fr"] body.interior-v21 main.about-page .about-closing .about-heading {
    max-width: min(100%, 38ch);
    font-size: 40px;
    line-height: 1.15;
  }
  html[lang="fr"] body.interior-v21 main.about-page .about-eyebrow .bjm-section-highlight {
    position: relative;
    left: -12px;
  }
  html[lang="fr"] body.interior-v21 main.about-page .about-eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.12em;
  }
  html[lang="fr"] body.interior-v21 main.about-page .about-copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0px, 1fr));
    grid-auto-flow: row;
    align-items: start;
    gap: 18px 40px;
    width: 100%;
    max-width: 100%;
    margin-inline: 0px;
  }
  html[lang="fr"] body.interior-v21 main.about-page .about-copy p {
    max-width: min(100%, 90ch);
    text-wrap: pretty;
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 0px;
  }
  html[lang="fr"] body.interior-v21 main.about-page .about-copy p:first-child, html[lang="fr"] body.interior-v21 main.about-page .about-copy p:last-child:nth-child(2n) {
    grid-column: 1 / -1;
  }
  html[lang="fr"] body.interior-v21 main.about-page .about-closing .about-copy {
    grid-template-columns: minmax(0px, 1fr);
    gap: 8px;
  }
  html[lang="fr"] body.interior-v21 main.about-page :is(.about-section, .about-closing) {
    padding-block: 36px;
  }
  html[lang="fr"] body.interior-v21 main.about-page .about-section:nth-of-type(-n+2) {
    padding-bottom: 40px;
  }
  html[lang="fr"] body.interior-v21 main.about-page .about-closing {
    padding-block: 16px 48px;
  }
  html[lang="fr"] body.interior-v21 main.about-page .about-section > .about-container, html[lang="fr"] body.interior-v21 main.about-page .about-grid > div {
    display: flow-root;
  }
  html[lang="fr"] body.interior-v21 main.about-page .about-section + .about-section {
    padding-top: 0px;
  }
  html[lang="fr"] body.interior-v21 main.about-page .about-section + .about-section > .about-container, html[lang="fr"] body.interior-v21 main.about-page .about-closing > .about-container {
    border-top: 1px solid rgba(128, 128, 128, 0.25);
    border-image: none;
    padding-top: 36px;
  }
  html[lang="fr"] body.interior-v21 main.about-page .about-closing > .about-container {
    grid-template-columns: minmax(0px, 1fr);
    gap: 24px;
    justify-items: start;
  }
  html[lang="fr"] body.interior-v21 main.about-page .about-closing > .about-container > :is(.about-heading, .about-copy, .about-actions) {
    grid-area: auto / 1;
    width: 100%;
    margin: 0px;
  }
  html[lang="fr"] body.interior-v21 main.about-page .about-actions {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  /* Place the existing French Location link in the English footer column/order.
     Grid placement keeps every original node, translation, destination and ID. */
  @layer bjm-chrome-priority {
    html[lang="fr"] body > footer.site-footer .footer-grid {
      grid-template-rows: auto repeat(4, minmax(36px, auto)) !important;
      row-gap: 0 !important;
    }
    html[lang="fr"] body > footer.site-footer .footer-grid > :is(.footer-brand-column, nav:nth-child(2)) {
      grid-row: 1 / 6 !important;
    }
    html[lang="fr"] body > footer.site-footer .footer-grid > nav:is(:nth-child(3), :nth-child(4)),
    html[lang="fr"] body > footer.site-footer .footer-grid > nav:is(:nth-child(3), :nth-child(4)) > ul {
      display: contents !important;
    }
    html[lang="fr"] body > footer.site-footer .footer-grid > nav:nth-child(3) > h2 { grid-area: 1 / 3 !important; }
    html[lang="fr"] body > footer.site-footer .footer-grid > nav:nth-child(4) > h2 { grid-area: 1 / 4 !important; }
    html[lang="fr"] body > footer.site-footer .footer-grid > nav:nth-child(3) li { grid-column: 3 !important; }
    html[lang="fr"] body > footer.site-footer .footer-grid > nav:nth-child(3) li:nth-child(1) { grid-row: 2 !important; }
    html[lang="fr"] body > footer.site-footer .footer-grid > nav:nth-child(3) li:nth-child(2) { grid-row: 3 !important; }
    html[lang="fr"] body > footer.site-footer .footer-grid > nav:nth-child(3) li:nth-child(3) { grid-row: 4 !important; }
    html[lang="fr"] body > footer.site-footer .footer-grid > nav:nth-child(3) li:last-child { grid-area: 3 / 4 !important; }
    html[lang="fr"] body > footer.site-footer .footer-grid > nav:nth-child(4) li:first-child { grid-area: 2 / 4 !important; }
    html[lang="fr"] body > footer.site-footer .footer-grid > nav:nth-child(4) li:last-child { grid-area: 4 / 4 !important; }
  }
}

/* Hero title desktop font: exact viewport micro-fix, both themes. */
@media (width: 1100px) and (height: 900px) {
  html[lang="fr"] body.homepage-v21 > main > .hero#home .hero-desktop-headline,
  html[lang="fr"] body.homepage-v21 > main > .hero#home .hero-desktop-headline strong {
    font-family: "DM Sans", system-ui, sans-serif;
  }
}
