/* ============================================================
   Footer — Pied de page Powesco
   ============================================================ */

/* ── Variables ── */
.site-footer {
  --footer-bg: #025253;
  --footer-text: #fefefe;
  --footer-accent: #21b593;
  --footer-muted: rgba(255, 255, 255, 0.7);
  --footer-separator: rgba(255, 255, 255, 0.1);
  --footer-link-hover: #21b593;
}

/* ── Wrapper principal ── */
.site-footer {
  background-color: var(--footer-bg);
  padding: 150px 0 70px;
}

/* ── Ligne principale : brand + nav ── */
.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  gap: 60px;
}

/* ── Colonne gauche : logo + contact ── */
.site-footer__brand {
  flex: 0 0 518px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Logo */
.site-footer__logo {
  display: inline-block;
  text-decoration: none;
}

.site-footer__logo-img {
  display: block;
  width: 276px;
  height: auto;
}

.site-footer__logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--footer-text);
}

/* ── Réseaux sociaux ── */
.site-footer__socials {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-left: 50px;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.site-footer__social-link:hover {
  opacity: 1;
  color: var(--footer-accent);
}

/* ── Contact ── */
.site-footer__contact {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 50px;
}

.site-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__contact-item--address {
  align-items: flex-start;
}

.site-footer__contact-item--address .site-footer__contact-icon {
  margin-top: 3px;
  flex-shrink: 0;
}

.site-footer__contact-icon {
  display: inline-flex;
  align-items: center;
  color: var(--footer-text);
  flex-shrink: 0;
}

.site-footer__contact-link,
.site-footer__contact-text {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.35;
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__contact-link:hover {
  color: var(--footer-accent);
}

/* ── Navigation footer ── */
.footer-nav {
  flex: 1;
}

.footer-nav__cols {
  display: flex;
  gap: 70px;
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-nav__heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.375rem; /* 22px */
  color: var(--footer-accent);
  line-height: 1.15;
  margin: 0 0 6px;
  min-height: 51px;
  display: flex;
  align-items: flex-start;
}

.footer-nav__heading-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-nav__heading-link:hover {
  opacity: 0.8;
  color: var(--footer-accent);
}

.footer-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-nav__item {
  list-style: none;
}

.footer-nav__link {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 1.1875rem; /* 19px */
  line-height: 1.33;
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-nav__link:hover {
  color: var(--footer-accent);
}

/* ── Barre du bas ── */
.site-footer__bottom {
  border-top: 1px solid var(--footer-separator);
  margin-top: 90px;
  padding-top: 28px;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 80px;
}

/* Mention EU */
.site-footer__eu {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 1 470px;
}

.site-footer__eu-flag {
  display: block;
  flex-shrink: 0;
  width: 61px;
  height: auto;
}

.site-footer__eu-text {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.35;
  color: var(--footer-text);
  margin: 0;
}

.site-footer__eu-text strong {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 1.125rem; /* 18px */
  letter-spacing: -0.02em;
}

/* Copyright + légal */
.site-footer__legal {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer__copyright,
.site-footer__legal-links a,
.site-footer__legal-links li {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 1.09375rem; /* 17.5px */
  color: var(--footer-text);
  white-space: nowrap;
}

.site-footer__legal-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__legal-links a {
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__legal-links a:hover {
  color: var(--footer-accent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablette large (≤ 1280px) ── */
@media (max-width: 1280px) {
  .site-footer {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .site-footer__brand {
    flex: 0 0 360px;
  }

  .footer-nav__cols {
    gap: 32px;
  }
}

/* ── ≤ 1100px : brand + nav empilés, colonnes nav toujours sur une ligne ── */
@media (max-width: 1100px) {
  .site-footer {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 48px;
  }

  /* Brand : grid 2 colonnes — logo+socials à gauche, contact à droite */
  .site-footer__brand {
    flex: none;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 60px;
    row-gap: 20px;
    align-items: start;
  }

  .site-footer__logo {
    grid-column: 1;
    grid-row: 1;
  }

  .site-footer__socials {
    grid-column: 1;
    grid-row: 2;
    padding-left: 50px;
  }

  .site-footer__contact {
    grid-column: 2;
    grid-row: 1 / 3; /* s'étend sur les 2 lignes */
    display: flex;   /* visible à ce breakpoint */
    padding-left: 0;
  }

  .footer-nav {
    width: 100%;
  }

  .footer-nav__cols {
    gap: 24px;
  }
}

/* ── ≤ 1000px : colonnes nav passent en 2+1 ── */
@media (max-width: 1000px) {
  .footer-nav__cols {
    flex-wrap: wrap;
    gap: 32px 40px;
  }

  .footer-nav__col {
    flex: 0 0 calc(50% - 20px);
  }

  .footer-nav__col:last-child {
    flex: 0 0 100%;
  }
}

/* ── Mobile (≤ 991px) ── */
@media (max-width: 991px) {
  .site-footer {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .site-footer__inner,
  .site-footer__bottom {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 32px;
  }

  .site-footer__brand {
    flex: none;
    width: 100%;
    gap: 24px;
  }

  .site-footer__logo-img {
    width: 212px;
  }

  .site-footer__contact {
    display: none;
  }

  .site-footer__socials {
    padding-left: 0;
  }

  .site-footer__contact-link,
  .site-footer__contact-text {
    font-size: 0.9375rem; /* 15px */
  }

  /* Nav : colonnes empilées */
  .footer-nav {
    width: 100%;
  }

  .footer-nav__cols {
    flex-direction: column;
    gap: 0;
  }

  .footer-nav__col {
    gap: 12px;
    padding-top: 24px;
  }

  .footer-nav__heading {
    font-size: 1.0625rem; /* 17px */
    min-height: unset;
    margin-bottom: 0;
  }

  .footer-nav__list {
    gap: 8px;
  }

  .footer-nav__link {
    font-size: 1rem; /* 16px */
  }

  /* Barre du bas */
  .site-footer__bottom {
    margin-top: 48px;
    padding-top: 24px;
  }

  .site-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    min-height: unset;
  }

  /* Bloc EU : encadré mobile */
  .site-footer__eu {
    flex: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 16px;
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__eu-flag {
    width: 50px;
  }

  .site-footer__eu-text {
    font-size: 0.875rem; /* 14px */
  }

  .site-footer__eu-text strong {
    font-size: 0.875rem;
  }

  /* Copyright + légal centré */
  .site-footer__legal {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--footer-separator);
    padding-top: 24px;
  }

  .site-footer__copyright {
    font-size: 0.875rem; /* 14px */
    color: rgba(255, 255, 255, 0.8);
  }

  .site-footer__legal-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-footer__legal-links a,
  .site-footer__legal-links li {
    font-size: 0.875rem; /* 14px */
    color: rgba(255, 255, 255, 0.8);
  }
}
