/* =======================================================
   PiloteCSE — footer.css
   VERSION : 1.0.2
   DATE    : 2026-02-04
   OBJET   : Footer plus dense (interlignes + marges resserrées)
             - Chargé OK (confirmé)
             - Focus : compacité / lisibilité
   ======================================================= */

:root{
  --pcse-footer-bg: #f6f8fb;
  --pcse-footer-border: #e5e7eb;
  --pcse-footer-text: #0f2940;
  --pcse-footer-muted: #64748b;
  --pcse-footer-link: #0b63a8;
  --pcse-footer-link-hover: #094f86;
}

/* CIBLAGE ROBUSTE */
footer,
.wp-site-blocks footer,
.wp-block-template-part footer,
footer[role="contentinfo"],
[role="contentinfo"]{
  background: var(--pcse-footer-bg) !important;
  color: var(--pcse-footer-text) !important;
  border-top: 1px solid var(--pcse-footer-border) !important;
}

/* Padding global du footer : RESSERRÉ */
footer .wp-block-group,
.wp-site-blocks footer .wp-block-group,
[role="contentinfo"] .wp-block-group{
  padding-bottom: 1.15rem !important;
}

/* Colonnes : gap réduit */
footer .wp-block-columns,
.wp-site-blocks footer .wp-block-columns,
[role="contentinfo"] .wp-block-columns{
  gap: 1.35rem !important;
}

/* Titres colonnes : plus compacts */
footer h1, footer h2, footer h3, footer h4,
.wp-site-blocks footer h1, .wp-site-blocks footer h2, .wp-site-blocks footer h3, .wp-site-blocks footer h4,
[role="contentinfo"] h1, [role="contentinfo"] h2, [role="contentinfo"] h3, [role="contentinfo"] h4{
  color: var(--pcse-footer-text) !important;
  font-weight: 850 !important;
  letter-spacing: 0.01em !important;

  margin: 0 0 0.55rem 0 !important; /* ↓ avant 0.9rem */
  line-height: 1.15 !important;
}

/* Paragraphes / éléments : interligne + marges resserrés */
footer p,
.wp-site-blocks footer p,
[role="contentinfo"] p{
  margin: 0.35rem 0 !important;
  line-height: 1.35 !important;
  color: var(--pcse-footer-muted) !important;
}

/* Listes : plus denses */
footer ul,
.wp-site-blocks footer ul,
[role="contentinfo"] ul{
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0.15rem 0 0 0 !important;
}

footer li,
.wp-site-blocks footer li,
[role="contentinfo"] li{
  margin: 0.28rem 0 !important;     /* ↓ avant 0.45rem */
  line-height: 0.4 !important;     /* ↓ interligne */
  color: var(--pcse-footer-muted) !important;
}

/* Liens : légèrement plus compacts */
footer a,
.wp-site-blocks footer a,
[role="contentinfo"] a{
  color: var(--pcse-footer-link) !important;
  text-decoration: none !important;
  font-weight: 650 !important;
}

footer a:hover,
.wp-site-blocks footer a:hover,
[role="contentinfo"] a:hover,
footer a:focus-visible,
.wp-site-blocks footer a:focus-visible,
[role="contentinfo"] a:focus-visible{
  color: var(--pcse-footer-link-hover) !important;
  text-decoration: underline !important;
  outline: none !important;
}

/* Séparateurs : plus fins/moins hauts */
footer hr, footer .wp-block-separator,
.wp-site-blocks footer hr, .wp-site-blocks footer .wp-block-separator,
[role="contentinfo"] hr, [role="contentinfo"] .wp-block-separator{
  border: none !important;
  border-top: 1px solid var(--pcse-footer-border) !important;
  margin: 0.9rem 0 !important;  /* ↓ avant 1.4rem */
  opacity: 1 !important;
}

/* Social : compact */
footer .wp-block-social-links,
.wp-site-blocks footer .wp-block-social-links,
[role="contentinfo"] .wp-block-social-links{
  gap: 0.45rem !important;
  margin-top: 0.25rem !important;
}

/* Mobile : encore plus serré */
@media (max-width: 900px){
  footer .wp-block-group,
  .wp-site-blocks footer .wp-block-group,
  [role="contentinfo"] .wp-block-group{
    padding-top: 1.10rem !important;
    padding-bottom: 1.00rem !important;
  }

  footer .wp-block-columns,
  .wp-site-blocks footer .wp-block-columns,
  [role="contentinfo"] .wp-block-columns{
    gap: 1.0rem !important;
  }
}
