/* =========================================================
   INTM — Footer multilingue ([intm_footer], inc/footer.php)
   Breakpoints : 1024 (tablette) / 600 (mobile), comme le reste du site.
   Lisibilité sur fond bleu nuit : textes +20 % (cf. tailles en rem ci-dessous),
   graisse réglable via --f-fw (texte) et --f-fw-title (titres de colonnes).
   ========================================================= */

/* Les conteneurs Divi (section/ligne/colonne/module du Pied de page global)
   ne doivent ni borner ni espacer le footer : il gère sa propre largeur. */
.et_pb_section:has(.intm-footer):not(#x):not(#y),
.et_pb_row:has(.intm-footer):not(#x):not(#y),
.et_pb_column:has(.intm-footer):not(#x):not(#y),
.et_pb_module:has(.intm-footer):not(#x):not(#y),
.et_pb_code_inner:has(.intm-footer):not(#x):not(#y) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.et_pb_column:has(.intm-footer):not(#x):not(#y) { flex: 0 0 100% !important; }

.intm-footer {
  --f-bg: #020d20;
  --f-fw: 500;          /* graisse des textes (400 avant) */
  --f-fw-title: 600;    /* graisse des titres de colonnes (400 avant) */
  background: var(--f-bg);
  color: #fff;
  font-family: 'larken', Georgia, serif;
  font-weight: var(--f-fw);
  padding: 4.7rem 0 2.5rem;
  box-sizing: border-box;
}
.intm-footer *,
.intm-footer *::before,
.intm-footer *::after { box-sizing: border-box; }

/* Desktop : marges de 55px comme les autres sections, contenu plafonné à 1516px
   (largeur mesurée sur la maquette à 1993px d'écran). */
.intm-footer__inner {
  width: calc(100% - 110px);
  max-width: 1516px;
  margin: 0 auto;
  padding: 0;
}

/* ── Colonnes ── */
.intm-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));   /* 4 colonnes égales */
  gap: 3rem clamp(2rem, 4.2vw, 5.25rem);
}
.intm-footer__col { min-width: 0; }

.intm-footer__logo { display: inline-block; margin: 0 0 1.5rem; }
.intm-footer__logo img { display: block; width: 160px; height: auto; max-width: 100%; }

.intm-footer .footer-baseline {
  font-size: 1.02rem;
  font-weight: var(--f-fw);
  line-height: 1.6;
  color: #fff;
  margin: 0 0 1rem;
}

.intm-footer .footer-tagline {
  font-size: 1.02rem;
  font-weight: var(--f-fw);
  line-height: 2;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 1.5rem;
}

.intm-footer .footer-isos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.5rem 0 0;
}
.intm-footer .footer-isos span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: var(--f-fw);
  letter-spacing: 0.06em;
  padding: 10px 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.intm-footer .footer-col-title {
  font-family: 'larken', Georgia, serif;
  font-size: 0.8rem;
  font-weight: var(--f-fw-title);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.9rem;
  padding: 0;
}
.intm-footer .footer-col-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1rem;      /* léger retrait des liens sous le titre (desktop) */
}
.intm-footer .footer-col-list li:not(#x):not(#y) {
  margin: 0 0 1rem;
  padding: 0;
  line-height: 1.6;
}
.intm-footer .footer-col-list a {
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: var(--f-fw);
  transition: color 0.2s;
}
.intm-footer .footer-col-list a:hover { color: #fafafa; }

/* ── Bas de footer : trait, mentions légales, réseaux ── */
.intm-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  margin-top: 3.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.intm-footer .footer-legal,
.intm-footer .footer-legal a {
  font-size: 0.96rem;
  font-weight: var(--f-fw);
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}
.intm-footer .footer-legal a:hover { color: rgba(255, 255, 255, 0.7); }

.intm-footer__social {
  display: flex;
  gap: 44px;
  list-style: none;
  margin: 0 42px 0 0;
  padding: 0;
}
.intm-footer__social li { margin: 0; padding: 0; }

/* Pas de puces : le thème / Divi peuvent en poser sur les li (ou en ::before). */
.intm-footer ul:not(#x):not(#y),
.intm-footer ul:not(#x):not(#y) li {
  list-style: none;
  list-style-type: none;
  background-image: none;
}
.intm-footer ul:not(#x):not(#y) li::marker { content: none; }
.intm-footer ul:not(#x):not(#y) li::before,
.intm-footer ul:not(#x):not(#y) li::after { content: none; display: none; }
.intm-footer .rs-link {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.intm-footer .rs-link:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fafafa;
}
.intm-footer a:focus-visible { outline: 2px solid #e84c1c; outline-offset: 3px; }

/* ── Tablette et mobile ── */
@media (max-width: 1024px) {
  .intm-footer { padding: 4rem 0 2rem; }
  .intm-footer__inner { width: 100%; max-width: none; padding: 0 40px; }
  .intm-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }
  .intm-footer__col--brand { grid-column: 1 / -1; }
  .intm-footer__logo img { width: 130px; }
  .intm-footer .footer-col-list { padding-left: 0; }
  .intm-footer__social { gap: 12px; margin-right: 0; }
  .intm-footer .rs-link { width: 44px; height: 44px; }
  .intm-footer .footer-tagline { line-height: 1.8; }

  /* cibles tactiles confortables */
  .intm-footer .footer-col-title { margin-bottom: 0.4rem; }
  .intm-footer .footer-col-list li:not(#x):not(#y) { margin-bottom: 0; }
  .intm-footer .footer-col-list a { display: inline-block; padding: 0.7rem 0; }
  .intm-footer .footer-legal a { display: inline-block; padding: 0.5rem 0; }
}

@media (max-width: 600px) {
  .intm-footer { padding: 3rem 0 2rem; }
  .intm-footer__inner { padding: 0 20px; }
  .intm-footer__cols { grid-template-columns: 1fr; gap: 2rem; }
  .intm-footer__bottom { margin-top: 2.5rem; flex-direction: column; align-items: flex-start; }
}
