/**
 * Footer — variante DCF (.footer-layout--dcf)
 *
 * Reproduit fidèlement l'ancien footer codé en dur, en NEUTRALISANT les wrappers du
 * système de footer du thème qui, sinon, écrasaient le rendu :
 *   - footer#site-footer        = grille 12 colonnes + max-width:1400px + min-height:230px
 *   - .footer__inner.desktop-only = grille 12 colonnes (mon .footer-dcf y était coincé sur 1 colonne)
 *   - le fond venait de .fullwidth-background (hauteur ≈ 230px) + couleur ACF
 *
 * Ici on rétablit le rendu original : full-bleed, vert rgb(174,205,173) en dur, texte blanc,
 * plein écran (min-height:100vh), grille 338px | 1fr.
 *
 * Chargé APRÈS style.css (ne le modifie pas). Réversible : supprimer ce fichier + son enqueue
 * dans functions.php. À terme : porter ces règles dans la source SCSS RYW.
 *
 * NB : le fond/texte ne dépendent plus des champs ACF « Couleur de fond/texte » du menu
 * (ils sont codés en dur ici pour matcher l'ancien footer, comme avant).
 */

/* ---------- Conteneur : full-bleed vert plein écran (comme l'ancien .site-footer) ---------- */
footer#site-footer.footer-layout--dcf {
  display: block;
  max-width: none;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0;
  min-height: 100vh;
  background: rgb(174, 205, 173);
  color: #fff;
  overflow: hidden;
}

/* Le fond générique piloté par ACF n'est pas utilisé pour cette variante. */
footer#site-footer.footer-layout--dcf .fullwidth-background {
  display: none;
}

/* Neutralise les grilles 12 colonnes des wrappers internes. */
footer#site-footer.footer-layout--dcf .footer__inner {
  grid-column: auto;
  width: 100%;
}
footer#site-footer.footer-layout--dcf .footer__inner.desktop-only,
footer#site-footer.footer-layout--dcf .footer__inner.mobile-only {
  display: block;
}

/* ---------- Desktop : logo (gauche) | menu (haut) + Qualiopi (bas) à droite ---------- */
footer#site-footer.footer-layout--dcf .footer-dcf {
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 338px 1fr;
  align-items: stretch;
  gap: 32px;
}

footer#site-footer.footer-layout--dcf .footer-dcf__left {
  display: flex;
  align-items: flex-end;
}

footer#site-footer.footer-layout--dcf .footer-dcf__logo {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}
footer#site-footer.footer-layout--dcf .footer-dcf__logo img,
footer#site-footer.footer-layout--dcf .footer-dcf__logo svg {
  display: block;
  width: 338px;
  max-width: 100%;
  height: auto;
}

footer#site-footer.footer-layout--dcf .footer-dcf__right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  min-width: 240px;
  text-align: right;
}

/* Menu (footer/navigation/menu.php -> #footer-nav .footer-menu-list) */
footer#site-footer.footer-layout--dcf .footer-dcf__right #footer-nav {
  margin-top: 0;
  display: block;
}
footer#site-footer.footer-layout--dcf .footer-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
footer#site-footer.footer-layout--dcf .footer-menu-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
footer#site-footer.footer-layout--dcf .footer-menu-list a:hover,
footer#site-footer.footer-layout--dcf .footer-menu-list a:focus {
  text-decoration: underline;
}

footer#site-footer.footer-layout--dcf .footer-dcf__qualio img {
  display: block;
  width: 338px;
  max-width: 100%;
  height: auto;
}

/* ---------- Mobile (<= 900px : bascule .desktop-only / .mobile-only du thème) ---------- */
footer#site-footer.footer-layout--dcf .footer-dcf--mobile {
  box-sizing: border-box;
  width: 100%;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
footer#site-footer.footer-layout--dcf .footer-dcf--mobile .footer-dcf__logo img,
footer#site-footer.footer-layout--dcf .footer-dcf--mobile .footer-dcf__logo svg,
footer#site-footer.footer-layout--dcf .footer-dcf--mobile .footer-dcf__qualio img {
  width: 260px;
}
footer#site-footer.footer-layout--dcf .footer-dcf--mobile .footer-menu-list {
  flex-direction: column;
  gap: 16px;
}
