/* Pied de page portail — bandeau sombre Athena, colonnes sobres */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

.portal-footer {
  --pf-bg: #050505;
  --pf-muted: #a3a3a3;
  --pf-text: #e5e5e5;
  --pf-accent: #34d399;
  --pf-line: rgba(255, 255, 255, 0.08);
  margin-top: 3.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 8% 0%, rgba(16, 185, 129, 0.1), transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, var(--pf-bg) 45%);
  color: var(--pf-text);
  border-top: 1px solid rgba(52, 211, 153, 0.22);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.portal-footer__inner {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 1.75rem;
}

@media (min-width: 900px) {
  .portal-footer__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
    gap: 2.5rem 3.5rem;
    padding: 3rem 1.5rem 2.25rem;
    align-items: start;
  }
}

.portal-footer__mark {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(2.75rem, 8vw, 4.25rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

/* Logo ATHENA complet (aigle + nom), en masque pour suivre la couleur du pied de page. */
.portal-footer__logo {
  display: block;
  width: clamp(8.5rem, 22vw, 11.5rem);
  aspect-ratio: 1.33;
  background: currentColor;
  -webkit-mask: url("../brand/athena-logo-noir.svg") left center / contain no-repeat;
  mask: url("../brand/athena-logo-noir.svg") left center / contain no-repeat;
}

.portal-footer__mark-dot {
  color: #4ade80; /* point marque ATHENA. */
}

.portal-footer__lead {
  margin: 0.85rem 0 0;
  max-width: 26rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--pf-muted);
}

.portal-footer__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.portal-footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0.4rem;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.portal-footer__btn--solid {
  background: var(--pf-accent);
  color: #022c22;
  border: 1px solid transparent;
}

.portal-footer__btn--solid:hover {
  background: #6ee7b7;
}

.portal-footer__btn--ghost {
  background: transparent;
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.portal-footer__btn--ghost:hover {
  border-color: rgba(52, 211, 153, 0.5);
  color: var(--pf-accent);
}

.portal-footer__nav {
  display: grid;
  gap: 0;
}

@media (min-width: 768px) {
  .portal-footer__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 2rem;
    padding-top: 0.25rem;
  }
}

.portal-footer__group {
  margin: 0;
  border: 0;
  background: transparent;
}

/* Mobile : séparateurs fins entre rubriques */
@media (max-width: 767px) {
  .portal-footer__group {
    border-bottom: 1px solid var(--pf-line);
  }

  .portal-footer__group:first-child {
    border-top: 1px solid var(--pf-line);
  }
}

.portal-footer__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.portal-footer__summary::-webkit-details-marker {
  display: none;
}

.portal-footer__summary::marker {
  content: "";
}

.portal-footer__summary:focus-visible {
  outline: 2px solid var(--pf-accent);
  outline-offset: 2px;
  border-radius: 0.2rem;
}

@media (min-width: 768px) {
  .portal-footer:not(.is-mobile) .portal-footer__summary {
    cursor: default;
    padding: 0 0 0.85rem;
    pointer-events: none;
  }

  .portal-footer:not(.is-mobile) .portal-footer__chevron {
    display: none;
  }
}

.portal-footer__heading {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.portal-footer__chevron {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid #737373;
  border-bottom: 1.5px solid #737373;
  transform: rotate(45deg);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.portal-footer__group[open] .portal-footer__chevron {
  transform: rotate(225deg);
  border-color: var(--pf-accent);
}

.portal-footer__list {
  margin: 0;
  padding: 0 0 1rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .portal-footer__list {
    padding: 0;
  }
}

.portal-footer__list a,
.portal-footer__legal-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--pf-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.portal-footer__list a:hover,
.portal-footer__legal-link:hover {
  color: var(--pf-accent);
}

.portal-footer__list--legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Plus de liens légaux : grille 2 cols pour équilibrer la hauteur */
@media (min-width: 768px) {
  .portal-footer__list--legal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
    row-gap: 0.45rem;
  }
}

.portal-footer__legal-link {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.portal-footer__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--pf-line);
  text-align: center;
}

@media (min-width: 640px) {
  .portal-footer__bar {
    flex-direction: row;
    text-align: left;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.portal-footer__copy,
.portal-footer__tag {
  margin: 0;
  font-size: 0.75rem;
  color: #737373;
}

.portal-footer__tag {
  font-weight: 500;
}

body.layout-page-compact {
  min-height: 0 !important;
  height: auto;
}

body.layout-page-compact .portal-footer,
body:has(.personnel-file--gate) .portal-footer {
  margin-top: 0;
  min-height: 0;
  flex-grow: 0;
}

@media (prefers-reduced-motion: reduce) {
  .portal-footer__btn,
  .portal-footer__list a,
  .portal-footer__legal-link,
  .portal-footer__chevron {
    transition: none;
  }
}

/* ==========================================================================
   Refonte 2026-10 : aigle en tuile, colonnes carrées, grand mot ATHENA.
   ========================================================================== */
/* Pas de bande claire entre une page sombre pleine largeur (hub…) et le pied de page. */
main:has(> .hubx) + .portal-footer,
main:has(> [data-dark-page]) + .portal-footer { margin-top: 0; }

.portal-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid rgba(52, 211, 153, 0.18);
  background: #050706;
}
.portal-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 6% 0%, rgba(16, 185, 129, 0.13), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 48px 48px;
}
.portal-footer__inner { max-width: 80rem; padding-top: 3.25rem; }

/* Marque : aigle dans une tuile carrée + nom */
.portal-footer__brandline { display: inline-flex; align-items: center; gap: 0.9rem; color: #fff; text-decoration: none; }
.portal-footer__emblem {
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 2px;
  background: rgba(52, 211, 153, 0.08);
  position: relative;
}
.portal-footer__emblem::after {
  content: "";
  position: absolute;
  inset: 0.45rem;
  background: #fff;
  -webkit-mask: url("../brand/athena-embleme-noir.svg") center / contain no-repeat;
  mask: url("../brand/athena-embleme-noir.svg") center / contain no-repeat;
}
.portal-footer__brandline:hover .portal-footer__emblem { border-color: #34d399; background: rgba(52, 211, 153, 0.14); }
.portal-footer__brandtext { display: grid; line-height: 1; }
.portal-footer__brandtext b { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: 2rem; font-weight: 800; font-style: italic; letter-spacing: 0.06em; }
.portal-footer__brandtext i { color: #34d399; font-style: normal; }
.portal-footer__brandtext small { margin-top: 0.3rem; font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #6ee7b7; }
.portal-footer__lead { margin-top: 1.1rem; max-width: 24rem; }

.portal-footer__btn { border-radius: 2px; font-style: italic; font-weight: 800; }

/* Colonnes : titres italiques, liens alignés, une seule colonne pour le légal */
.portal-footer__heading { font-style: italic; letter-spacing: 0.14em; color: #fff; }
.portal-footer__heading::before { content: ""; display: inline-block; width: 0.6rem; height: 2px; margin-right: 0.5rem; vertical-align: middle; background: #34d399; }
.portal-footer__list a,
.portal-footer__legal-link { font-size: 0.86rem !important; line-height: 1.35; color: #a3a3a3; transition: color 0.15s, transform 0.15s; }
.portal-footer__list a:hover,
.portal-footer__legal-link:hover { color: #fff; text-decoration: none !important; }
@media (min-width: 768px) {
  .portal-footer__list--legal { display: flex; flex-direction: column; gap: 0.5rem; }
}

/* Grand mot ATHENA en bas, aigle estompé derrière */
.portal-footer__giant {
  position: relative;
  max-width: 80rem;
  margin: 0.5rem auto 0;
  padding: 0 1.25rem;
  container-type: inline-size;
  text-align: center;
  pointer-events: none;
  user-select: none;
}
.portal-footer__giant-word {
  display: inline-block;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: 21cqw;
  line-height: 0.78;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.95) 0%, rgba(16, 185, 129, 0.55) 55%, rgba(16, 185, 129, 0.05) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  transform: translateY(8%);
}
@supports not (font-size: 1cqw) {
  .portal-footer__giant-word { font-size: 19vw; }
}
.portal-footer__giant-eagle {
  position: absolute;
  right: 4%;
  bottom: 18%;
  z-index: -1;
  width: 26cqw;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.05);
  -webkit-mask: url("../brand/athena-embleme-noir.svg") center / contain no-repeat;
  mask: url("../brand/athena-embleme-noir.svg") center / contain no-repeat;
}

/* Barre basse au-dessus du grand mot */
.portal-footer__bar { position: relative; z-index: 1; max-width: 80rem; margin: 0 auto; border-top: 1px solid rgba(255, 255, 255, 0.08); background: rgba(5, 7, 6, 0.85); backdrop-filter: blur(6px); }
.portal-footer__top { font-size: 11px; font-weight: 800; font-style: italic; letter-spacing: 0.12em; text-transform: uppercase; color: #6ee7b7; text-decoration: none; }
.portal-footer__top:hover { color: #fff; }
@media (min-width: 640px) {
  .portal-footer__bar { display: grid; grid-template-columns: 1fr auto auto; gap: 1.5rem; align-items: center; }
}
