/* ==========================================================
   FOOTER — RESET KADENCE FOOTER WRAPPERS
   Corrige les paddings et contraintes du Footer Builder
========================================================== */

.site-footer,
.site-footer-wrap,
.site-footer-section,
.site-middle-footer-wrap,
.site-middle-footer-inner-wrap,
.site-footer-row,
.site-footer-row-container-inner,
.site-footer-row-container-inner .site-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.site-footer-row,
.site-footer-section {
  min-height: 0 !important;
}

.site-footer-row.site-footer-row-columns-1 {
  display: block !important;
}

.site-footer .widget,
.site-footer .wp-block-html,
.site-footer .widget_block {
  margin: 0 !important;
}

/* ==========================================================
   FOOTER — FÉY-LOISIRS
========================================================== */

.fl-site-footer {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 4% 8%, rgba(248, 201, 0, 0.14), transparent 24%),
    radial-gradient(circle at 96% 88%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(135deg, #006F82 0%, #004F5D 100%);
  color: #ffffff;
}

.fl-site-footer,
.fl-site-footer * {
  box-sizing: border-box;
}

.fl-site-footer__inner {
  position: relative;
  overflow: hidden;
  padding: 54px 0 0;
}

.fl-site-footer__inner::before,
.fl-site-footer__inner::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.fl-site-footer__inner::before {
  left: -160px;
  top: -190px;
  width: 340px;
  height: 340px;
  background: rgba(255, 255, 255, 0.075);
}

.fl-site-footer__inner::after {
  right: -170px;
  bottom: -220px;
  width: 420px;
  height: 420px;
  background: rgba(248, 201, 0, 0.11);
}

.fl-site-footer .fl-container {
  position: relative;
  z-index: 1;
}

/* ==========================================================
   DESCRIPTION TABLETTE / MOBILE
========================================================== */

.fl-site-footer__mobile-description {
  display: none;
  max-width: 620px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
  line-height: 1.65;
  text-align: center;
}

/* ==========================================================
   STRUCTURE PRINCIPALE — DESKTOP
========================================================== */

.fl-site-footer__main {
  display: grid;
  grid-template-columns:
    minmax(170px, 0.55fr)
    minmax(280px, 1fr)
    minmax(280px, 1fr);
  gap: 70px;
  align-items: center;
  padding-bottom: 46px;
}

.fl-site-footer__brand,
.fl-site-footer__infos,
.fl-site-footer__social {
  min-width: 0;
}

.fl-site-footer__infos,
.fl-site-footer__social {
  text-align: left;
}

/* ==========================================================
   LOGO DESKTOP
========================================================== */

.fl-site-footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
}

.fl-site-footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.fl-site-footer__logo img {
  display: block;
  width: auto;
  max-width: 112px;
  max-height: 112px;
  object-fit: contain;
}

/* ==========================================================
   TITRES
========================================================== */

.fl-site-footer__title {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.fl-site-footer__title::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 11px;
  border-radius: 999px;
  background: var(--fl-secondary, #F8C900);
}

/* ==========================================================
   INFOS PRATIQUES
========================================================== */

.fl-site-footer__address {
  display: grid;
  gap: 5px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.58;
}

.fl-site-footer__address span:first-child {
  max-width: 310px;
  color: #ffffff;
  font-weight: 850;
}

.fl-site-footer__contact-link,
.fl-site-footer__contact-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 22px;
  color: var(--fl-secondary, #F8C900) !important;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 900;
  text-decoration: none;
  transition:
    gap 0.18s ease,
    color 0.18s ease;
}

.fl-site-footer__contact-link:hover,
.fl-site-footer__contact-link:focus-visible {
  gap: 12px;
  color: #ffffff !important;
}

/* ==========================================================
   RÉSEAUX SOCIAUX
========================================================== */

.fl-site-footer__social-text {
  max-width: 330px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.58;
}

.fl-site-footer__social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.fl-site-footer__social-links a,
.fl-site-footer__social-links a:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: #ffffff !important;
  font-size: 0.88rem;
  line-height: 1;
  font-weight: 900;
  text-decoration: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.fl-site-footer__social-links a:hover,
.fl-site-footer__social-links a:focus-visible {
  transform: translateY(-2px);
  background: var(--fl-secondary, #F8C900);
  border-color: var(--fl-secondary, #F8C900);
  color: #2e2600 !important;
}

/* ==========================================================
   BARRE BASSE — DESKTOP
========================================================== */

.fl-site-footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.fl-site-footer__copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.70);
  font-size: 0.88rem;
  line-height: 1.45;
}

.fl-site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  color: rgba(255, 255, 255, 0.70);
  font-size: 0.88rem;
  line-height: 1.45;
}

.fl-site-footer__legal a,
.fl-site-footer__legal a:visited,
.fl-site-footer__legal span {
  color: rgba(255, 255, 255, 0.70) !important;
  text-decoration: none;
}

.fl-site-footer__legal a:hover,
.fl-site-footer__legal a:focus-visible {
  color: var(--fl-secondary, #F8C900) !important;
}

.fl-site-footer__legal span {
  display: inline-flex;
}

/* ==========================================================
   TABLETTE
========================================================== */

@media (max-width: 1024px) {
  .fl-site-footer__inner {
    padding-top: 50px;
  }

  .fl-site-footer__inner::before {
    left: -210px;
    top: -220px;
  }

  .fl-site-footer__inner::after {
    right: -210px;
    bottom: -230px;
  }

  .fl-site-footer__mobile-description {
    display: block;
    max-width: 620px;
    margin: 0 auto 36px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    line-height: 1.65;
    text-align: center;
  }

  .fl-site-footer__brand {
    display: none;
  }

  .fl-site-footer__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: flex-start;
    max-width: 820px;
    margin-inline: auto;
    padding-bottom: 44px;
  }

  .fl-site-footer__infos,
  .fl-site-footer__social {
    width: 100%;
    text-align: left;
  }

  .fl-site-footer__social-text {
    max-width: 100%;
  }

  .fl-site-footer__bottom {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 0;
    text-align: center;
  }

  .fl-site-footer__copyright {
    text-align: center;
  }

  .fl-site-footer__legal {
    justify-content: center;
  }
}

/* ==========================================================
   MOBILE PREMIUM
========================================================== */

@media (max-width: 767px) {
  .fl-site-footer__inner {
    padding-top: 38px;
  }

  .fl-site-footer__inner::before,
  .fl-site-footer__inner::after {
    display: none;
  }

  .fl-site-footer__mobile-description {
    display: block;
    max-width: 320px;
    margin: 0 auto 26px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.94rem;
    line-height: 1.55;
    text-align: center;
  }

  .fl-site-footer__main {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 390px;
    margin-inline: auto;
    padding-bottom: 32px;
  }

  .fl-site-footer__brand {
    display: none;
  }

  .fl-site-footer__infos,
  .fl-site-footer__social {
    text-align: center;
  }

  .fl-site-footer__infos {
    padding: 22px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
  }

  .fl-site-footer__title {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 0.78rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.055em;
    text-align: center;
    text-transform: uppercase;
  }

  .fl-site-footer__title::after {
    width: 30px;
    height: 3px;
    margin: 9px auto 0;
  }

  .fl-site-footer__address {
    justify-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .fl-site-footer__address span:first-child {
    max-width: 280px;
    color: #ffffff;
    font-size: 0.96rem;
    line-height: 1.45;
    font-weight: 850;
  }

  .fl-site-footer__contact-link,
  .fl-site-footer__contact-link:visited {
    margin: 18px auto 0;
    color: var(--fl-secondary, #F8C900) !important;
    font-size: 0.94rem;
    font-weight: 900;
  }

  .fl-site-footer__social {
    padding-top: 4px;
  }

  .fl-site-footer__social-text {
    max-width: 300px;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .fl-site-footer__social-links {
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
  }

  .fl-site-footer__social-links a,
  .fl-site-footer__social-links a:visited {
    min-width: 104px;
    min-height: 42px;
    padding: 11px 16px;
    border-radius: 999px;
    font-size: 0.84rem;
  }

  .fl-site-footer__bottom {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 0 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
  }

  .fl-site-footer__copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center;
  }

  .fl-site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    max-width: 300px;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.8rem;
    line-height: 1.45;
    text-align: center;
  }

  .fl-site-footer__legal a,
  .fl-site-footer__legal a:visited,
  .fl-site-footer__legal span {
    color: rgba(255, 255, 255, 0.66) !important;
  }
}

/* ==========================================================
   TRÈS PETITS MOBILES
========================================================== */

@media (max-width: 480px) {
  .fl-site-footer__inner {
    padding-top: 36px;
  }

  .fl-site-footer__mobile-description {
    max-width: 290px;
    margin-bottom: 24px;
    font-size: 0.9rem;
  }

  .fl-site-footer__main {
    max-width: 100%;
    gap: 22px;
    padding-bottom: 30px;
  }

  .fl-site-footer__infos {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .fl-site-footer__address span:first-child {
    max-width: 260px;
  }

  .fl-site-footer__social-links a {
    min-width: 96px;
  }

  .fl-site-footer__legal {
    display: grid;
    gap: 7px;
    text-align: center;
  }
}