/* ==========================================================================
   Era Studio - pied de page
   era-studio-tokens.css reste la source de verite et n'est pas modifie.

   Seule surface sombre etendue du site. Les tokens de la charte sont calibres
   pour du texte sombre sur fond clair : reutilises tels quels ici, ink-muted
   deviendrait illisible et hairline dispararaitrait. On derive donc un jeu de
   variables locales a partir de la charte, sans introduire de couleur nouvelle,
   uniquement des transparences de blanc.
   ========================================================================== */

body.era .era-footer {
  --f-text:     var(--era-surface);              /* 17:1 sur ink */
  --f-muted:    rgba(255, 255, 255, 0.62);       /* environ 8:1  */
  --f-faint:    rgba(255, 255, 255, 0.42);
  --f-hairline: rgba(255, 255, 255, 0.12);

  background: var(--era-ink);
  color: var(--f-text);
  margin-top: var(--era-space-24);
  /* Le mint n'apparaissait qu'au survol, donc jamais sur mobile ni en lecture.
     Ce liseré signe la bascule sans ajouter de surface coloree. */
  border-top: 3px solid var(--era-mint);
}

body.era .era-footer a { color: var(--f-text); text-decoration: none; }
body.era .era-footer a:hover { color: var(--era-mint); }
body.era .era-footer a:focus-visible {
  outline: 2px solid var(--era-mint);
  outline-offset: 3px;
  border-radius: var(--era-radius-sm);
}

/* --------------------------------------------------------------------------
   1. Corps, trois colonnes
   -------------------------------------------------------------------------- */
body.era .era-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  width: 100%;
  max-width: var(--era-container);
  margin-inline: auto;
  padding: var(--era-space-16) clamp(20px, 5vw, 64px) var(--era-space-12);
  box-sizing: border-box;
}
@media (max-width: 900px) {
  body.era .era-footer__inner { grid-template-columns: 1fr 1fr; }
  body.era .era-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body.era .era-footer__inner {
    grid-template-columns: 1fr;
    padding-top: var(--era-space-12);
    gap: var(--era-space-8);
  }
}

/* --------------------------------------------------------------------------
   2. Colonne de marque
   -------------------------------------------------------------------------- */
body.era .era-footer__logo {
  display: block;
  height: 64px;
  width: auto;
  margin-bottom: var(--era-space-4);
}
body.era .era-footer__logotype {
  display: block;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--f-text);
  margin-bottom: var(--era-space-4);
}
body.era .era-footer__logotype span {
  display: block;
  font-family: var(--era-font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--f-muted);
  margin-top: 2px;
}
body.era .era-footer__pitch {
  margin: 0 0 var(--era-space-3);
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--f-muted);
  text-wrap: pretty;
}
body.era .era-footer__zone {
  margin: 0;
  font-family: var(--era-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   3. Colonnes de liens
   -------------------------------------------------------------------------- */
body.era .era-footer__title {
  margin: 0 0 var(--era-space-4);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--f-text);
}
body.era .era-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
body.era .era-footer__list a,
body.era .era-footer__list span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  font-size: 15px;
  color: var(--f-muted);
}
body.era .era-footer__list a:hover { color: var(--era-mint); }
body.era .era-footer__list svg { flex: none; color: var(--f-faint); }
body.era .era-footer__list a:hover svg { color: var(--era-mint); }

body.era .era-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--era-space-3);
  padding: 11px 18px;
  border: 1px solid var(--f-hairline);
  border-radius: var(--era-radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--f-text);
  transition: background-color 180ms ease, border-color 180ms ease;
}
body.era .era-footer__social:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--f-muted);
  color: var(--f-text);
}

/* --------------------------------------------------------------------------
   4. Barre basse
   -------------------------------------------------------------------------- */
body.era .era-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--era-space-3);
  width: 100%;
  max-width: var(--era-container);
  margin-inline: auto;
  padding: var(--era-space-6) clamp(20px, 5vw, 64px) var(--era-space-8);
  border-top: 1px solid var(--f-hairline);
  box-sizing: border-box;
}
body.era .era-footer__bottom p {
  margin: 0;
  font-size: 13px;
  color: var(--f-faint);
}
@media (max-width: 560px) {
  body.era .era-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* La zone tactile de 44 px reste imperative des que l'on quitte la souris. */
@media (max-width: 900px) {
  body.era .era-footer__list a,
  body.era .era-footer__list span { min-height: 44px; }
}

/* Le bouton LinkedIn vit desormais dans la colonne de marque. */
body.era .era-footer__brand .era-footer__social { margin-top: var(--era-space-4); }
