/* ===========================================================================
 * Pied de page du site (templates/footer.html), refonte 2026-10-01
 *
 * Servi sur TOUTES les pages, homepage comprise. Sur `/`, les feuilles du
 * prototype (home_e1/00 à 06) posent des resets d'ÉLÉMENT : `footer { padding;
 * background; border-top }`, `a { color: inherit }`, préflight Tailwind sur
 * `ul`/`h2`, `body` en serif 18px. Ailleurs, `style.css` pose `footer {
 * height: 50px }` et `tokens.css` un soulignement sur `a`. D'où :
 *   • tout est scopé sous `.vc-footer` (spécificité de classe, bat les
 *     sélecteurs d'élément quel que soit l'ordre de chargement) ;
 *   • chaque propriété que ces resets touchent est reposée explicitement
 *     (police, taille, couleur, marges, puces, hauteur).
 * ======================================================================== */

.vc-footer {
  --vcf-ui: var(--font-ui, Geist), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --vcf-text: var(--vefa-text, #0f172a);
  --vcf-muted: var(--vefa-text-muted, #475569);
  --vcf-border: var(--vefa-border, #e2e8f0);
  --vcf-bg: var(--vefa-bg-soft, #f8fafc);
  --vcf-link-hover: var(--vefa-primary-darker, #1f6396);

  box-sizing: border-box;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 56px 0 28px;
  background: var(--vcf-bg);
  border-top: 1px solid var(--vcf-border);
  color: var(--vcf-text);
  font-family: var(--vcf-ui);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.vc-footer *,
.vc-footer *::before,
.vc-footer *::after {
  box-sizing: border-box;
}

.vc-footer__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.vc-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --- Liens ------------------------------------------------------------- */
.vc-footer a {
  color: var(--vcf-muted);
  font-weight: 500;
  text-decoration: none;
  transition: color .15s ease;
}

.vc-footer a:hover {
  color: var(--vcf-link-hover);
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1.5px;
}

.vc-footer a:focus-visible,
.vc-footer button:focus-visible {
  outline: 2px solid var(--vefa-primary, #3498db);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Haut : marque + colonnes ---------------------------------------- */
.vc-footer__top {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) 3fr;
  gap: 48px;
}

.vc-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.vc-footer a.vc-footer__logo,
.vc-footer a.vc-footer__logo:hover {
  color: var(--vefa-accent, #ff4000);
  text-decoration: none;
}

.vc-footer__logo b {
  color: var(--vefa-brand-vefa, #5593b8);
  font-weight: 700;
}

.vc-footer__logo img {
  display: block;
  width: 34px;
  height: 34px;
}

.vc-footer__pitch {
  max-width: 320px;
  margin: 14px 0 20px;
  color: var(--vcf-muted);
  font-size: 14px;
  line-height: 1.6;
}

.vc-footer__social {
  display: flex;
  gap: 8px;
}

.vc-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--vcf-border);
  border-radius: 50%;
  background: var(--vefa-bg, #fff);
  font-size: 16px;
}

.vc-footer__social a:hover {
  border-color: var(--vefa-border-strong, #cbd5e1);
  text-decoration: none;
}

.vc-footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.vc-footer__title {
  margin: 0 0 14px;
  padding: 0;
  color: var(--vcf-text);
  font-family: var(--vcf-ui);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

.vc-footer__col li + li {
  margin-top: 10px;
}

/* Sur ordinateur le <summary> n'est qu'un titre : ni marqueur, ni repli. */
.vc-footer__col > summary {
  display: block;
  list-style: none;
  pointer-events: none;
}

.vc-footer__col > summary::-webkit-details-marker {
  display: none;
}

/* --- Villes ------------------------------------------------------------ */
.vc-footer__cities {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--vcf-border);
}

.vc-footer__cities ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.vc-footer__cities a {
  font-size: 13px;
}

.vc-footer a.vc-footer__more {
  color: var(--vefa-primary-darker, #1f6396);
  font-weight: 600;
}

/* --- Barre légale ------------------------------------------------------ */
.vc-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--vcf-border);
  color: var(--vcf-muted);
  font-size: 13px;
}

.vc-footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.vc-footer__legal a {
  font-size: 13px;
}

.vc-footer__cookies {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--vcf-muted);
  font-family: var(--vcf-ui);
  font-size: 13px;
  font-weight: 500;
  line-height: inherit;
  cursor: pointer;
}

.vc-footer__cookies:hover {
  color: var(--vcf-link-hover);
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 1023px) {
  .vc-footer__top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .vc-footer__pitch {
    max-width: 520px;
  }
}

@media (max-width: 767px) {
  .vc-footer {
    padding: 40px 0 24px;
  }

  .vc-footer__inner {
    padding: 0 16px;
  }

  /* Accordéon (modèle SeLoger, Airbnb) : à plat, les 4 colonnes faisaient
     1 160 px de haut à 390 px de large. Le JS du gabarit replie les
     <details> sous 768 px ; sans JS ils restent ouverts. */
  .vc-footer__nav {
    display: block;
    border-top: 1px solid var(--vcf-border);
  }

  .vc-footer__col {
    border-bottom: 1px solid var(--vcf-border);
  }

  .vc-footer__col > summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding-right: 32px;
    pointer-events: auto;
    cursor: pointer;
  }

  .vc-footer__col > summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    color: var(--vcf-muted);
    transform: rotate(45deg);
    transition: transform .2s ease;
  }

  .vc-footer__col[open] > summary::after {
    margin-top: -2px;
    transform: rotate(-135deg);
  }

  .vc-footer__col > summary .vc-footer__title {
    margin: 0;
    font-size: 15px;
  }

  .vc-footer__col ul {
    padding-bottom: 8px;
  }

  /* Cibles tactiles : 44 px de haut par lien. */
  .vc-footer__col li + li {
    margin-top: 0;
  }

  .vc-footer__col a,
  .vc-footer__legal a,
  .vc-footer__cookies {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .vc-footer__legal a,
  .vc-footer__cookies {
    display: inline-flex;
  }

  @media (prefers-reduced-motion: reduce) {
    .vc-footer__col > summary::after {
      transition: none;
    }
  }

  .vc-footer__social a {
    width: 44px;
    height: 44px;
  }

  /* L'accordéon se termine déjà par un filet : pas de second filet ici. */
  .vc-footer__cities {
    margin-top: 28px;
    padding-top: 0;
    border-top: 0;
  }

  .vc-footer__cities ul {
    gap: 0 18px;
  }

  .vc-footer__cities a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  .vc-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .vc-footer__legal ul {
    gap: 0 20px;
  }

  /* Connectés : la barre de navigation du bas (65 px, fixe) masquerait la
     barre légale. */
  .vc-footer--bottom-nav {
    padding-bottom: calc(24px + 65px + env(safe-area-inset-bottom, 0px));
  }
}
