/* Pied de page commun — Costratégie */
footer {
  --footer-red: var(--red, #a40f1a);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 58px 0 24px;
  border-top: 3px solid var(--footer-red);
  background:
    radial-gradient(circle at 96% 8%, rgba(12, 47, 80, .52), transparent 34%),
    linear-gradient(135deg, #191c21 0%, #22262c 58%, #171a1f 100%);
  color: #bfc7cf;
}

footer::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(125deg, transparent 0 69%, rgba(255, 255, 255, .025) 69.1% 77%, transparent 77.1%),
    linear-gradient(56deg, transparent 0 85%, rgba(164, 15, 26, .14) 85.1% 85.55%, transparent 85.65%);
}

footer::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 310px;
  height: 310px;
  top: -190px;
  right: -145px;
  border: 1px solid rgba(255, 255, 255, .055);
  transform: rotate(45deg);
  box-shadow: none;
}

footer .wrap {
  position: relative;
  z-index: 1;
}

footer .foot {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 1.35fr) minmax(250px, .85fr) minmax(270px, .9fr);
  align-items: start;
  gap: clamp(38px, 5vw, 72px);
}

footer .foot::after {
  display: none;
}

footer .foot > div {
  min-width: 0;
}

footer .foot > div:first-child {
  max-width: 390px;
  padding-right: clamp(20px, 3vw, 42px);
  border-right: 1px solid rgba(255, 255, 255, .1);
}

footer .foot-logo {
  display: block;
  width: min(100%, 286px);
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 858 / 198;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 20px;
}

footer .foot h4 {
  margin: 2px 0 17px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  line-height: 1.3;
  text-transform: uppercase;
}

footer .foot p {
  max-width: 330px;
  margin: 0;
  color: #aeb8c1;
  font-size: 12px;
  line-height: 1.75;
}

footer .foot a {
  display: block;
  margin: 0;
  padding: 5px 0;
  color: #c4ccd4;
  font-size: 11px;
  line-height: 1.5;
  transition: color .2s ease, transform .2s ease;
}

footer .foot a:hover {
  color: #fff;
  transform: translateX(4px);
}

footer .foot > div:nth-child(2) {
  display: grid;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
  column-gap: 22px;
  align-content: start;
}

footer .foot > div:nth-child(2) h4 {
  grid-column: 1 / -1;
}

footer .foot > div:nth-child(3) {
  padding: 23px 25px;
  border: 1px solid rgba(255, 255, 255, .11);
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 3px 0 0 var(--footer-red);
}

footer .foot > div:nth-child(3) h4 {
  margin-top: 0;
}

footer .foot a[href^="tel:"] {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

footer .foot a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

footer .legal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .11);
  color: #8f99a3;
  font-size: 10px;
  line-height: 1.6;
}

footer .legal::after {
  display: none;
}

footer .legal a {
  color: #b9c2ca;
  transition: color .2s ease;
}

footer .legal a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  footer .foot {
    grid-template-columns: 1fr 1fr;
    gap: 36px 42px;
  }

  footer .foot > div:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(220px, 286px) 1fr;
    align-items: center;
    gap: 30px;
    max-width: none;
    padding: 0 0 30px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  footer .foot-logo {
    margin: 0;
  }
}

@media (max-width: 600px) {
  footer {
    padding: 46px 0 22px;
  }

  footer .foot {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  footer .foot > div:first-child {
    grid-column: auto;
    display: block;
    padding-bottom: 26px;
  }

  footer .foot-logo {
    width: min(100%, 270px);
    margin-bottom: 18px;
  }

  footer .foot > div:nth-child(3) {
    padding: 21px 22px;
  }

  footer .legal {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  footer .foot a {
    transition: none;
  }
}
