/*
 * Pied de page partagé
 * Structure, liens et réseaux sociaux du footer. Les contenus proviennent des blocs du pied de page.
 * Chargement : functions.php ; règles conservées dans leur ordre de cascade.
 */
/* 01. Enveloppe : couleurs, typographie et marges du footer. */
.lgr-footer {
  --footer-muted: #999;
  background: var(--lgr-color-charcoal);
  color: var(--footer-text);
  padding: 64px 80px 32px;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 12px;
  line-height: normal;
}
/* 02. Contenu centré : largeur maximale et empilement des rangées. */
.lgr-footer .footer-inner {
  max-width: 1920px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.lgr-footer .wp-block-group,
.lgr-footer p,
.lgr-footer .footer-divider {
  margin-block: 0;
}
/* 03. Rangée supérieure : marque, coordonnées et réseaux sociaux. */
.lgr-footer .footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.lgr-footer .footer-brand,
.lgr-footer .footer-column,
.lgr-footer .footer-contact,
.lgr-footer .footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.lgr-footer .footer-brand,
.lgr-footer .footer-social {
  gap: 8px;
}
.lgr-footer .footer-column {
  gap: 16px;
}
.lgr-footer .footer-contact {
  gap: 4px;
}
/* 04. Hiérarchie typographique : marque, signature et libellés de colonnes. */
.lgr-footer .footer-brand-name {
  font-family: var(--wp--preset--font-family--cormorant);
  font-size: var(--wp--preset--font-size--size-32);
}
.lgr-footer .footer-tagline,
.lgr-footer .footer-label,
.lgr-footer .footer-bottom {
  font-family: var(--wp--preset--font-family--montserrat-alternates);
}
.lgr-footer .footer-tagline {
  color: var(--footer-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.lgr-footer .footer-label {
  color: var(--lgr-color-coral);
  font-size: var(--wp--preset--font-size--size-12);
  letter-spacing: 0.08em;
}
/* 05. Liens : soulignement progressif au survol et au focus clavier. */
.lgr-footer a {
  color: inherit;
  text-decoration: none;
  position: relative;
  display: inline-block;
}
.lgr-footer a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 220ms ease-out;
}
.lgr-footer a:focus-visible::after {
  clip-path: inset(0);
}
@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {
  .lgr-footer a:hover::after {
    clip-path: inset(0);
  }
}
/* 06. Accessibilité : rendre le soulignement immédiat. */
@media (prefers-reduced-motion: reduce) {
  .lgr-footer a::after {
    transition: none;
  }
}
/* 07. Rangée inférieure : filet, copyright et liens légaux. */
.lgr-footer .footer-divider {
  width: 100%;
  max-width: none;
  height: 1px;
  border: 0;
  background: rgb(247 247 245 / 15%);
}
.lgr-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--footer-muted);
  font-size: 12px;
}
/* 08. Tablette : autoriser le retour à la ligne des rangées. */
@media (max-width: 900px) {
  .lgr-footer {
    padding-inline: 32px;
  }
  .lgr-footer .footer-top {
    flex-wrap: wrap;
  }
  .lgr-footer .footer-bottom {
    flex-wrap: wrap;
  }
}
/* 09. Mobile : empiler les colonnes et autoriser les liens longs. */
@media (max-width: 599px) {
  .lgr-footer {
    padding: 48px 24px 32px;
  }
  .lgr-footer .footer-top,
  .lgr-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .lgr-footer .footer-legal {
    line-height: 1.8;
  }
  .lgr-footer a {
    overflow-wrap: anywhere;
  }
}
/* 10. Réseaux sociaux : grille dédiée qui complète la disposition générale déclarée plus haut. */
.lgr-footer .footer-social {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 24px;
}
.lgr-footer .footer-network {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lgr-footer .footer-social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
}
.lgr-footer .footer-social-link img {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  object-fit: contain;
}
/* 11. Réseaux sur mobile : une colonne et zones cliquables agrandies. */
@media (max-width: 599px) {
  .lgr-footer .footer-social {
    grid-template-columns: minmax(0, 1fr);
  }
  .lgr-footer .footer-social-link {
    min-height: 44px;
  }
}
/* 12. Tactile : supprimer le soulignement animé des liens. */
@media (max-width: 599px), (hover: none) {
  .lgr-footer a::after {
    content: none;
  }
}
