/* formula.now — refinements on top of the Webflow export (same look, tighter grid).
   Every section shares one content column: 1140px container + 20px gutter. */

:root {
  --fx-col: 1140px;
  --fx-gutter: 20px;
}

/* Typography: balanced headings, no orphan words in paragraphs. */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

/* Nav: logo and links on the same column as the page content, CTA on the right. */
@media (min-width: 992px) {
  .container.navbar-container {
    max-width: var(--fx-col);
  }
  .nav---container {
    width: auto;
    padding-left: 0;
    padding-right: 0;
    justify-content: space-between;
    align-items: center;
  }
  .nav---logo-wrapper {
    flex: 1 1 0;
    min-width: 0;
  }
  .nav-menu-desktop {
    flex: 0 0 auto;
    width: auto;
  }
  .fx-nav-cta-wrapper {
    flex: 1 1 0;
    display: flex;
    justify-content: flex-end;
  }
}
.fx-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.fx-nav-cta:hover {
  background: rgba(127, 86, 255, 0.18);
  border-color: rgba(127, 86, 255, 0.55);
}
/* Below desktop the menu is hidden: the CTA stays reachable next to the logo. */
@media (max-width: 991px) {
  .nav---container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .fx-nav-cta-wrapper {
    margin-left: auto;
  }
  .fx-nav-cta {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* Logo marquee: fade in/out at the edges instead of a hard cut. */
.hero-logos-wrapper {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

/* Section headings that sit on the left read left-aligned (the title was centered over a
   left-aligned paragraph). */
.section-heading-wrapper:not(.faq-heading-wrapper) h2,
.formula-heading-wrapper h2 {
  text-align: left;
}
.formula-heading-wrapper {
  max-width: 640px;
}
.formula-heading-wrapper .is-about {
  max-width: 520px;
}

/* « Notre offre »: three equal columns with the same inner spacing. */
@media (min-width: 768px) {
  .offer-bottom-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
  }
  .offer-card {
    padding: 28px;
  }
  .offer-card:first-child {
    padding-left: 0;
  }
  .offer-card:last-child {
    padding-right: 0;
  }
}
@media (max-width: 767px) {
  /* Title and card copy on the page's 20px edge (the title was indented twice). */
  .offer-container > .section-heading-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .offer-card {
    padding-left: 0;
    padding-right: 0;
  }
}

/* « Nos garanties »: copy and illustration share one left edge, illustrations sit centered
   at the bottom of their card so neighbouring cards line up. */
.garanties-block {
  display: flex;
  flex-direction: column;
}
.garanties-block .garanties-image-wrapper {
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .garanties-top {
    align-items: stretch;
  }
}

/* « Comment ça marche ? »: description aligned on the title's baseline. */
@media (min-width: 768px) {
  .faq-heading-wrapper {
    align-items: last baseline;
  }
}

/* Footer: columns aligned on the logo's top edge, readable email. */
.footer-links {
  align-items: start;
}
.footer-right {
  column-gap: 56px;
}
.footer---link {
  text-transform: none;
}

/* /commercial (1280px Relume grid) */
@media (min-width: 992px) {
  /* The CTA under « Comment s'inscrire » follows its left-aligned copy. */
  .process_content-left .margin-top {
    justify-content: flex-start;
  }
}
/* The footer is shared with the home page: on /commercial it follows the page's wider grid. */
body:has(.navbar2_component) .footer .w-container {
  max-width: calc(80rem + 40px);
}

/* 404 */
.utility-page-content {
  align-items: center;
  text-align: center;
  gap: 12px;
}
.fx-404-cta {
  margin-top: 16px;
}
