/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #060809;
  border-top: 0.5px solid var(--c-border);
}
.footer-top { padding: clamp(48px, 6vw, 80px) 0; }
.footer-grid {
  display: grid;
  grid-template-areas: "brand nav nl contact";
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}
.footer-brand {
  grid-area: brand;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-nav-col     { grid-area: nav; }
.footer-nl-col      { grid-area: nl; }
.footer-contact-col { grid-area: contact; }
.footer-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-race {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--c-blue);
  text-transform: uppercase;
  margin-top: 6px;
}
.footer-depart {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.7;
  margin-top: 16px;
}
.footer-depart strong { color: var(--c-white); }
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.footer-social a {
  color: var(--c-muted);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--c-white); }

.footer-nav-col h4,
.footer-contact-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted-2);
  margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgb(2, 104, 111);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1.5px solid rgb(2, 104, 111);
  width: 100%;                    /* même largeur pour tous */
  transition: background 0.25s, color 0.25s, transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
  text-decoration: none;
}
.footer-nav-btn:hover {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
  transform: translateY(-2px);
}
.footer-nav-emoji {
  font-size: 13px;
  filter: brightness(0) invert(1);
  transition: filter 0.25s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.footer-nav-btn:hover .footer-nav-emoji {
  filter: none;
  transform: scale(1.25) rotate(-8deg);
}
.footer-email {
  font-size: 14px;
  color: var(--c-blue);
  transition: color 0.2s;
  word-break: break-all;
}
.footer-email:hover { color: #5aa3ff; }

.footer-bottom {
  padding: 20px 0;
  border-top: 0.5px solid var(--c-border);
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-lang { flex-shrink: 0; }
/* Mini lang switcher dans le footer bottom */
.footer-bottom-lang .lang-switcher { gap: 4px; }
.footer-bottom-lang .lang-btn {
  font-size: 10px !important;
  padding: 4px 8px !important;
}
.footer-legal,
.footer-credits {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-muted-2);
  letter-spacing: 0.06em;
  text-align: center;
}
.footer-credits { display: flex; gap: 12px; }
.footer-credits a { color: var(--c-muted-2); transition: color 0.2s; }
.footer-credits a:hover { color: var(--c-white); }

@media (max-width: 900px) {
  .footer-grid {
    grid-template-areas: "brand brand" "nav nl" "contact contact";
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-areas: "brand" "nav" "nl" "contact";
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Footer lang switcher */
.footer-lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;     /* espace plus généreux entre réseaux et langue */
  flex-wrap: wrap;
}
.footer-lang-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 5px 11px;
  border: none;
  border-radius: 3px;
  color: rgba(255,255,255,0.55);
  background: rgba(2,104,111,0.25);
  transition: background 0.2s, color 0.2s;
}
.footer-lang-btn.active {
  background: rgb(2, 104, 111);
  color: #ffffff;
}
.footer-lang-btn:hover {
  background: rgb(3, 126, 134);
  color: #ffffff;
}
.footer-lang-globe {
  font-size: 14px;
  line-height: 1;
  margin-right: 2px;
  display: flex;
  align-items: center;
  filter: brightness(10) saturate(0);  /* force blanc */
}
/* Liens sociaux footer + section contact — curseur et hover corrects */
.footer-social-link,
.contact-social-link {
  color: rgba(160,180,210,0.4);
  transition: color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  cursor: pointer !important;
  text-decoration: none;
}
.footer-social-link:hover,
.contact-social-link:hover {
  color: var(--c-white);
  transform: translateY(-2px);
}

.footer-lang-globe {
  font-size: 14px;
  line-height: 1;
  opacity: 0.6;
  margin-right: 4px;
  vertical-align: middle;
}

.footer-calisto-link {
  color: var(--c-blue);
  opacity: 0.7;
  transition: opacity 0.2s;
  font-family: var(--font-mono);
}
.footer-calisto-link:hover { opacity: 1; }

/* ---- Newsletter dans le footer ---- */
.footer-nl-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 12px;
}
.footer-nl-sub {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.footer-nl-group {
  display: flex;
  border: 0.5px solid var(--c-border-2);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.footer-nl-group:focus-within { border-color: var(--c-blue); }
.footer-nl-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: none;
  outline: none;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-white);
  min-width: 0;
  /* iOS Safari — pas de zoom au focus */
  font-size: max(16px, 13px);
}
.footer-nl-input::placeholder { color: var(--c-muted-2); }
.footer-nl-btn {
  padding: 10px 14px;
  background: var(--c-blue);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.footer-nl-btn:hover { background: #5aa3ff; }
.footer-nl-privacy {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--c-muted-2);
  margin-top: 8px;
}


/* Grand titre newsletter dans le footer */
.footer-nl-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.5vw, 48px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--c-teal);
  margin-bottom: 14px;
}

/* Contact column dans le footer */
.footer-contact-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.5vw, 48px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--c-teal);
  margin-bottom: 10px;
  margin-top: 4px;
}
.footer-contact-sub {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.footer-cta-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 9px 18px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  background: transparent;
  color: var(--c-white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.footer-cta-btn:hover { border-color: var(--c-teal); color: var(--c-teal); }
.footer-contact-socials {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  margin-bottom: 16px;
}
.footer-contact-socials .footer-social-link {
  color: var(--c-muted);
  transition: color 0.2s;
}
.footer-contact-socials .footer-social-link:hover { color: var(--c-white); }

/* Bouton Contact animé dans le footer */
.footer-contact-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 11px 22px;
  background: rgb(2, 104, 111);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.footer-contact-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}
.footer-contact-btn:hover {
  background: rgb(3, 130, 138);
  box-shadow: 0 4px 20px rgba(2,104,111,0.5);
  transform: translateY(-1px);
}
.footer-contact-btn:hover::before { transform: translateX(0); }
.footer-contact-btn:active { transform: translateY(0); }

/* Hashtag au-dessus des réseaux sociaux */
.footer-hashtag {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  margin-top: 20px;
}

/* Logo footer */
.footer-logo-link {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-logo-img {
  height: 80px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  filter: brightness(1.1);
  transition: opacity 0.2s;
}
.footer-logo-link:hover .footer-logo-img { opacity: 0.85; }
