/* ============================================================
   HEKLA — Footer
   ============================================================ */

.site-footer {
  position: relative;
  z-index: 20;
  background: var(--c-orange);
  color: var(--c-white);
}

/* ── Séparateurs ──────────────────────────────────────────── */
.footer-sep {
  width: 100%;
  height: 1px;
  background: var(--c-white);
}

/* ════════════════════════════════════════════════════════════
   PARTIE 1 — Logo + Adresse + Newsletter
   ════════════════════════════════════════════════════════════ */
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  justify-items: center;
  padding: 60px 80px 52px;
  gap: 40px;
}

/* Col 1 — Logo */
.footer-top__logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 240px;
  width: 100%;
}

.footer-logo-svg {
  width: 120px;
  height: auto;
  color: var(--c-white);
  display: block;
}

.footer-logo-img {
  max-width: 120px;
  max-height: 44px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Col 2 — Projet */
.footer-top__project {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 240px;
  width: 100%;
}

.footer-top__project-title {
  font-family: var(--f-serif);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--c-white);
}

/* Col 3 — Réseaux sociaux */
.footer-top__social {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 240px;
  width: 100%;
}

.footer-top__social-title {
  font-family: var(--f-serif);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--c-white);
}

.footer-top__social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-top__social-link {
  font-family: var(--f-sans);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--c-white);
  text-decoration: none;
  position: relative;
  width: fit-content;
  transition: color 0.2s ease;
}

.footer-top__social-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.footer-top__social-link:hover {
  color: var(--c-white);
}

.footer-top__social-link:hover::after {
  width: 100%;
}

/* Col 2 — Adresse */
.footer-address {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-address__name {
  font-family: var(--f-serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.footer-address__line {
  font-family: var(--f-sans);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--c-white);
}

.footer-address__line a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-address__line a:hover { opacity: 0.7; }

/* Newsletter */
.footer-newsletter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer-newsletter__title {
  font-family: var(--f-serif);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.15;
  text-align: left;
  white-space: nowrap;
}

.footer-newsletter__form {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  padding-bottom: 10px;
  gap: 12px;
}

/* Ligne du bas — s'étire au hover */
.footer-newsletter__form::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--c-white);
  transition: left 0.35s ease, right 0.35s ease;
}
.footer-newsletter__form:hover::after {
  left: -10px;
  right: -10px;
}

.footer-newsletter__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--f-sans);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--c-white);
  letter-spacing: 0.04em;
  transition: transform 0.35s ease;
}
.footer-newsletter__input::placeholder { color: var(--c-white); }
.footer-newsletter__form:hover .footer-newsletter__input {
  transform: translateX(-5px);
}

.footer-newsletter__submit {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-white);
  display: flex;
  align-items: center;
  padding: 0;
  transition: transform 0.35s ease;
}
.footer-newsletter__form:hover .footer-newsletter__submit {
  transform: translateX(5px);
}

/* ════════════════════════════════════════════════════════════
   PARTIE 2 — Références (marquee 4 lignes)
   ════════════════════════════════════════════════════════════ */
.footer-refs {
  padding: 40px 0;
  overflow: hidden;
}

.footer-refs__row {
  overflow-x: hidden;
  overflow-y: visible;
  white-space: nowrap;
  padding: 4px 0;
}

.footer-refs__track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}

/* Animations */
@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marqueeRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.footer-refs__row--ltr .footer-refs__track {
  animation: marqueeLeft 35s linear infinite;
}
.footer-refs__row--rtl .footer-refs__track {
  animation: marqueeRight 35s linear infinite;
}

/* Pause au hover */
.footer-refs:hover .footer-refs__track {
  animation-play-state: paused;
}

/* ── Lien cliquable dans le marquee références ────────────── */
.footer-refs__link {
  color: inherit;
  text-decoration: none;
  position: relative;
}
.footer-refs__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}
.footer-refs__link:hover::after { width: 100%; }

/* Bloc de texte du marquee */
.footer-refs__copy {
  font-family: var(--f-serif);
  font-size: 54px;
  font-weight: 400;
  font-style: normal;
  color: var(--c-white);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Roue séparatrice */
.ref-wheel {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 0 24px;
  position: relative;
  top: -2px;
}

/* ════════════════════════════════════════════════════════════
   PARTIE 3 — 3 colonnes
   ════════════════════════════════════════════════════════════ */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 52px 80px;
  gap: 40px;
  justify-items: center;
}

.footer-cols > * {
  text-align: left;
}

.footer-col__title {
  font-family: var(--f-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-white);
  margin-bottom: 20px;
  line-height: 1.3;
}

.footer-col__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-sans);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--c-white);
  text-decoration: none;
  position: relative;
  transition: opacity 0.2s ease;
}
.footer-col__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.footer-col__link:hover::after { width: 100%; }
.footer-col__link svg { flex-shrink: 0; }
.footer-top__project .footer-col__link { align-self: flex-start; }

.footer-col__socials {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 4px;
}

.footer-col__social {
  color: var(--c-white);
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}
.footer-col__social:hover { opacity: 0.7; }

/* ════════════════════════════════════════════════════════════
   PARTIE 4 — Mentions légales + Copyright
   ════════════════════════════════════════════════════════════ */
.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 80px;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal__link {
  font-family: var(--f-sans);
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--c-white);
  text-decoration: none;
  letter-spacing: 0.04em;
  position: relative;
  transition: opacity 0.2s;
}
.footer-legal__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.footer-legal__link:hover::after { width: 100%; }

.footer-legal__copy {
  font-family: var(--f-sans);
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--c-white);
  letter-spacing: 0.04em;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
    padding: 48px 30px 40px;
    gap: 32px;
    text-align: center;
  }
  /* Toutes les colonnes de footer-top : centrage flex */
  .footer-top__logo,
  .footer-top__project,
  .footer-top__social,
  .footer-address {
    align-items: center;
  }
  /* Liens dans la colonne projet */
  .footer-top__project .footer-col__link {
    align-self: center;
  }
  /* Liens sociaux */
  .footer-top__social-links { align-items: center; }
  .footer-top__social-link  { width: auto; text-align: center; }
  /* Newsletter */
  .footer-newsletter { align-items: center; }
  .footer-newsletter__title { text-align: center; white-space: normal; }
  /* Colonnes du bas */
  .footer-cols { grid-template-columns: 1fr; padding: 40px 30px; gap: 32px; }
  /* Légal */
  .footer-legal {
    padding: 20px 30px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
  .footer-legal__links { justify-content: center; }
  /* Marquee */
  .footer-refs__copy { font-size: 25px; }
  .ref-wheel { width: 14px; height: 14px; margin: 0 12px; }
}

@media (max-width: 768px) {
  .footer-top__project-title,
  .footer-top__social-title {
    font-size: 1.5rem;
  }
}
