/*
  Le bandeau MEGGA, en pied de chaque page des sites de MEGGA : la version compacte validée par
  Thomas le 27 novembre 2026. Ici, sa version statique pour megga.io, reprise telle quelle de celle
  de megga.dev (megga/shield, css/ecosystem.css), plus le choix de la langue de megga.sh. La source
  est le composant de megga.sh (tombuilds1/shield : site/src/ui/Ecosystem.tsx,
  site/src/styles/ecosystem.css, site/src/ecosystem.ts) ; les couleurs sont celles de design/tokens.css.

  Toujours sur l'encre. Le bleu ne sert qu'au pixel de la C2PA, à l'adresse de contact et aux filets
  de survol. Les règles sont tenues sous .eco : les styles du reste du site (a, ul, p) n'y entrent pas.
*/

.eco {
  --mg-blue: #0080ff;
  --mg-dark-bg: #222428;
  --mg-dark-line: #3e3f41;
  --mg-dark-text: #ffffff;
  --mg-dark-body: #d6d6d7;
  --mg-dark-muted: #9e9e9f;
  --mg-radius-s: 4px;
  --mg-pixel-radius: 18%;

  display: block;
  background: var(--mg-dark-bg);
  color: var(--mg-dark-text);
  border-top: 1px solid var(--mg-dark-line);
  font-family: 'Inter Tight', 'Helvetica Neue', Arial, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  /* Le reste du site resserre les lettres (-0,48 px) : le bandeau garde l'espacement de la DA. */
  letter-spacing: normal;
  text-align: left;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.eco *,
.eco *::before,
.eco *::after {
  box-sizing: border-box;
}

.eco a {
  color: inherit;
  text-decoration: none;
  transition: none;
}

.eco a:focus-visible {
  outline: 2px solid var(--mg-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.eco__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 40px clamp(18px, 4vw, 40px) 32px;
}

/* ── Marque et présentation ─────────────────────────────────────────────── */

.eco__intro {
  display: grid;
  justify-items: start;
}

.eco__brand {
  display: inline-block;
  color: var(--mg-dark-text);
}

.eco__logo {
  display: block;
  width: 96px;
  height: auto;
  fill: currentColor;
}

.eco__about {
  margin: 14px 0 0;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--mg-dark-body);
  text-wrap: pretty;
}

.eco__c2pa {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--mg-dark-muted);
}

.eco__c2pa::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--mg-pixel-radius);
  background: var(--mg-blue);
}

/* ── L'écosystème, puis les réseaux et le contact, serrés et alignés ───── */

.eco__label {
  margin: 0;
  min-width: 96px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mg-dark-muted);
}

.eco__sites,
.eco__follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 18px;
}

.eco__sites {
  margin-top: 16px;
}

.eco__sites ul,
.eco__social,
.eco__legal ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.eco__sites ul {
  column-gap: 18px;
}

.eco__sites a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 6px 0;
  font-weight: 500;
}

.eco__dom {
  font-size: 13px;
  font-weight: 400;
  color: var(--mg-dark-muted);
}

.eco__dom b {
  font-weight: 500;
  color: var(--mg-dark-body);
}

.eco__reach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  margin-top: 2px;
}

.eco__social {
  /* Le logo, pas sa zone de clic, s'aligne sur les noms de la ligne du dessus. */
  margin-left: -7px;
  gap: 2px 6px;
}

.eco__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--mg-radius-s);
  color: var(--mg-dark-body);
  transition:
    color 0.2s,
    background-color 0.2s;
}

.eco__social svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.eco__social .eco__stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* L'adresse : un lien qui ouvre la messagerie du visiteur. */
.eco a.eco__mail {
  display: inline-block;
  padding: 4px 0;
  font-weight: 500;
  color: var(--mg-blue);
}

/* ── Le légal, après un espace franc et le filet ────────────────────────── */

.eco__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--mg-dark-line);
  font-size: 13px;
  color: var(--mg-dark-muted);
}

.eco__legal-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
}

.eco__copy {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.eco__legal ul {
  gap: 6px 18px;
}

.eco__legal a {
  display: inline-block;
  padding: 2px 0;
  color: var(--mg-dark-muted);
  transition: color 0.2s;
}

@media (min-width: 760px) {
  .eco__mail {
    margin-left: auto;
  }
}

@media (hover: hover) {
  .eco__sites a:hover .eco__name,
  .eco a.eco__mail:hover {
    text-decoration: underline;
    text-decoration-color: var(--mg-blue);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
  }

  .eco__social a:hover {
    color: var(--mg-dark-text);
    background: rgba(255, 255, 255, 0.06);
  }

  .eco__legal a:hover {
    color: var(--mg-dark-text);
  }
}

@media (prefers-reduced-motion: reduce) {
  .eco__social a,
  .eco__legal a {
    transition: none;
  }
}


/* ── La langue, à droite du légal (comme sur megga.sh) ─────────────────── */

.eco__lang {
  display: flex;
  gap: 2px;
}

.eco a.eco__lang-link {
  display: inline-block;
  padding: 4px 6px;
  border-radius: var(--mg-radius-s);
  font-weight: 500;
  color: var(--mg-dark-muted);
  transition: color 0.2s;
}

.eco a.eco__lang-link[aria-current='true'] {
  color: var(--mg-dark-text);
  background: rgba(255, 255, 255, 0.06);
}

@media (hover: hover) {
  .eco a.eco__lang-link:hover {
    color: var(--mg-dark-text);
  }
}

@media (prefers-reduced-motion: reduce) {
  .eco a.eco__lang-link {
    transition: none;
  }
}
