/* ==================================================
   ESPACEMENT COMMUN ENTRE LES SECTIONS DE LA PAGE.
   ================================================== */
.vision,
.services,
.engagement,
.reviews,
.join,
.support,
.partners {
  margin-top: 70px;
}

h1 {
  margin: 25px;
  padding: 20px 10px;
}

/* ==================================================
   VISION
   ================================================== */
.vision {
  padding: 24px 0 56px;
  text-align: center;
}

.vision h2 {
  max-width: 720px;
  margin: 0 auto 46px;
  font-size: 2.25rem;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 56px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}

.vision-grid img {
  width: 100%;
  height: 215px;
  object-fit: cover;
}

.vision-grid article {
  padding: 30px 36px;
  background: #ffffff;
  box-shadow: 5px 5px 20px 0 rgba(0, 0, 0, 0.15);
}

.vision-grid article:first-of-type {
  transform: translateY(12px);
}

.vision-grid article:last-of-type {
  transform: translateY(-12px);
}

.vision-grid h5 {
  margin: 0 0 20px;
  font-weight: bold;
}

.vision-grid p + p {
  margin-top: 8px;
}

/* ==================================================
   MEDIA
   ================================================== */

/* Tablette */
@media (max-width: 767px) {
  .vision-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   SERVICES
   ================================================== */
.services {
  padding: 20px 0 52px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.services article {
  box-shadow: 5px 5px 20px 0 rgba(0, 0, 0, 0.08);
}

.services-grid article {
  display: flex;
  padding: 28px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.services h5 {
  display: flex;
  min-height: 70px;
  margin: 0 0 18px;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
}

.services .primary-button {
  min-width: 125px;
  min-height: 40px;
  margin-top: 30px;
  padding: 0 18px;
  font-size: 0.875rem;
  font-weight: bold;
}

.loan-simulator {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: 26px 44px;
  text-align: center;
}

.loan-simulator h5 {
  align-self: center;
}

.loan-simulator .primary-button {
  margin: auto;
  color: #000000;
}

/* ==================================================
   TABLETTE COMPACTE
   ================================================== */
/* Responsive */
@media (max-width: 991px) {
  .services-grid,
  .loan-simulator {
    grid-template-columns: 1fr;
  }

  .loan-simulator .primary-button {
    justify-self: center;
  }

  /* Ajustements tablette paysage / petit ordinateur */
  .vision,
  .engagement,
  .reviews,
  .join,
  .support,
  .partners {
    margin-top: 35px;
  }

  .services {
    margin-top: 20px;
  }

  .services h5 {
    min-height: 48px;
    margin-bottom: 6px;
  }

  .services .primary-button {
    margin-top: 8px;
  }

  .engagement .frame,
  .support .frame {
    inset: 18px 24px;
    padding: 24px;
  }

  .engagement h2 {
    font-size: 1.75rem;
  }

  .engagement-title {
    margin-bottom: 12px;
  }

  .engagement p {
    max-width: 720px;
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .support h2 {
    margin-bottom: 18px;
    font-size: 2rem;
  }

  .support h3 {
    margin-bottom: 12px;
    line-height: 1.3;
  }

  .contact-info {
    grid-template-columns: minmax(0, 680px);
    justify-content: center;
    justify-items: stretch;
    padding-right: 24px;
    padding-left: 24px;
  }

  .contact-info article {
    align-items: center;
    text-align: center;
  }

  .contact-info address,
  .contact-info > img {
    min-height: 0;
  }
  /* Fin Ajustements tablette paysage / petit ordinateur */
}

.methodology-link {
  color: inherit;
  text-decoration: none;
}

.methodology-link:hover,
.methodology-link:focus {
  color: #478ac9;
  text-decoration: none;
}

/* ==================================================
   ENGAGEMENT
   ================================================== */
.engagement {
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
}

.engagement > img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center center;
  filter: brightness(50%);
}

.engagement .frame {
  position: absolute;
  inset: 24px 36px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 36px;
  color: #ffffff;
  text-align: center;
  border: 12px solid #f1c50e;
}

.engagement-title {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.engagement h2 {
  margin: 0;
  color: #ffffff;
}

.engagement p {
  max-width: 980px;
  margin: 0 auto;
  font-size: 1.5rem;
  line-height: 1.45;
}

/* ==================================================
   AVIS CLIENTS
   ================================================== */
.reviews[hidden] {
  display: none;
}

.reviews {
  padding: 34px 0 48px;
}

.reviews h2 {
  margin-bottom: 24px;
}

.reviews > div {
  width: 100%;
}

/* ==================================================
   NOUS REJOINDRE
   ================================================== */
.join {
  padding: 28px 0 54px;
}

.join > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 58px 110px;
  max-width: 980px;
  margin: 52px auto 0;
}

.join article {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.join h3 {
  margin: 0 auto;
  font-weight: normal;
}

/* Tablette */
@media (max-width: 767px) {
  .join > div {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

/* ==================================================
   RENDEZ-VOUS
   ================================================== */
.support {
  position: relative;
  overflow: hidden;
  margin-bottom: 56px;
}

.support > img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(50%);
}

.support .frame {
  position: absolute;
  inset: 24px 36px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 36px;
  color: #ffffff;
  text-align: center;
  border: 12px solid #f1c50e;
}

.support h2 {
  margin: 0 0 36px;
  color: #ffffff;
}

.support h3 {
  max-width: 500px;
  margin: 0 auto 18px;
  font-weight: normal;
  line-height: 1.45;
}

.support .primary-button {
  align-self: center;
  font-weight: bold;
}

/* ==================================================
   PARTENAIRES
   ================================================== */
.partners {
  padding: 30px 0 52px;
}

.partners > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.partners nav {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.partners a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 0;
  overflow: hidden;
  scroll-snap-align: start;
}

.partners img {
  width: 145%;
  max-width: none;
  height: auto;
  object-fit: contain;
}

.partners button {
  display: flex;
  width: 68px;
  height: 68px;
  padding: 0 0 6px;
  align-items: center;
  justify-content: center;
  color: #111111;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 56px;
  line-height: 1;
}

.partners button.is-hidden {
  visibility: hidden;
}

/* Tablette */
@media (max-width: 767px) {
  .partners nav {
    grid-auto-columns: 100%;
  }
}

/* ==================================================
   FAQ
   ================================================== */
.faq {
  position: relative;
  padding: 48px 0 58px;
  color: #ffffff;
  isolation: isolate;
}

.faq .section-background {
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: -2;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  object-fit: cover;
}

.faq::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  background:
    linear-gradient(rgba(28, 39, 43, 0.72), rgba(28, 39, 43, 0.72)),
    url("/assets/images/pages/laurene-gicquel-GVmK68j19K8-unsplash1.jpg")
      center / cover no-repeat;
}

.faq h2 {
  width: min(650px, calc(100% - 40px));
  margin: 0 auto 28px;
  color: #f1c50e;
  font-weight: bold;
}

.faq > div {
  width: min(512px, calc(100% - 40px));
  margin: 0 auto;
}

.faq-item + .faq-item {
  margin-top: 28px;
}

.faq summary {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 0 58px 0 28px;
  border-radius: 50px;
  color: #000000;
  background: #f1c50e;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
}

.faq summary:hover {
  color: #ffffff;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 26px;
  width: 12px;
  height: 12px;
  border-right: 2px solid #999999;
  border-bottom: 2px solid #999999;
  transform: rotate(45deg) translateY(-2px);
}

.faq-item[open] summary {
  background: #e8e8e8;
}

.faq-item[open] summary:hover {
  color: #000000;
  background: #f1c50e;
}

.faq p {
  width: min(466px, 100%);
  margin: 28px auto 0;
  color: #ffffff;
  line-height: 2;
}

.faq a {
  color: #f1c50e;
  font-weight: bold;
  text-decoration: none;
}

/* ==================================================
   CONTACT FINAL
   ================================================== */
.contact-info {
  display: grid;
  grid-template-columns: 390px 340px 360px;
  gap: 32px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 52px 0;
  color: #ffffff;
  background: #000000;
}

.contact-info article {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
}

.contact-info article p {
  max-width: 420px;
  margin: 0 auto;
}

.contact-info h4 {
  margin: 0;
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.2;
}

.contact-info .primary-button {
  align-self: center;
  font-weight: bold;
}

.contact-info address {
  box-sizing: border-box;
  min-height: 580px;
  margin: 0;
  padding: 28px;
  color: #ffffff;
  text-align: center;
  font-style: normal;
  background: #000000;
  border: 10px solid #f1c50e;
}

.contact-info address p {
  margin: 0 0 26px;
  font-weight: bold;
  line-height: 1.45;
}

.contact-info address a {
  color: #478ac9;
  font-weight: bold;
  text-decoration: none;
}

.contact-info address a:hover,
.contact-info address a:focus {
  color: #387cbd;
  text-decoration: underline;
}

.contact-info address nav {
  display: grid;
  gap: 8px;
}

.contact-info address h6:not(:first-child) {
  margin-top: 32px;
}

.contact-info > img {
  display: block;
  width: 100%;
  min-height: 580px;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

/* ==================================================
   DESKTOP ETROIT
   ================================================== */
/* Responsive */
@media (max-width: 1120px) {
  .contact-info {
    grid-template-columns: minmax(260px, 330px) minmax(300px, 340px) minmax(
        300px,
        360px
      );
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ==================================================
   TABLETTE COMPACTE
   ================================================== */
/* Responsive */
@media (max-width: 991px) {
  .contact-info {
    grid-template-columns: minmax(0, 680px);
    justify-content: center;
    justify-items: stretch;
  }

  .contact-info address,
  .contact-info > img {
    min-height: 0;
  }
}

/* Mobile */
@media (max-width: 575px) {
}
/* Tablette paysage / petit ordinateur */
@media (max-width: 991px) {
}

/* Corrections finales tablette paysage / petit ordinateur */
@media (max-width: 991px) {
  .services-grid article {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .services h5 {
    min-height: 44px;
    margin-bottom: 4px;
  }

  .services p {
    line-height: 1.35;
  }

  .services .primary-button {
    margin-top: 0;
  }

  .engagement .frame {
    inset: 18px 24px;
    padding: 24px;
  }

  .engagement h2 {
    font-size: 2rem;
  }

  .engagement-title {
    margin-bottom: 12px;
  }

  .engagement p {
    max-width: 900px;
    font-size: 1.35rem;
    line-height: 1.35;
  }
}

/* ==================================================
   MEDIA
   ================================================== */
@media (max-width: 575px) {
  .vision,
  .services,
  .engagement,
  .reviews,
  .join,
  .support,
  .partners {
    margin-top: 40px;
  }

  .vision h2 {
    font-size: 1.45rem;
  }

  .vision-grid,
  .services-grid,
  .join > div {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .vision-grid img {
    height: 190px;
  }

  .vision-grid article {
    padding: 24px;
  }

  .vision-grid > :nth-child(3) {
    order: 4;
  }

  .vision-grid > :nth-child(4) {
    order: 3;
  }

  .services {
    margin-top: 22px;
  }

  .services h2 {
    font-size: 1.6rem;
  }

  .services article {
    padding: 24px;
  }

  .services h5 {
    min-height: 0;
    margin-bottom: 18px;
    font-size: 1.15rem;
  }

  .services-grid .primary-button {
    margin-top: 18px;
  }

  .engagement > img,
  .support > img {
    height: 460px;
  }

  .engagement .frame,
  .support .frame {
    inset: 16px;
    padding: 18px;
    border-width: 8px;
  }

  .engagement-title {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    text-align: center;
  }

  .engagement-title .icon {
    transform: translateY(8px);
  }

  .engagement h2,
  .support h2 {
    font-size: 1.45rem;
  }

  .engagement p,
  .support h3 {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .join h2 {
    font-size: 1.55rem;
  }

  .join article {
    gap: 14px;
  }

  .join h3 {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  .partners a {
    min-height: 360px;
  }

  .partners img {
    width: 180%;
    max-height: 360px;
  }

  .faq {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .faq h2 {
    font-size: 1.55rem;
  }

  .support .primary-button {
    font-size: 0.875rem;
  }

  .faq summary {
    min-height: 58px;
    padding: 12px 48px 12px 24px;
  }

  .contact-info {
    grid-template-columns: 1fr;
    padding: 38px 20px;
  }

  .contact-info h4 {
    font-size: 1.35rem;
  }

  .contact-info address {
    padding: 24px;
  }

  .contact-info > img {
    min-height: 320px;
  }
}

/* ==================================================
   MEDIA
   ================================================== */
/* Mobile : ajustements accueil */
@media (max-width: 575px) {
  .services {
    margin-top: 0;
    padding-top: 0;
  }

  .engagement-title .icon {
    transform: translateY(18px);
  }

  .join .icon {
    margin-top: 18px;
    margin-bottom: 0;
  }

  .join article {
    gap: 8px;
  }

  .partners a {
    min-height: 390px;
  }

  .partners img {
    width: 260%;
    max-width: none;
    max-height: none;
  }

  .contact-info {
    box-sizing: border-box;
    width: min(100%, calc(100% - 24px));
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
    padding-left: 0;
    padding-right: 0;
  }

  .contact-info article,
  .contact-info address,
  .contact-info > img {
    width: 100%;
    max-width: 340px;
  }
}

/* ==================================================
   MOBILE - DERNIERS AJUSTEMENTS ACCUEIL
   ================================================== */
@media (max-width: 575px) {
  .home-page .banner .frame {
    width: min(250px, calc(100% - 72px));
    min-height: 0;
    margin-top: 12px;
    border-width: 5px;
  }

  .home-page .banner h1 {
    margin: 8px;
    padding: 6px 4px;
  }

  .home-page .banner-action {
    display: flex;
    width: 100%;
    justify-content: center;
    transform: translateY(-18px);
  }

  .home-page .banner-action .primary-button {
    margin-right: auto;
    margin-left: auto;
  }

  .engagement-title .icon {
    transform: translateY(26px);
  }

  .engagement .frame {
    padding: 14px;
  }

  .engagement-title {
    gap: 6px;
    margin-bottom: 8px;
  }

  .engagement h2 {
    font-size: 1.45rem;
    line-height: 1.1;
  }

  .engagement p {
    max-width: 100%;
    font-size: 0.92rem;
    line-height: 1.22;
  }

  .partners {
    margin-top: 24px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .partners h2 {
    margin-bottom: 10px;
  }

  .partners > div {
    position: relative;
    display: block;
  }

  .partners nav {
    width: 100%;
  }

  .partners a {
    min-height: 120px;
  }

  .partners img {
    width: 190%;
    max-width: none;
    max-height: none;
  }

  .partners button {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0 0 4px;
    transform: translateY(-50%);
    font-size: 44px;
  }

  .partners button:first-of-type {
    left: 0;
  }

  .partners button:last-of-type {
    right: 0;
  }

  .contact-info {
    box-sizing: border-box;
    width: 100%;
    justify-items: stretch;
    padding-right: 20px;
    padding-left: 20px;
  }

  .contact-info article,
  .contact-info address,
  .contact-info > img {
    width: 100%;
    max-width: none;
  }
}
