/**
 * Pied de page marketing custom — css_footer_custom = 99.
 * Réseaux : @import (pages sans main custom — tokens via root dans socials-unified).
 */
@import url("../modules/socials-unified.css");

#footer.pfcustom-footer {
  position: relative;
  color: var(--pfcustom-text);
  overflow: hidden;
  background: var(--pfcustom-header-bar-bg);
  backdrop-filter: var(--pfcustom-glass-blur-filter);
  -webkit-backdrop-filter: var(--pfcustom-glass-blur-filter);
  border-top: var(--pfcustom-glass-border);
  text-align: left;
}

/* Même surface unie que le header — sans ciel étoilé / constellations */
#portfolio_page #footer.pfcustom-footer.pfcustom-night-sky-host .pfcustom-night-sky,
#portfolio_page #footer.pfcustom-footer .pfcustom-constellation-field {
  display: none !important;
}

#footer.pfcustom-footer .pfcustom-footer__inner {
  position: relative;
  z-index: 1;
  padding-top: 3rem;
  padding-bottom: 2rem;
  text-align: left;
}

#footer.pfcustom-footer .pfcustom-footer__grid {
  align-items: start;
  justify-items: start;
}

#footer.pfcustom-footer .pfcustom-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--pfcustom-space-footer-brand-gap);
}

#footer.pfcustom-footer .pfcustom-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--pfcustom-color-white);
  font-weight: var(--pfcustom-type-h1-weight);
  font-family: var(--pfcustom-font-family-sans);
}

#footer.pfcustom-footer .pfcustom-brand__mark {
  flex-shrink: 0;
}

#footer.pfcustom-footer .pfcustom-brand__logo {
  height: 26px;
  max-width: 160px;
  display: block;
  object-fit: contain;
}

#footer.pfcustom-footer .pfcustom-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pfcustom-space-header-actions-gap);
}

/* Boutons hors pastilles auth (taille pied) ; pastilles = même gabarit que le header */
#footer.pfcustom-footer .pfcustom-footer__actions .pfcustom-btn:not(.pfcustom-header__pill) {
  padding: var(--pfcustom-btn-padding);
}

#footer.pfcustom-footer .pfcustom-footer__actions .pfcustom-header__pill.pfcustom-btn {
  padding: 0.55rem 1.15rem;
}

#footer.pfcustom-footer .pfcustom-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

#footer.pfcustom-footer .pfcustom-footer__links li {
  margin-bottom: var(--pfcustom-space-footer-links-mb);
}

#footer.pfcustom-footer .pfcustom-footer__links a {
  color: var(--pfcustom-rgba-white-65);
  text-decoration: none;
}

#footer.pfcustom-footer .pfcustom-footer__links a:hover {
  color: var(--pfcustom-color-white);
}

#portfolio_page #footer.pfcustom-footer .pfcustom-footer__social {
  margin-top: 0.75rem;
}

/*
 * Liste ul.social-medias (structure/socials.php) : voir socials-unified.css
 */

/* Bloc légal intégré au footer custom (id distinct du footer#legal global dans structure/footer.php) */
#footer.pfcustom-footer #pfcustom-footer-legal.pfcustom-footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: var(--pfcustom-page-border-width) solid var(--pfcustom-page-border-color);
}

/* Évite le doublon : structure/footer.php inclut toujours un second footer#legal après le footer custom */
#footer.pfcustom-footer:has(nav.pfcustom-footer__legal) + footer#legal {
  display: none !important;
}

#footer.pfcustom-footer .pfcustom-footer__legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.35rem 1.25rem;
  text-align: left;
}

#footer.pfcustom-footer .pfcustom-footer__legal-list li {
  margin: 0;
}

#footer.pfcustom-footer .pfcustom-footer__legal-list a {
  color: var(--pfcustom-rgba-white-55);
  text-decoration: none;
  transition: color 0.2s ease;
}

#footer.pfcustom-footer .pfcustom-footer__legal-list a:hover {
  color: var(--pfcustom-color-white);
}

@media (prefers-reduced-motion: reduce) {
  #footer.pfcustom-footer .pfcustom-footer__legal-list a {
    transition: none;
  }
}

@media screen and (max-width: 650px) {
  #footer.pfcustom-footer .pfcustom-footer__actions {
    justify-content: flex-start;
  }
}

#portfolio_page #footer.pfcustom-footer a.pfcustom-brand,
#portfolio_page #footer.pfcustom-footer a.pfcustom-brand > span:not([aria-hidden="true"]) {
  line-height: 1.35 !important;
  letter-spacing: normal !important;
}

#portfolio_page #footer.pfcustom-footer .pfcustom-footer__col h3 {
  margin: 0 0 1rem;
  line-height: 1.35 !important;
  font-weight: var(--pfcustom-type-h3-weight);
  color: var(--pfcustom-text);
  text-align: left;
}

#portfolio_page #footer.pfcustom-footer .pfcustom-footer__links a {
  line-height: 1.45 !important;
}

#portfolio_page #footer.pfcustom-footer .pfcustom-footer__legal-list a {
  line-height: 1.45 !important;
}

#portfolio_page #footer.pfcustom-footer .pfcustom-footer__actions .pfcustom-btn:not(.pfcustom-header__pill) {
  line-height: 1.25 !important;
  padding: 0.45rem 0.95rem !important;
  letter-spacing: normal !important;
}

#portfolio_page #footer.pfcustom-footer .pfcustom-footer__actions .pfcustom-header__pill.pfcustom-btn {
  line-height: 1.25 !important;
  padding: 0.55rem 1.15rem !important;
  letter-spacing: normal !important;
}

/* Mode éditeur : hub + fonts.css chargés après — même règles, spécificité accrue. */
body.portfolio-editor #webpage-simulation #portfolio_page #footer.pfcustom-footer a.pfcustom-brand,
body.portfolio-editor #webpage-simulation #portfolio_page #footer.pfcustom-footer a.pfcustom-brand > span:not([aria-hidden="true"]) {
  line-height: 1.35 !important;
  letter-spacing: normal !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page #footer.pfcustom-footer .pfcustom-footer__col h3 {
  margin: 0 0 1rem !important;
  line-height: 1.35 !important;
  font-weight: var(--pfcustom-type-h3-weight) !important;
  color: var(--pfcustom-text) !important;
  text-align: left !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page #footer.pfcustom-footer .pfcustom-footer__links a {
  line-height: 1.45 !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page #footer.pfcustom-footer .pfcustom-footer__legal-list a {
  line-height: 1.45 !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page #footer.pfcustom-footer .pfcustom-footer__actions .pfcustom-btn:not(.pfcustom-header__pill) {
  line-height: 1.25 !important;
  padding: 0.45rem 0.95rem !important;
  letter-spacing: normal !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page #footer.pfcustom-footer .pfcustom-footer__actions .pfcustom-header__pill.pfcustom-btn {
  line-height: 1.25 !important;
  padding: 0.55rem 1.15rem !important;
  letter-spacing: normal !important;
}

