/* ============================================================
   Alpha Courtage - pied de page du site (includes/pied.php)
   Chargé sur tout le site quand le pied de page est actif
   (body.acp-pied-on). Autonome : ne dépend ni de accueil.css ni de
   Divi. Reprend la maquette d'accueil validée (T-143, D-170).
   ============================================================ */
.acp-pied {
  --acp-nuit-fonce: #0c1028;
  --acp-jaune: #ffc700;
  --acp-titres: "Poppins", Helvetica, Arial, sans-serif;
  --acp-corps: "Open Sans", Arial, sans-serif;
  padding: 56px 0 28px;
  background: var(--acp-nuit-fonce);
  color: rgba(255, 255, 255, .75);
  font: 400 15px/1.6 var(--acp-corps);
}

.acp-pied *,
.acp-pied *::before,
.acp-pied *::after { box-sizing: border-box; }

.acp-pied p,
.acp-pied address,
.acp-pied ul { margin: 0; padding: 0; }

.acp-pied ul { list-style: none; }

.acp-pied li { margin: 0; padding: 0; }

.acp-pied li::before { content: none; }

.acp-pied a { color: #fff; }

.acp-pied a:focus-visible { outline: 2px solid var(--acp-jaune); outline-offset: 3px; }

.acp-pied address { font-style: normal; }

.acp-pied__wrap {
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
}

/* ============================================================
   Quatre colonnes : marque, Dunkerque, Lille, informations
   ============================================================ */
.acp-pied__grille {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}

.acp-pied__logo { display: block; width: 190px; height: auto; margin-bottom: 14px; }

.acp-pied__marque > p { max-width: 300px; }

.acp-pied__titre {
  margin-bottom: 8px !important;
  font: 600 15px var(--acp-titres);
  color: #fff;
}

.acp-pied__liens li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.acp-pied__liens--contact li a { text-decoration: underline; text-underline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  .acp-pied__liens li a:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* Réseaux sociaux (repris du pied de page Divi) */
.acp-pied__reseaux { display: flex; gap: 10px; margin-top: 16px !important; }

.acp-pied__reseaux a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  transition: border-color .2s ease, color .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .acp-pied__reseaux a:hover { border-color: var(--acp-jaune); color: var(--acp-jaune); }
}

.acp-pied__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================
   Mentions réglementaires et copyright
   ============================================================ */
.acp-pied__mentions {
  display: grid;
  gap: 10px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .7);
}

.acp-pied__bas {
  margin-top: 14px !important;
  font-size: 13px;
  color: rgba(255, 255, 255, .62);
}

/* ============================================================
   Pied de page Divi masqué (pied injecté par Divi Pixel et pied du
   thème), y compris sa flèche de retour en haut
   ============================================================ */
body.acp-pied-on #dipi-injected-footer,
body.acp-pied-on #main-footer,
body.acp-pied-on .et_pb_scroll_top { display: none !important; }

/* ============================================================
   Tablette et téléphone
   ============================================================ */
@media (max-width: 980px) {
  .acp-pied__grille { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .acp-pied { padding: 40px 0 24px; }
  .acp-pied__wrap { width: calc(100% - 32px); }
  .acp-pied__grille { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .acp-pied__marque,
  .acp-pied__infos { grid-column: 1 / -1; }
  .acp-pied__marque > p { display: none; }
  .acp-pied__infos .acp-pied__liens {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    line-height: 1.3;
  }
  .acp-pied__mentions { margin-top: 26px; font-size: 12.5px; }
}

/* Barre d'appel fixe des pages de l'extension : le bas du pied de page
   reste lisible au-dessus d'elle */
@media (max-width: 767px) {
  body.acp-pied-on:has(.acp-barre-mobile) .acp-pied { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .acp-pied__reseaux a { transition: none; }
}
