/* Phase 2 – brand footer (navy / light-blue / white). Colours match custom.css brand palette. */
footer.footer-yfs {
  background: #005f73;
  color: rgba(255, 255, 255, 0.85);
}
footer.footer-yfs .footer {
  padding-top: 48px;
  padding-bottom: 24px;
}
footer.footer-yfs .footer-title {
  color: #56cfe1;
  font-weight: 600;
  letter-spacing: 0.02em;
}
footer.footer-yfs .footer-content,
footer.footer-yfs .footer-content p,
footer.footer-yfs .footer-contact span,
footer.footer-yfs .footer-contact a,
footer.footer-yfs .footer-content a {
  color: rgba(255, 255, 255, 0.9) !important;
}
footer.footer-yfs .footer-content a:hover,
footer.footer-yfs .footer-contact a:hover {
  color: #56cfe1 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer.footer-yfs .footer-content i[data-feather],
footer.footer-yfs .footer-contact i {
  color: #56cfe1;
}
footer.footer-yfs .footer-details img {
  max-height: 56px;
  width: auto;
  margin-bottom: 12px;
}
footer.footer-yfs .sub-footer {
  background: #001d3d;
  border-top: 1px solid rgba(86, 207, 225, 0.25);
}
footer.footer-yfs .sub-footer .copy-right p,
footer.footer-yfs .sub-footer .footer-social a {
  color: rgba(255, 255, 255, 0.75);
}
footer.footer-yfs .sub-footer .footer-social a:hover {
  color: #56cfe1;
}
/* Fade-in on scroll; respect reduced motion */
footer.footer-yfs.yfs-footer-ready {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
footer.footer-yfs.yfs-footer-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  footer.footer-yfs.yfs-footer-ready,
  footer.footer-yfs.yfs-footer-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Phase 2 – gap between last page section and footer (tightened 2026-11-05 phone follow-up) */
footer.footer-yfs {
  margin-top: 1.25rem;
}
/* Home "Toutes les actualités" and similar last-section CTAs — keep a small cushion, avoid a large white band */
.blog-section.section-b-space,
.section-b-space:last-of-type {
  padding-bottom: 1.5rem;
}
.blog-section .row.mt-3 {
  margin-bottom: 0.75rem;
}
@media (max-width: 767.98px) {
  footer.footer-yfs {
    margin-top: 0.75rem;
  }
  footer.footer-yfs .footer {
    padding-top: 28px;
  }
  .blog-section.section-b-space,
  .section-b-space:last-of-type {
    padding-bottom: 1rem;
  }
  /* Phone: stacked footer columns, no accordion chrome */
  footer.footer-yfs .footer-links .footer-title {
    pointer-events: none;
    cursor: default;
    margin-bottom: 0.35rem;
  }
  footer.footer-yfs .footer-links .footer-title .according-menu,
  footer.footer-yfs .footer-links .footer-title span.according-menu,
  footer.footer-yfs .footer-links .footer-title span {
    display: none !important;
  }
  footer.footer-yfs .footer-links .footer-content {
    display: block !important;
    height: auto !important;
    margin-top: 0.5rem !important;
  }
  /* Credit line must wrap fully. */
  footer.footer-yfs .sub-footer .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }
  footer.footer-yfs .sub-footer .copy-right,
  footer.footer-yfs .sub-footer .copy-right p {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    text-align: center;
    line-height: 1.45;
  }
  /* Clear iOS Safari bottom toolbar (~3.25rem when expanded) + home-indicator safe-area.
     Extra empty space when the toolbar collapses on scroll is OK; covered copyright is not. */
  footer.footer-yfs .sub-footer {
    overflow: visible;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px) + 3.25rem);
  }
  footer.footer-yfs .footer {
    padding-bottom: 1.25rem;
  }
}
@media (max-width: 576px) {
  footer.footer-yfs {
    margin-top: 0.5rem;
  }
  .blog-section.section-b-space,
  .section-b-space:last-of-type {
    padding-bottom: 0.75rem;
  }
}
