/* ╔══════════════════════════════════════════════════════════╗
   FOOTER

   Footer fixe en bas d'écran et sa modale sur mobile.
   ╚══════════════════════════════════════════════════════════╝ */

/* ─── Footer ─── */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 8px 20px;
  background: rgba(15, 5, 30, 0.88);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,215,0,0.12);
}
.footer-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 2px;
}
.footer-row a {
  font-family: var(--font-body);
  font-size: .72rem;
  color: rgba(255,248,240,.55);   /* gris discret, couleur d'accent au survol (modèle Roucoule) */
  text-decoration: none;
  padding: 3px 6px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.footer-row a:hover {
  color: var(--gold);
  background: rgba(255,215,0,0.08);
}
.footer-dot {
  color: rgba(255,248,240,0.4);
  font-size: .65rem;
  user-select: none;
}
.footer-row--mobile { display: none; }

@media (max-width: 819px) {
  .footer-row--desktop { display: none; }
  .footer-row--mobile  { display: flex; }
}

/* Modale footer mobile */
.footer-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,4,24,0.82);
  backdrop-filter: blur(6px);
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.footer-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.footer-modal-box {
  background: #1e0f3a;
  border: 1px solid rgba(255,215,0,0.2);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 560px;
  padding: 20px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(20px);
  transition: transform .25s;
}
.footer-modal-overlay.open .footer-modal-box { transform: translateY(0); }
.footer-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.footer-modal-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
}
.footer-modal-link {
  display: block;
  font-family: var(--font-body);
  font-size: .92rem;
  color: rgba(255,248,240,.7);
  text-decoration: none;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color .15s;
}
.footer-modal-link:last-child { border-bottom: none; }
.footer-modal-link:hover { color: var(--gold); }

/* ─── Compteur de tours (compteur.js) ───
   Texte, pas un lien : même taille et même gris que les liens, chiffres à
   chasse fixe pour que la ligne ne bouge pas quand le nombre change. */
.footer-count {
  font-family: var(--font-body);
  font-size: .72rem;
  color: rgba(255,248,240,.55);
  padding: 3px 6px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* +1 à chaque tour : bref éclat doré */
.footer-count.bump { animation: count-bump .6s ease-out; }
@keyframes count-bump {
  0%   { color: var(--gold); text-shadow: 0 0 10px var(--gold2); }
  100% { color: rgba(255,248,240,.55); text-shadow: none; }
}
.footer-count-wrap[hidden] { display: none; }
