/* ============================================
   Footer — premium 4 colonnes
   ============================================ */

.footer {
  background-color: #111111;
  border-top: 1px solid var(--color-border);
  padding: 0 0 var(--space-lg);
  position: relative;
}

/* Ligne dorée décorative en haut */
.footer__gold-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(201, 168, 76, 0) 0%,
    rgba(201, 168, 76, 0.5) 50%,
    rgba(201, 168, 76, 0) 100%
  );
  margin-bottom: var(--space-2xl);
}

/* Grille 4 colonnes */
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

/* Colonne marque */
.footer__brand-name {
  font-family: var(--font-display);
  font-size: var(--size-2xl);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.footer__brand-name span {
  color: var(--color-gold);
}

.footer__brand-tagline {
  font-size: var(--size-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.footer__brand-desc {
  font-size: var(--size-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 300px;
}

/* Réseaux sociaux */
.footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.footer__social-link {
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.footer__social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-gold);
  transform: scale(0);
  border-radius: inherit;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer__social-link:hover::before {
  transform: scale(1);
}

.footer__social-link svg {
  position: relative;
  z-index: 1;
}

.footer__social-link:hover {
  border-color: var(--color-gold);
  color: #0d0d0d;
}

/* Titres de colonnes */
.footer__col-title {
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-xs);
}

.footer__col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 1px;
  background: var(--color-gold);
}

/* Liens */
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__link {
  font-size: var(--size-sm);
  color: var(--color-text-muted);
  transition: color 0.3s ease, padding-left 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.footer__link::before {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
}

.footer__link:hover {
  color: var(--color-text);
  padding-left: 4px;
}

.footer__link:hover::before {
  width: 12px;
}

/* Contact info */
.footer__info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: 0.75rem;
  font-size: var(--size-sm);
  color: var(--color-text-muted);
}

.footer__info-icon {
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__info-item .footer__link {
  gap: 0;
}

.footer__info-item .footer__link::before {
  display: none;
}

/* ─── Barre inférieure ──────────────────── */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--size-xs);
  color: var(--color-text-muted);
}

.footer__copy span {
  color: var(--color-gold);
}

.footer__legal {
  display: flex;
  gap: var(--space-md);
}

.footer__legal a {
  font-size: var(--size-xs);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: var(--color-text);
}

/* Bouton retour en haut */
.footer__back-top {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: none;
  position: relative;
  overflow: hidden;
}

.footer__back-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-gold);
  border-radius: inherit;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer__back-top svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.footer__back-top:hover {
  border-color: var(--color-gold);
  color: #0d0d0d;
}

.footer__back-top:hover::before {
  transform: translateY(0);
}

.footer__back-top:hover svg {
  transform: translateY(-2px);
}

/* ─── Responsive ─────────────────────────── */
@media (max-width: 900px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer__col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .footer__back-top {
    align-self: flex-end;
  }
}
