/* ============================================================
   LUCEED — team-masonry.css
   Grille masonry dynamique, partagée par :
   · la home (#team-grid)      → aperçu curaté + tuile « voir tout »
   · la page À propos (#about-team) → galerie complète
   Réutilise le composant .member (styles.css) et la
   convention .reveal pour l'entrée en cascade.
   ============================================================ */

.team-masonry {
  margin-top: clamp(34px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 8px;            /* unité de rang — spans calculés en JS */
  gap: 14px;
  align-items: start;
}
@media (min-width: 600px)  { .team-masonry { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 900px)  { .team-masonry { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1180px) { .team-masonry { grid-template-columns: repeat(5, 1fr); } }

/* La tuile : base .member, hauteur pilotée par aspect-ratio (→ rythme staggered) */
.member--masonry { display: block; width: 100%; aspect-ratio: 4 / 5; }
.member--masonry.s-tall    { aspect-ratio: 5 / 7; }
.member--masonry.s-mid     { aspect-ratio: 4 / 5; }
.member--masonry.s-short   { aspect-ratio: 1 / 1; }
.member--masonry.s-feature { aspect-ratio: 3 / 4; }

/* Nom toujours lisible dans ce layout (pas seulement au survol) */
.member--masonry .member__info { transform: none; opacity: 1; }
.member--masonry .member__veil { opacity: 0.92; }
.member--masonry:hover .member__veil { opacity: 1; }

/* Co-fondateurs : fin liseré sable + pastille */
.member--masonry.is-founder { outline: 1.5px solid var(--sand); outline-offset: -1.5px; }
.member__founder {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy-950); background: var(--sand); padding: 4px 9px; border-radius: 999px;
  font-weight: 500; line-height: 1; box-shadow: 0 4px 14px -6px rgba(5,14,26,0.6);
}

/* Tuile « voir toute l'équipe » (home uniquement) */
.team-seeall {
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  padding: clamp(16px, 1.4vw, 22px); text-align: left;
  background: linear-gradient(158deg, var(--navy-800), var(--navy-950));
  color: #fff; border: 1px solid rgba(226,185,124,0.28);
  transition: border-color .4s var(--ease), transform .45s var(--ease);
}
.team-seeall:hover, .team-seeall:focus-visible { border-color: var(--sand); }
.team-seeall__n {
  font-size: clamp(2.3rem, 3.4vw, 3.1rem); font-weight: 700; letter-spacing: -0.03em;
  color: var(--sand); line-height: 0.95;
}
.team-seeall__label {
  font-size: 0.92rem; font-weight: 600; color: #fff; line-height: 1.25;
  display: inline-flex; gap: 0.45em; align-items: center;
}
.team-seeall:hover .team-seeall__label, .team-seeall:focus-visible .team-seeall__label { color: var(--sand-soft); }
