/**
 * BienHabillé — Footer CSS
 *
 * @package BienHabille
 */

/* ============================================================
   BENEFITS BAR
   ============================================================ */

.bh-benefits-bar {
  background: var(--bh-white);
  border-top: 1px solid var(--bh-gray-mid);
  border-bottom: 1px solid var(--bh-gray-mid);
  padding: var(--bh-space-8) var(--bh-space-8);
}

.bh-benefits-bar__inner {
  max-width: var(--bh-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bh-space-6);
  text-align: center;
}

.bh-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--bh-space-3);
}

.bh-benefit__icon {
  width: 40px;
  height: 40px;
  color: var(--bh-black);
}

.bh-benefit__icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.bh-benefit__text {
  font-size: var(--bh-text-xs);
  font-weight: 600;
  color: var(--bh-black);
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ============================================================
   FOOTER MAIN
   ============================================================ */

.bh-footer {
  background: var(--bh-white);
}

/* Slogan géant */
.bh-footer__slogan {
  padding: var(--bh-space-12) var(--bh-space-8) var(--bh-space-8);
  border-bottom: 1px solid var(--bh-gray-mid);
  overflow: hidden;
}

.bh-footer__slogan-text {
  font-size: var(--bh-text-giant);
  font-weight: 700;
  color: var(--bh-black);
  line-height: 0.9;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

/* ============================================================
   NEWSLETTER + RÉSEAUX SOCIAUX
   ============================================================ */

.bh-footer__middle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--bh-gray-mid);
}

.bh-footer__newsletter {
  padding: var(--bh-space-10) var(--bh-space-8);
  border-right: 1px solid var(--bh-gray-mid);
}

.bh-footer__newsletter-title {
  font-size: var(--bh-text-lg);
  font-weight: 700;
  color: var(--bh-black);
  margin-bottom: var(--bh-space-5);
}

.bh-footer__newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--bh-space-3);
}

.bh-footer__newsletter-input-wrap {
  position: relative;
}

.bh-footer__newsletter-input {
  width: 100%;
  height: 48px;
  background: var(--bh-gray-light);
  border: 1px solid transparent;
  border-radius: var(--bh-radius-pill);
  padding: 0 50px 0 var(--bh-space-5);
  font-family: var(--bh-font);
  font-size: var(--bh-text-sm);
  color: var(--bh-black);
  transition: border-color var(--bh-transition);
  outline: none;
}

.bh-footer__newsletter-input:focus {
  border-color: var(--bh-gray-mid);
  background: var(--bh-white);
}

.bh-footer__newsletter-input::placeholder {
  color: var(--bh-gray-text);
  font-weight: 500;
}

.bh-footer__newsletter-submit {
  position: absolute;
  right: var(--bh-space-3);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bh-black);
  display: flex;
  align-items: center;
  transition: opacity var(--bh-transition);
  padding: var(--bh-space-1);
}

.bh-footer__newsletter-submit:hover {
  opacity: 0.5;
}

.bh-footer__newsletter-legal {
  font-size: var(--bh-text-xs);
  color: var(--bh-gray-text);
  line-height: 1.5;
}

.bh-footer__newsletter-legal a {
  color: var(--bh-gray-text);
  text-decoration: underline;
}

/* Réseaux sociaux */
.bh-footer__social {
  padding: var(--bh-space-10) var(--bh-space-8);
}

.bh-footer__social-title {
  font-size: var(--bh-text-lg);
  font-weight: 700;
  color: var(--bh-black);
  margin-bottom: var(--bh-space-3);
}

.bh-footer__social-desc {
  font-size: var(--bh-text-sm);
  color: var(--bh-gray-text);
  margin-bottom: var(--bh-space-6);
  line-height: 1.5;
}

.bh-footer__social-links {
  display: flex;
  gap: var(--bh-space-5);
  flex-wrap: wrap;
}

.bh-footer__social-link {
  color: var(--bh-black);
  text-decoration: none;
  transition: opacity var(--bh-transition);
  display: flex;
  align-items: center;
}

.bh-footer__social-link:hover {
  opacity: 0.5;
}

.bh-footer__social-link svg {
  width: 24px;
  height: 24px;
}

/* ============================================================
   NOS CATÉGORIES — ACCORDÉON
   ============================================================ */

.bh-footer__categories {
  border-bottom: 1px solid var(--bh-gray-mid);
}

.bh-footer__categories-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--bh-space-6) var(--bh-space-8);
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: background var(--bh-transition);
}

.bh-footer__categories-toggle:hover {
  background: var(--bh-beige-light);
}

.bh-footer__categories-toggle-title {
  font-size: var(--bh-text-md);
  font-weight: 700;
  color: var(--bh-black);
}

.bh-footer__categories-toggle-icon {
  font-size: 24px;
  color: var(--bh-black);
  transition: transform var(--bh-transition);
  line-height: 1;
}

.bh-footer__categories-toggle[aria-expanded="true"] .bh-footer__categories-toggle-icon {
  transform: rotate(45deg);
}

.bh-footer__categories-content {
  display: none;
  padding: var(--bh-space-6) var(--bh-space-8) var(--bh-space-8);
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bh-space-8);
}

.bh-footer__categories-content.is-open {
  display: grid;
}

.bh-footer__cat-group-title {
  font-size: var(--bh-text-sm);
  font-weight: 700;
  color: var(--bh-black);
  margin-bottom: var(--bh-space-4);
}

.bh-footer__cat-group-title + .bh-footer__cat-group-title {
  margin-top: var(--bh-space-5);
}

.bh-footer__cat-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--bh-space-2);
}

.bh-footer__cat-links a {
  font-size: var(--bh-text-sm);
  color: var(--bh-black);
  text-decoration: none;
  transition: color var(--bh-transition);
  line-height: 1.5;
}

.bh-footer__cat-links a:hover {
  color: var(--bh-gray-text);
}

/* ============================================================
   FOOTER COLONNES LIENS
   ============================================================ */

.bh-footer__links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bh-space-8);
  padding: var(--bh-space-10) var(--bh-space-8);
  border-bottom: 1px solid var(--bh-gray-mid);
  background: var(--bh-beige-light);
}

.bh-footer__col-title {
  font-size: var(--bh-text-sm);
  font-weight: 700;
  color: var(--bh-black);
  margin-bottom: var(--bh-space-5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bh-footer__col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--bh-space-3);
}

.bh-footer__col-links a {
  font-size: var(--bh-text-sm);
  color: var(--bh-black);
  text-decoration: none;
  transition: color var(--bh-transition);
  line-height: 1.4;
}

.bh-footer__col-links a:hover {
  color: var(--bh-gray-text);
}

/* CTA Service clients */
.bh-footer__col-cta {
  display: inline-flex;
  align-items: center;
  padding: var(--bh-space-3) var(--bh-space-5);
  background: var(--bh-black);
  color: var(--bh-white);
  border-radius: var(--bh-radius-pill);
  font-size: var(--bh-text-sm);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: var(--bh-space-4);
  transition: opacity var(--bh-transition);
}

.bh-footer__col-cta:hover {
  opacity: 0.8;
}

.bh-footer__col-desc {
  font-size: var(--bh-text-xs);
  color: var(--bh-gray-text);
  line-height: 1.5;
}

/* ============================================================
   FOOTER BOTTOM — Légal
   ============================================================ */

.bh-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--bh-space-4);
  padding: var(--bh-space-5) var(--bh-space-8);
  background: var(--bh-beige-light);
}

.bh-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bh-space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.bh-footer__legal-links a {
  font-size: var(--bh-text-xs);
  color: var(--bh-gray-text);
  text-decoration: underline;
  transition: color var(--bh-transition);
}

.bh-footer__legal-links a:hover {
  color: var(--bh-black);
}

.bh-footer__lang {
  display: flex;
  align-items: center;
  gap: var(--bh-space-2);
  font-size: var(--bh-text-xs);
  color: var(--bh-gray-text);
  cursor: pointer;
  background: none;
  border: none;
}

/* ============================================================
   RESPONSIVE FOOTER
   ============================================================ */

@media (max-width: 1023px) {
  .bh-footer__slogan-text {
    font-size: clamp(40px, 12vw, 80px);
  }

  .bh-footer__middle {
    grid-template-columns: 1fr;
  }

  .bh-footer__newsletter {
    border-right: none;
    border-bottom: 1px solid var(--bh-gray-mid);
  }

  .bh-footer__links {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--bh-space-6);
  }

  .bh-footer__categories-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .bh-benefits-bar__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .bh-footer__links {
    grid-template-columns: 1fr;
  }

  .bh-footer__categories-content {
    grid-template-columns: 1fr;
  }

  .bh-benefits-bar__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .bh-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}