/* Pied de page site & admin — charte #192653, #243a6c, accent #ffc107 */

.app-site-footer {
  position: relative;
  margin-top: 3rem;
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(165deg, #141d3a 0%, #192653 45%, #243a6c 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.app-site-footer__accent {
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffc107 30%, #ffc107 70%, transparent);
  opacity: 0.9;
}

.app-site-footer__inner {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  /* Ne pas écraser le padding horizontal du .container Bootstrap */
}

@media (max-width: 767.98px) {
  .app-site-footer__inner {
    padding-left: max(1rem, calc(var(--bs-gutter-x, 1.5rem) * 0.5));
    padding-right: max(1rem, calc(var(--bs-gutter-x, 1.5rem) * 0.5));
  }
}

.app-site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.app-site-footer__logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.app-site-footer__logo {
  max-width: 200px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.app-site-footer__tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 28rem;
}

.app-site-footer__heading {
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffc107;
}

.app-site-footer__links,
.app-site-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.app-site-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.app-site-footer__link:hover,
.app-site-footer__link:focus-visible {
  color: #fff;
  transform: translateX(2px);
}

.app-site-footer__link .bi {
  font-size: 0.95rem;
  color: rgba(255, 193, 7, 0.85);
}

.app-site-footer__social .app-site-footer__link .bi {
  width: 1.1rem;
}

.app-site-footer__divider {
  margin: 1.75rem 0 1.25rem;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.app-site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.app-site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.app-site-footer__legal a {
  color: #ffc107;
  font-weight: 600;
  text-decoration: none;
}

.app-site-footer__legal a:hover {
  color: #ffd54f;
  text-decoration: underline;
}

.app-site-footer__dot {
  opacity: 0.45;
  user-select: none;
}

/* ——— Admin (zone contenu) ——— */

.app-admin-footer {
  margin-top: 2rem;
  padding: 1rem 0 0.25rem;
  border-top: 1px solid #dbe3ef;
}

.app-admin-footer__bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #192653 0%, #243a6c 100%);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(25, 38, 83, 0.12);
}

.app-admin-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.app-admin-footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #192653;
  background: #ffc107;
}

.app-admin-footer__site-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.app-admin-footer__site-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 193, 7, 0.45);
}

.app-admin-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.app-admin-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.app-admin-footer__nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 500;
}

.app-admin-footer__nav a:hover {
  color: #ffc107;
}

@media (min-width: 768px) {
  .app-site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .app-admin-footer__bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .app-admin-footer__top {
    flex: 1;
  }

  .app-admin-footer__bottom {
    flex: 1;
    border-top: none;
    padding-top: 0;
    justify-content: flex-end;
  }
}
