.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: 74px;
  background: #080807 url("/assets/images/footer-forest.webp") center/cover no-repeat;
  border-top: 1px solid #72523080;
}
.site-footer:before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #07070635 0, #08080794 28%, #080807c4 100%),
    linear-gradient(90deg, #0505049e, transparent 22%, transparent 78%, #0505049e);
}
.site-footer:after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: 0;
  height: 74px;
  pointer-events: none;
  background: linear-gradient(180deg, #080807 0, transparent 100%);
}
/* La bande d'appel : la tour, la phrase, Discord / Jouer / Soutenir */
.footer-call {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 28px;
  margin-bottom: 34px;
  padding: 18px 28px;
  border: 1px solid #74573570;
  background: linear-gradient(90deg, #0908073d, #1c150dc9 50%, #0908073d);
}
.footer-call .footer-tower {
  width: 150px;
  height: 82px;
  object-fit: contain;
  filter: sepia(0.16) saturate(0.45) brightness(1.28) drop-shadow(0 10px 16px #000);
  mix-blend-mode: screen;
}
.footer-call p {
  margin: 0;
  color: #dea14d;
  font: 400 20px "Permanent Marker", sans-serif;
}
.footer-call__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* La texture du bouton rouge déborde de 11 px de chaque côté (buttons.css, .button-primary:before) : de la place après lui */
.footer-call__actions .button-primary {
  margin-right: 14px;
}
.footer-call .button svg,
.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}
.footer-call__support svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* Le logo et la phrase, puis une colonne par groupe du menu */
.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 40px;
  padding: 40px 34px 36px;
  border-top: 1px solid #74573570;
  border-bottom: 1px solid #74573570;
  background: #0908073d;
  box-shadow: 0 28px 80px rgba(var(--shadow-rgb), 0.4);
}
.footer-main:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #9d6e3778 13%, #d0984d9c 50%, #9d6e3778 87%, transparent);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-brand .footer-logo {
  width: 200px;
  height: auto;
  margin-bottom: 4px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px #000);
}
.footer-brand strong {
  position: relative;
  margin-top: -4px;
  padding-bottom: 11px;
  color: #dfa04a;
  font: 500 14px Roboto;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.footer-brand strong:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  border-bottom: 3px solid #d4943e;
}
.footer-brand p {
  margin: 12px 0 14px;
  color: #c0b4a3;
  font-size: 14px;
  line-height: 1.5;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #6c5232;
  color: #eee3d1;
  transition: 0.18s;
}
.footer-social a:hover {
  border-color: var(--honey);
  color: var(--honey);
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.footer-group {
  min-width: 0;
  padding: 4px 22px 0;
  border-left: 1px solid #80603d55;
}
.footer-group h2 {
  margin: 0 0 6px;
  color: #f1e6d5;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-group h2:after {
  content: "";
  display: block;
  width: 34px;
  margin-top: 8px;
  border-bottom: 3px solid #d2923d;
}
.footer-group a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: #cfc3b2;
  font-size: 14px;
  white-space: nowrap;
  transition: 0.18s;
}
.footer-group a:hover {
  color: #e4a64e;
  transform: translateX(3px);
}
.footer-link-icon {
  display: grid;
  flex: 0 0 18px;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #b9ab96;
}
.footer-link-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 0;
  /* À droite, la place du bouton « remonter » (fixé en bas à droite) : il couvrait le choix de langue. */
  padding: 18px calc(34px + 72px) 18px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #a99c89;
  font-size: 0.8rem;
  background: #08070680;
  border-bottom: 1px solid #57432d70;
}
.footer-bottom nav {
  display: flex;
  gap: 22px;
}

@media (min-width: 2100px) {
  .site-footer .container {
    width: min(calc(100% - 150px), var(--max));
  }
}

/* Écrans moyens : le logo au-dessus, les quatre colonnes sur une ligne */
@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-brand {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 26px;
  }
  .footer-brand > a {
    grid-row: span 3;
  }
  .footer-group:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .site-footer {
    padding-top: 52px;
    background-position: 38% bottom;
  }
  .site-footer:after {
    height: 52px;
  }
  .footer-call {
    padding: 16px;
  }
  .footer-call .footer-tower {
    display: none;
  }
  .footer-call p {
    text-align: center;
  }
  .footer-main {
    padding: 32px 20px 30px;
  }
  .footer-brand {
    display: flex;
  }
  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
  }
  .footer-group {
    padding: 0 0 0 16px;
  }
  .footer-group:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .footer-bottom {
    display: grid;
    gap: 14px;
    padding-inline: 18px;
    padding-bottom: 84px;
    text-align: center;
    justify-content: center;
  }
  .footer-bottom nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 330px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
  .footer-group {
    padding-left: 0;
    border-left: 0;
  }
}
