/* défilement doux pour les ancres (#services etc.) */
html {
  scroll-behavior: smooth;
}

/* ===================== */
/*  FOOTER VEROrganise   */
/* ===================== */

.vf-footer {
  --bg:#191919;
  --fg:#f4f4f4;
  --muted:#cfcfcf;
  --accent:#B4CD47;
  --hover:#cfcfcf;
  --line:#2a2a2a;

  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  padding: 48px 20px 32px;
  border-top: 3px solid var(--accent);
}

.vf-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 36px;
  grid-template-columns: 1.1fr 1fr 1fr;
  align-items: start;
}

/* --- Colonne 1 : logo + slogan --- */
.vf-brand a img {
  width: 260px;
  height: auto;
  display: block;
  margin-bottom: 14px;
}

.vf-slogan {
  margin: 6px 0 18px;
  color: #ffffff;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* --- Réseaux sociaux --- */
.vf-social {
  display: flex;
  gap: 18px;
  align-items: center;
}
.vf-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}
.vf-social .icon {
  width: 45px;
  height: 45px;
  background-color: var(--accent);
  -webkit-mask: var(--icon) center/contain no-repeat;
  mask: var(--icon) center/contain no-repeat;
  transition: background-color .2s ease;
}
.vf-social a:hover .icon {
  background-color: #ffffff;
}

/* Fallback si navigateur ne supporte pas mask */
@supports not (-webkit-mask: url("")) {
  .vf-social .icon {
    display: none;
  }
  .vf-social img {
    display: block;
    width: 30px;
    height: 30px;
    filter: brightness(0) saturate(100%) invert(79%) sepia(51%) saturate(440%) hue-rotate(34deg) brightness(95%) contrast(89%);
  }
  .vf-social a:hover img {
    filter: brightness(0) invert(1);
  }
}

/* --- Titres de colonnes ("Menu", "Nous joindre") --- */
.vf-title {
  margin: 0 0 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 1.05rem;
  position: relative;
  display: inline-block;
}
.vf-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 46%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* --- Colonne 2 : Nous joindre --- */
.vf-contact a {
  color: var(--fg);
  text-decoration: none;
  transition: color .2s;
}

/* Courriel = blanc, hover vert */
.vf-contact a[href^="mailto:"] {
  color: #ffffff;
}
.vf-contact a[href^="mailto:"]:hover,
.vf-contact a[href^="tel:"]:hover {
  color: var(--accent);
}

/* --- Colonne 3 : menu + OPC --- */
.vf-navhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.vf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

/* Liens du menu footer : gris pâle → vert au hover */
.vf-list a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.vf-list a:hover {
  color: var(--accent);
}

/* Bloc OPC (logo membre) */
.vf-opc {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  text-decoration: none;
  margin-top: 0;
}
.vf-opc img {
  height: 120px;
  width: auto;
  display: block;
  margin-bottom: 6px;
  margin-top: 2px;
}
.vf-opc span {
  font-size: .85rem;
  color: var(--muted);
}

/* --- Bas du footer : droits + liens légaux --- */
.vf-legal {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}

.vf-legal-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.vf-legal-links a {
  color: var(--muted);
  text-decoration: none;
}
.vf-legal-links a:hover {
  color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 920px) {
  .vf-wrap {
    grid-template-columns: 1fr 1fr;
  }
  .vf-brand {
    grid-column: 1 / -1;
  }
  .vf-opc img {
    height: 100px;
  }
}

@media (max-width: 560px) {
  .vf-wrap {
    grid-template-columns: 1fr;
  }
  .vf-opc img {
    height: 90px;
  }
  .vf-social a {
    width: 38px;
    height: 38px;
  }
  .vf-social .icon {
    width: 28px;
    height: 28px;
  }
}
