/* ==========================================================
   FOOTER — TITRES CUSTOM
========================================================== */

.footer-title-custom {
  font-family: 'Barlow Condensed', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1em;
  text-align: start;
  word-wrap: break-word;
  padding-bottom: 10px;
  margin: 0;
  color: #ffffff;
  text-transform: uppercase;
  box-sizing: border-box;
}

.footer-title-center {
  text-align: center;
  color: #ffffff !important;
}

.footer-center {
  text-align: center;
}

.footer-phone a {
  color: #ff3b3b;
  font-weight: 600;
  text-decoration: none;
}

/* ==========================================================
   FOOTER — SÉPARATEUR AU DESSUS DU SUPPORT
========================================================== */

.footer-support-row {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 30px;
  padding-top: 20px;
}

/* ==========================================================
   FOOTER — DESKTOP
========================================================== */

@media (min-width: 981px) {
  .et-l--footer h2 {
    margin-bottom: 16px !important;
  }
}

/* ==========================================================
   FOOTER — TABLETTE (768px → 980px)
========================================================== */

@media (min-width: 768px) and (max-width: 980px) {

  /* Espacement grille footer */
  .et-l--footer .et_pb_column:not(:nth-last-child(-n+2)) {
    margin-bottom: 32px !important;
  }

  /* Typo */
  .et-l--footer h2 {
    font-size: 17px !important;
    margin-bottom: 14px !important;
  }

  .et-l--footer a {
    line-height: 1.5 !important;
  }

  /* Ligne support */
  .footer-support-row {
    margin-top: -20px !important;
    padding-top: 16px !important;
  }

  /* Support en 2 colonnes */
.et-l--footer .footer-support-row.et_pb_row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 20px !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

  .et-l--footer .footer-support-row.et_pb_row > .et_pb_column {
    flex: 0 0 calc(50% - 10px) !important;
    width: calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }

  .et-l--footer .footer-support-row .et_pb_module {
    width: 100% !important;
  }

  .et-l--footer .footer-support-row .et_pb_image {
    margin-bottom: 16px !important;
  }

  .et-l--footer .footer-support-row h2,
  .et-l--footer .footer-support-row .footer-title-custom {
    margin-bottom: 12px !important;
  }

  /* Bloc liens centré visuellement */
  .et-l--footer .footer-links-row .et_pb_text_inner {
    width: auto !important;
    max-width: 100% !important;
    text-align: center !important;
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Titres + contenu centrés */
  .et-l--footer .footer-links-row h2,
  .et-l--footer .footer-links-row p,
  .et-l--footer .footer-links-row a {
    text-align: center !important;
  }

  /* Espace sous titre */
  .et-l--footer .footer-links-row h2 {
    margin-bottom: 0 !important;
  }

  .et-l--footer .footer-links-row h2 + p {
    margin-top: 18px !important;
  }
}

/* ==========================================================
   FOOTER — MOBILE (≤ 767px)
========================================================== */

@media (max-width: 767px) {

  /* Ligne liens en grille 2 colonnes */
  .et-l--footer .footer-links-row.et_pb_row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 28px !important;
    row-gap: 18px !important;
    align-items: start !important;
  }

  .et-l--footer .footer-links-row.et_pb_row .et_pb_column {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }

  /* Typo */
  .et-l--footer h2 {
    font-size: 18px !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: 0.05em;
  }

  .et-l--footer p {
    margin: 0 !important;
  }

  .et-l--footer a {
    display: block !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.2 !important;
  }

  .et-l--footer a:last-child {
    margin-bottom: 0 !important;
  }

  /* Ligne support */
  .footer-support-row {
    margin-top: -20px !important;
    padding-top: 16px !important;
  }

  /* Support en 2 colonnes */
  .et-l--footer .footer-support-row.et_pb_row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 20px !important;
  }

  .et-l--footer .footer-support-row.et_pb_row > .et_pb_column {
    flex: 0 0 calc(50% - 10px) !important;
    width: calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
    margin: 0 !important;
  }

  /* Bloc liens centré visuellement */
  .et-l--footer .footer-links-row .et_pb_text_inner {
    width: auto !important;
    max-width: 100% !important;
    text-align: center !important;
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Titres + contenu centrés */
  .et-l--footer .footer-links-row h2,
  .et-l--footer .footer-links-row p,
  .et-l--footer .footer-links-row a {
    text-align: center !important;
  }
}

/* ==========================================================
   FOOTER — SÉPARATEUR SOUS TITRES (TABLETTE + MOBILE)
========================================================== */

@media (max-width: 980px) {

  .et-l--footer .footer-links-row h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    margin: 10px auto 0 auto;
    background: linear-gradient(90deg,rgba(255,59,59,0) 0%,rgba(255,255,255,0.4) 40%,#ff3b3b 50%,rgba(255,255,255,0.4) 60%,rgba(255,59,59,0) 100%)
    ;
  }

}

/* ==========================================================
   FOOTER — TYPO TABLETTE
========================================================== */

@media (min-width: 768px) and (max-width: 980px) {

  /* Titres */
  .et-l--footer .footer-links-row h2 {
    font-size: 26px !important;
    letter-spacing: 0.06em;
  }

  /* Liens */
  .et-l--footer .footer-links-row a {
    font-size: 17px !important;
    line-height: 1.5 !important;
  }

}