/* ==========================================================
   FOOTER GLOBAL
   ========================================================== */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  color: var(--studio-white);
  background: linear-gradient(180deg, #06090d 0%, #05080c 100%);
}

.site-footer__background {
  position: absolute;
  left: 50%;
  bottom: -0.2em;
  z-index: 0;

  color: rgba(255, 255, 255, 0.025);

  font-size: clamp(170px, 24vw, 460px);
  font-weight: 800;
  line-height: 0.72;
  letter-spacing: -0.1em;
  white-space: nowrap;

  transform: translateX(-50%);

  pointer-events: none;
  user-select: none;
}

.site-footer__container {
  position: relative;
  z-index: 1;

  width: min(calc(100% - 96px), var(--container-width));
  margin-inline: auto;
  padding:
    clamp(64px, 7vw, 112px)
    0
    32px;
}

/* ==========================================================
   CTA
   ========================================================== */

.site-footer__cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  padding-bottom: clamp(52px, 6vw, 82px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__cta::before,
.site-footer__cta::after {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;
}

.site-footer__cta::before {
  z-index: -2;

  background-image: url("../images/hero-studio.webp");
  background-position: center 28%;
  background-repeat: no-repeat;
  background-size: cover;

  opacity: 1;
}

.site-footer__cta::after {
  z-index: -1;

  background:
    linear-gradient(
      90deg,
      rgba(5, 8, 12, 0.82) 0%,
      rgba(5, 8, 12, 0.56) 36%,
      rgba(5, 8, 12, 0.54) 100%
    ),
    linear-gradient(
      180deg,
      rgba(5, 8, 12, 0.56) 0%,
      rgba(5, 8, 12, 0.72) 52%,
      rgba(5, 8, 12, 0.9) 100%
    );
}

.site-footer__cta-eyebrow {
  margin-bottom: clamp(24px, 3vw, 42px);
  padding: 20px;

  display: flex;
  align-items: center;
  gap: 18px;

  color: rgba(255, 255, 255, 0.58);

  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer__cta-line {
  width: 42px;
  height: 1px;

  background: var(--studio-red);
}

.site-footer__cta-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(280px, 0.8fr);
  align-items: end;
  gap: clamp(34px, 5vw, 84px);
}

.site-footer__cta-title {
  max-width: 12ch;
  margin: 0;
  padding-left: 20px;

  color: var(--studio-white);

  font-size: clamp(42px, 5.2vw, 84px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.site-footer__cta-content p {
  max-width: 520px;
  margin: 0;

  color: rgba(255, 255, 255, 0.66);

  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.75;
}

.site-footer__cta-actions {
  margin-top: clamp(24px, 3vw, 32px);

  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer__cta-button {
  min-height: 52px;
  padding: 0 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;

  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  transition:
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.site-footer__cta-button--primary {
  border-color: var(--studio-red);
  background: var(--studio-red);
  color: var(--studio-white);
}

.site-footer__cta-button--secondary {
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
}

.site-footer__cta-button:hover,
.site-footer__cta-button:focus-visible {
  transform: translateY(-2px);
}

.site-footer__cta-button--primary:hover,
.site-footer__cta-button--primary:focus-visible {
  background: transparent;
  color: var(--studio-white);
}

.site-footer__cta-button--secondary:hover,
.site-footer__cta-button--secondary:focus-visible {
  border-color: var(--studio-red);
  color: var(--studio-red);
}

/* ==========================================================
   GRILLE PRINCIPALE
   ========================================================== */

.site-footer__main {
  padding:
    clamp(40px, 5vw, 68px)
    0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(180px, 0.65fr)
    minmax(200px, 0.7fr)
    minmax(260px, 0.85fr);
  gap: clamp(28px, 3vw, 42px);
}

.site-footer__column {
  min-width: 0;
}

.site-footer__brand-link {
  display: inline-flex;
  align-items: center;

  width: fit-content;
  max-width: 100%;
}

.site-footer__brand-logo {
  width: auto;
  max-width: 185px;
  height: 64px;

  object-fit: contain;
  object-position: left center;
}

.site-footer__brand-text {
  max-width: 34ch;
  margin: 24px 0 0;

  color: rgba(255, 255, 255, 0.66);

  font-size: 15px;
  line-height: 1.75;
}

.site-footer__brand-note {
  margin: 18px 0 0;

  color: rgba(255, 255, 255, 0.44);

  font-size: 13px;
  line-height: 1.6;
}

.site-footer__socials {
  margin-top: 24px;

  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.site-footer__title,
.site-footer__label {
  margin: 0 0 16px;

  color: rgba(255, 255, 255, 0.46);

  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer__menu,
.site-footer__contact-list {
  display: grid;
  gap: 14px;

  list-style: none;
}

.site-footer__menu li {
  min-width: 0;
}

.site-footer__menu a,
.site-footer__social-link,
.site-footer__contact-item a,
.site-footer__legal a,
.site-footer__contact-link {
  position: relative;

  width: fit-content;

  transition:
    color 220ms ease,
    transform 220ms ease;
}

.site-footer__menu a,
.site-footer__contact-item a,
.site-footer__legal a {
  color: rgba(255, 255, 255, 0.46);

  font-size: 15px;
  line-height: 1.55;
}

.site-footer__menu a::after,
.site-footer__social-link::after,
.site-footer__contact-item a::after,
.site-footer__legal a::after,
.site-footer__contact-link span:first-child::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;

  height: 1px;

  background: rgba(255, 255, 255, 0.18);

  transform: scaleX(1);
  transform-origin: right;

  transition:
    background-color 220ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer__menu a:hover,
.site-footer__menu a:focus-visible,
.site-footer__social-link:hover,
.site-footer__social-link:focus-visible,
.site-footer__contact-item a:hover,
.site-footer__contact-item a:focus-visible,
.site-footer__legal a:hover,
.site-footer__legal a:focus-visible,
.site-footer__contact-link:hover,
.site-footer__contact-link:focus-visible {
  color: var(--studio-red);
}

.site-footer__menu a:hover::after,
.site-footer__menu a:focus-visible::after,
.site-footer__social-link:hover::after,
.site-footer__social-link:focus-visible::after,
.site-footer__contact-item a:hover::after,
.site-footer__contact-item a:focus-visible::after,
.site-footer__legal a:hover::after,
.site-footer__legal a:focus-visible::after,
.site-footer__contact-link:hover span:first-child::after,
.site-footer__contact-link:focus-visible span:first-child::after {
  background: var(--studio-red);
  transform: scaleX(0.42);
  transform-origin: left;
}

.site-footer__social-link {
  color: rgba(255, 255, 255, 0.76);

  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__contact-item {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__contact-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.site-footer__contact-item p,
.site-footer__placeholder {
  margin: 0;

  color: rgba(255, 255, 255, 0.68);

  font-size: 14px;
  line-height: 1.7;
}

.site-footer__placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.site-footer__contact-link {
  margin-top: 26px;

  display: inline-flex;
  align-items: center;
  gap: 12px;

  color: rgba(255, 255, 255, 0.46);

  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__contact-link span:first-child {
  position: relative;
  padding-bottom: 6px;
}

/* ==========================================================
   BARRE BASSE
   ========================================================== */

.site-footer__bottom {
  padding-top: 26px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px 28px;

  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__copyright,
.site-footer__signature {
  margin: 0;

  color: rgba(255, 255, 255, 0.54);

  font-size: 13px;
  line-height: 1.5;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 0;
}

.site-footer__legal a {
  font-size: 13px;
  line-height: 1.5;
}

.site-footer__legal a + a::before {
  content: "·";

  display: inline-block;
  margin: 0 12px 0 10px;

  color: rgba(255, 255, 255, 0.34);
  pointer-events: none;
}

.site-footer__signature {
  text-align: right;
}

/* ==========================================================
   TABLETTE
   ========================================================== */

@media (max-width: 1050px) {
  .site-footer__container {
    width: min(calc(100% - 64px), var(--container-width));
  }

  .site-footer__cta-layout,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 28px;
  }

  .site-footer__bottom {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px 24px;
  }

  .site-footer__signature {
    text-align: left;
  }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {
  .site-footer__container {
    width: min(calc(100% - 40px), var(--container-width));
    padding:
      88px
      0
      28px;
  }

  .site-footer__background {
    font-size: clamp(120px, 34vw, 220px);
    bottom: -0.1em;
  }

  .site-footer__cta {
    padding-bottom: 44px;
  }

  .site-footer__cta-title {
    max-width: none;
    font-size: clamp(38px, 11vw, 62px);
    padding-left: 0;
  }

  .site-footer__cta-eyebrow {
    padding: 0;
  }

  .site-footer__cta-content p,
  .site-footer__brand-text,
  .site-footer__contact-item p,
  .site-footer__placeholder,
  .site-footer__menu a,
  .site-footer__contact-item a {
    font-size: 15px;
  }

  .site-footer__cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer__cta-button {
    width: 100%;
    min-height: 56px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .site-footer__legal,
  .site-footer__signature {
    justify-content: center;
    text-align: center;
  }

  .site-footer__copyright {
    width: 100%;
    text-align: center;
  }

  .site-footer__legal a {
    font-size: 13px;
  }

  .site-footer__brand-logo {
    max-width: 170px;
    height: 58px;
  }

  .site-footer__menu {
    gap: 16px;
  }

  .site-footer__contact-link {
    margin-top: 20px;
  }
}

/* ==========================================================
   TRÈS PETITS ÉCRANS
   ========================================================== */

@media (max-width: 420px) {
  .site-footer__container {
    width: min(calc(100% - 28px), var(--container-width));
  }
}

/* ==========================================================
   RÉDUCTION DES ANIMATIONS
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .site-footer *,
  .site-footer *::before,
  .site-footer *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
