/* Footer HolyCloud — responsive desktop / tablet / mobile */

.hc-footer {
  --ft-bg: #162E62;
  --ft-bg-bottom: #10244f;
  --ft-ink: #ffffff;
  --ft-muted: rgba(255, 255, 255, 0.72);
  --ft-line: rgba(255, 255, 255, 0.14);
  --ft-accent: #2563eb;
  background: var(--ft-bg);
  color: var(--ft-ink);
  font-family: "Source Sans 3", "Inter", system-ui, sans-serif;
}

.hc-footer a {
  color: var(--ft-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.hc-footer a:hover,
.hc-footer a:focus-visible {
  color: #fff;
}

.hc-footer-brandbar {
  background: #1a3a7a;
  border-top: 2px solid var(--ft-accent);
  padding: 28px 0;
}

.hc-footer .container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  box-sizing: border-box;
}

.hc-footer-top {
  margin: 0;
  max-width: none;
}

.hc-footer-logo img {
  display: block;
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.hc-footer-intro {
  margin: 14px 0 0;
  max-width: 42rem;
  color: var(--ft-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hc-footer-main {
  padding: 40px 0 44px;
  background: var(--ft-bg);
}

.hc-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr));
  gap: 28px 36px;
  align-items: start;
}

.hc-footer-nav:first-child {
  padding-right: 12px;
  border-right: 1px solid var(--ft-line);
  margin-right: 4px;
}

.hc-footer-nav--stack {
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

.hc-footer-acc--nested {
  margin-top: 0.15rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--ft-line);
}

/* Accordion chrome — desktop: looks like plain column titles */
.hc-footer-acc {
  margin: 0;
  border: 0;
}

.hc-footer-acc__sum {
  list-style: none;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 14px;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.hc-footer-acc__sum::-webkit-details-marker {
  display: none;
}

.hc-footer-acc__sum i {
  display: none;
  font-size: 0.7rem;
  color: #93c5fd;
  transition: transform 0.2s ease;
}

.hc-footer-acc[open] > .hc-footer-acc__sum i {
  transform: rotate(180deg);
}

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

.hc-footer-nav li {
  margin: 0 0 8px;
}

.hc-footer-nav a {
  font-size: 0.9rem;
  line-height: 1.4;
}

.hc-footer-loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.hc-footer-loc span {
  overflow-wrap: anywhere;
}

.hc-footer-flag {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hc-footer-link-accent {
  color: #93c5fd !important;
  font-weight: 700;
}

.hc-footer-link-accent:hover {
  color: #fff !important;
}

.hc-footer-bottom {
  background: var(--ft-bg-bottom);
  border-top: 1px solid var(--ft-line);
  padding: 16px 0;
}

.hc-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hc-footer-social {
  display: flex;
  gap: 8px;
}

.hc-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ft-line);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.hc-footer-social a:hover {
  background: rgba(37, 99, 235, 0.45);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.hc-footer-copy {
  margin: 0;
  color: var(--ft-muted);
  font-size: 0.8rem;
}

.hc-footer-payments {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.9;
  flex-wrap: wrap;
}

.hc-footer-payments img {
  height: 20px;
  width: auto;
  display: block;
}

/* —— Tablet —— */
@media (max-width: 1100px) {
  .hc-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 28px;
  }

  .hc-footer-nav:first-child {
    border-right: 0;
    padding-right: 0;
    margin-right: 0;
    grid-column: 1 / -1;
  }

  .hc-footer-nav:first-child ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 18px;
  }
}

@media (max-width: 900px) {
  .hc-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* —— Mobile : accordéons —— */
@media (max-width: 767px) {
  .hc-footer-brandbar {
    padding: 22px 0 18px;
  }

  .hc-footer-logo img {
    height: 34px;
  }

  .hc-footer-intro {
    margin-top: 10px;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .hc-footer-main {
    padding: 8px 0 12px;
  }

  .hc-footer-grid {
    display: block;
    gap: 0;
  }

  .hc-footer-nav {
    margin: 0;
    border-bottom: 1px solid var(--ft-line);
  }

  .hc-footer-nav:first-child {
    border-right: 0;
    padding-right: 0;
    margin-right: 0;
  }

  .hc-footer-nav:first-child ul {
    display: block;
  }

  .hc-footer-acc__sum {
    cursor: pointer;
    margin: 0;
    padding: 14px 2px;
    font-size: 0.82rem;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }

  .hc-footer-acc__sum i {
    display: inline-block;
  }

  .hc-footer-acc > ul {
    padding: 0 2px 14px;
  }

  .hc-footer-nav li {
    margin: 0;
  }

  .hc-footer-nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 6px 0;
    font-size: 0.95rem;
  }

  .hc-footer-bottom {
    padding: 20px 0 22px;
  }

  .hc-footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .hc-footer-copy {
    order: 3;
    max-width: 20rem;
    line-height: 1.45;
    font-size: 0.78rem;
  }

  .hc-footer-social {
    order: 1;
  }

  .hc-footer-social a {
    width: 40px;
    height: 40px;
  }

  .hc-footer-payments {
    order: 2;
    justify-content: center;
    gap: 12px;
  }

  .hc-footer-payments img {
    height: 18px;
  }

  /* Espace sous sticky CTA mobile */
  body.has-vps-sticky-cta .hc-footer-bottom {
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .hc-footer .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hc-footer-nav:first-child .hc-footer-loc span {
    font-size: 0.88rem;
  }
}
