/* ============================================================
   Section Financement — Modèle ESCO
   ============================================================ */

/* ── Variables ── */
.financing-section {
  --fin-bg:       #025253;
  --fin-accent:   #d4f7a5;
  --fin-white:    #fefefe;
  --fin-border:   rgba(221, 227, 225, 0.4);
  --fin-item-gap: 50px;
}

/* ── Wrapper extérieur (#F2F7F5) ── */
.financing-wrapper {
  background-color: #f2f7f5;
}

/* ── Wrapper principal ── */
.financing-section {
  background-color: var(--fin-bg);
  border-radius: 0 121px 0 0;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

/* ── Pattern décoratif background ── */
.financing-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url('../../img/financing_bg_pattern.png');
  background-repeat: repeat;
  background-size: 942px auto;
  background-position: top left;
  opacity: 0.2;
}


/* ── Conteneur centré ── */
.financing-section__inner {
  position: relative;
  z-index: 1;
  max-width: 1278px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

/* ============================================================
   Colonne gauche
   ============================================================ */

.financing-section__left {
  flex: 0 0 609px;
  max-width: 609px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 76px;
}

/* Label */
.financing-section__label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem; /* 20px */
  line-height: 1;
  color: var(--fin-accent);
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0;
}

/* Titre H2 */
.financing-section__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 2.25rem; /* 36px */
  line-height: 1.167; /* ~42px */
  letter-spacing: 0.5px;
  color: var(--fin-white);
  margin: 0;
}

/* Description (wysiwyg) */
.financing-section__desc {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--fin-white);
}

.financing-section__desc p,
.financing-section__desc li,
.financing-section__desc span {
  color: var(--fin-white);
  margin: 0 0 0.75em;
}

.financing-section__desc p:last-child {
  margin-bottom: 0;
}

.financing-section__desc strong,
.financing-section__desc b {
  font-weight: 600;
  color: var(--fin-white);
}

.financing-section__desc em,
.financing-section__desc i {
  font-style: italic;
  color: var(--fin-white);
}

.financing-section__desc a {
  color: var(--fin-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.financing-section__desc a:hover {
  opacity: 0.8;
  color: var(--fin-accent);
}

.financing-section__desc ul,
.financing-section__desc ol {
  margin: 0 0 0.75em 1.25em;
  padding: 0;
  color: var(--fin-white);
}

.financing-section__desc li {
  margin-bottom: 0.25em;
}

.financing-section__desc h1,
.financing-section__desc h2,
.financing-section__desc h3,
.financing-section__desc h4 {
  color: var(--fin-white);
  font-family: 'Montserrat', sans-serif;
  margin: 0 0 0.5em;
}

/* ── Lien "Découvrir le modèle ESCO" ── */
.financing-section__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1.25rem; /* 20px */
  line-height: 1;
  color: var(--fin-white);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.financing-section__link-label {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: letter-spacing 0.2s ease;
}

.financing-section__link-arrow {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: currentColor;
  transition: color 0.2s ease;
}

.financing-section__link:hover,
.financing-section__link:focus-visible {
  color: var(--fin-accent); /* #d4f7a5 */
}

.financing-section__link:hover .financing-section__link-label,
.financing-section__link:focus-visible .financing-section__link-label {
  letter-spacing: 0.3px;
}

/* ============================================================
   Colonne droite — liste d'avantages
   ============================================================ */

.financing-section__list {
  flex: 0 0 609px;
  max-width: 609px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--fin-item-gap);
}

/* ── Item ── */
.financing-item {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* Icône : carré vert clair 73px */
.financing-item__icon-wrap {
  flex-shrink: 0;
  width: 73px;
  height: 73px;
  background-color: var(--fin-accent);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.financing-item__icon {
  display: block;
  width: 37px;
  height: 37px;
  object-fit: contain;
}

/* Contenu texte */
.financing-item__content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.financing-item__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.25rem; /* 20px */
  line-height: 1.3;
  color: var(--fin-white);
  margin: 0;
}

.financing-item__desc {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 1rem; /* 16px */
  line-height: 1.406; /* ~22.5px */
  color: var(--fin-white);
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── ≤ 1280px ── */
@media (max-width: 1280px) {
  .financing-section {
    padding: 70px 0;
    border-radius: 0 80px 0 0;
  }

  .financing-section__left {
    flex: 0 0 460px;
    padding-top: 40px;
  }

  .financing-section__title {
    font-size: 2rem; /* 32px */
  }

  .financing-section__inner {
    gap: 40px;
  }
}

/* ── ≤ 1100px ── */
@media (max-width: 1100px) {
  .financing-section__left {
    flex: 0 0 380px;
    padding-top: 20px;
    gap: 30px;
  }

  .financing-section__inner {
    gap: 40px;
  }

  .financing-section__title {
    font-size: 1.75rem; /* 28px */
  }
}

/* ── Mobile (≤ 991px) ── */
@media (max-width: 991px) {
  .financing-section {
    padding: 50px 0;
    border-radius: 0 60px 0 0;
  }

  .financing-section__inner {
    flex-direction: column;
    gap: 40px;
  }

  .financing-section__left {
    flex: none;
    width: 100%;
    padding-top: 0;
    gap: 24px;
  }

  .financing-section__label {
    font-size: 1rem; /* 16px */
  }

  .financing-section__title {
    font-size: 1.625rem; /* 26px */
    letter-spacing: 0;
  }

  .financing-section__desc {
    font-size: 1rem; /* 16px */
  }

  /* Lien en bas sur mobile → visible sous la liste */
  .financing-section__link {
    order: 10;
    font-size: 1rem; /* 16px */
  }

  .financing-section__list {
    width: 100%;
    gap: 32px;
    /* Sur mobile, la liste s'affiche avant le lien grâce à order */
  }

  /* Réorganisation colonne gauche sur mobile : lien après la liste */
  .financing-section__inner {
    display: flex;
    flex-direction: column;
  }

  .financing-item__title {
    font-size: 1.0625rem; /* 17px */
  }

  .financing-item__icon-wrap {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
  }

  .financing-item__icon {
    width: 28px;
    height: 28px;
  }
}

/* ── Petit mobile (≤ 575px) ── */
@media (max-width: 575px) {
  .financing-section {
    border-radius: 0 40px 0 0;
  }
}
