/* Footer — mobile first
--------------------------------------------- */

.site-footer {
  --footer-accent: #f4d6d1;

  background: var(--color-red);
  color: var(--color-white);
}

.site-footer__main {
  display: grid;
  gap: 3rem;
  padding-block: 3.5rem;
}

/* Identité du cabinet
--------------------------------------------- */

.footer-brand {
  display: grid;
  gap: 1rem;
}

.footer-brand__identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.footer-brand__monogram {
  display: grid;
  width: 3rem;
  flex: 0 0 3rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 70%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.footer-brand__identity:hover .footer-brand__monogram,
.footer-brand__identity:focus-visible .footer-brand__monogram {
  background: var(--color-white);
  color: var(--color-red);
}

.footer-brand__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.footer-brand__description {
  max-width: 30rem;
  margin: 0;
  color: rgb(255 255 255 / 88%);
}

.footer-brand__languages {
  margin: 0;
  color: var(--footer-accent);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Titres des colonnes
--------------------------------------------- */

.footer-heading {
  margin: 0 0 1.5rem !important;
  color: var(--footer-accent);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Navigation
--------------------------------------------- */

.site-footer .footer-navigation__list {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .footer-navigation__list > li {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.footer-navigation a,
.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-navigation a {
  position: relative;
  display: inline-block;
  width: fit-content;
  line-height: 1.4;
}

.footer-navigation a::after {
  position: absolute;
  right: 0;
  bottom: -0.2rem;
  left: 0;
  height: 1px;
  background: currentcolor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.footer-navigation a:hover::after,
.footer-navigation a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Coordonnées
--------------------------------------------- */

.footer-contact__details {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  font-style: normal;
}

.footer-contact__details p {
  margin: 0;
}

.footer-contact__details a:hover,
.footer-contact__details a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.footer-contact__button {
  display: inline-flex;
  width: 100%;
  min-height: 3.25rem;
  margin-top: 1.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: var(--color-green);
  border: 1px solid var(--color-green);
  color: var(--color-white);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.footer-contact__button:hover,
.footer-contact__button:focus-visible {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-red);
}

/* Crédit
--------------------------------------------- */

.site-footer__bottom {
  background: rgb(0 0 0 / 16%);
  border-top: 1px solid rgb(255 255 255 / 18%);
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 1.25rem;
  text-align: center;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__credit {
  color: rgb(255 255 255 / 82%);
  font-size: 0.8rem;
  line-height: 1.6;
}

.site-footer__credit a {
  color: var(--color-white);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 0.2rem;
}

.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
  text-decoration: underline;
}

.site-footer__credit-separator {
  margin-inline: 0.3rem;
  color: var(--footer-accent);
}

.site-footer__credit-description {
  color: rgb(255 255 255 / 82%);
}

.site-footer__socials {
  display: flex;
  margin-top: 1.5rem;
  align-items: center;
  gap: 0.65rem;
}

.site-footer__socials a {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 50%;
  color: var(--color-white);
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-footer__socials svg {
  width: 1rem;
  height: 1rem;
  fill: currentcolor;
}

.site-footer__legal {
  display: grid;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  gap: 0.6rem;
  border-top: 1px solid rgb(255 255 255 / 22%);
}

.site-footer__legal a {
  width: fit-content;
  color: rgb(255 255 255 / 82%);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 35%);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25rem;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease,
    transform 180ms ease;
}

/* Tablet
--------------------------------------------- */

@media screen and (min-width: 48rem) {
  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem;
    padding-block: 4.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-contact__button {
    width: auto;
  }
}

/* Desktop
--------------------------------------------- */

@media screen and (min-width: 72rem) {
  .site-footer__main {
    grid-template-columns:
      minmax(20rem, 1.25fr)
      minmax(14rem, 0.75fr)
      minmax(17rem, 0.75fr);
    gap: clamp(3rem, 6vw, 6rem);
    padding-block: 5.5rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-contact__button {
    margin-top: 2rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__legal a:hover,
  .site-footer__legal a:focus-visible {
    color: var(--color-white);
    text-decoration-color: var(--color-white);
    transform: translateY(-0.08rem);
  }
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__socials a:hover,
  .site-footer__socials a:focus-visible {
    background: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-red);
    transform: translateY(-0.15rem);
  }
}
