/* ==========================================================
   Nordic Club Astérien : trombinoscope
   À charger après style.css
   ========================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.trombi-section { padding-top: 48px; }
.trombi-outils { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.trombi-filtres { display: flex; flex-wrap: wrap; gap: 8px; }
.trombi-filtre {
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  padding: .55em 1.1em; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink-2); transition: background .2s, color .2s, border-color .2s;
}
.trombi-filtre span { font-weight: 500; opacity: .7; margin-left: 2px; }
.trombi-filtre:hover { border-color: var(--teal); color: var(--teal-700); }
.trombi-filtre[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.trombi-filtre:focus-visible, .trombi-recherche input:focus-visible { outline: 3px solid var(--teal-100); outline-offset: 2px; }

.trombi-recherche { position: relative; flex: 0 1 300px; }
.trombi-recherche svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.trombi-recherche input {
  width: 100%; font: inherit; font-size: .95rem; padding: .65em 1em .65em 2.6em;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink);
}

.trombi { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; }
.trombi-carte { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 16px; text-align: center; transition: transform .25s ease, box-shadow .25s ease; }
.trombi-carte:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.trombi-carte[hidden] { display: none; }
.trombi-photo { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--sand); margin-bottom: 12px; }
.trombi-img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.trombi-img.img-logo { object-fit: contain; object-position: center; padding: 14%; background: var(--teal-50); }
.trombi-img-repli { display: grid; place-items: center; font-family: var(--font-title); font-weight: 700; font-size: 2.4rem; color: #fff; background: var(--teal-700); }
.trombi-carte figcaption b { display: block; font-family: var(--font-title); font-size: 1.05rem; font-weight: 600; line-height: 1.25; }
.trombi-fonction { display: inline-block; margin-top: 6px; font-size: .78rem; font-weight: 600; line-height: 1.3; padding: 4px 10px; border-radius: 999px; background: var(--teal-50); color: var(--teal-700); }
.trombi-carte.a-fonction { border-color: var(--teal-100); }
.trombi-carte.responsable { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-50); }
.trombi-carte.responsable .trombi-fonction { background: var(--teal); color: #fff; }
.trombi-vide { color: var(--muted); text-align: center; margin-top: 24px; }

/* Accueil : photos dans le bloc « L'équipe » */
.avatar.avatar-photo { width: 84px; height: 84px; object-fit: cover; object-position: center 30%; background: var(--sand); }
span.avatar.avatar-photo-repli { background: var(--teal); }
.avatar.avatar-photo.img-logo { object-fit: contain; padding: 8px; background: var(--teal-50); border: 1px solid var(--line); }
.team-lien { margin-top: 20px; }

@media (max-width: 640px) {
  .trombi-outils { flex-direction: column; align-items: stretch; }
  .trombi-recherche { flex-basis: auto; }
  .trombi-filtres { flex-wrap: nowrap; gap: 6px; }
  .trombi-filtre { font-size: .88rem; padding: .5em .85em; }
  .trombi { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trombi-carte { padding: 8px 8px 12px; }
  .trombi-carte figcaption b { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .trombi-carte, .trombi-carte:hover { transition: none; transform: none; }
}

/* Accueil : bloc « L'équipe » sur 2 lignes équilibrées.
   --team-cols = moitié du nombre de membres (arrondie au-dessus),
   calculée par trombinoscope.js ; la 2e ligne est centrée. */
.team { --team-cols: 5; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.team > .member-card { flex: 0 0 calc((100% - (var(--team-cols) - 1) * 16px) / var(--team-cols)); min-width: 0; }
@media (max-width: 760px) {
  .team > .member-card { flex-basis: calc((100% - 16px) / 2); }
}
