/* =================================================================
   NOTRE ÉQUIPE — trombinoscope (refresh 2026)
   Chargée UNIQUEMENT par notre-equipe.php, après includes/head.php.
   Tout est préfixé .eq- : zéro impact sur les autres pages.

   Design system Lille Immo :
     - aucun coin arrondi (angles droits partout) ;
     - bleu marque #34a7d5, bleu foncé #00496b, panneau #00608a ;
     - typographie globale (Sora / Geist) héritée de css/typo-2026.css,
       on ne redéclare aucune font-family ici.
   ================================================================= */

.eq-team {
  padding-bottom: 40px;
}

/* ---------- Chapô ----------
   Pleine largeur : rien ne lui fait face, donc rien ne le bride. */
.eq-intro {
  margin-top: 34px;
}
/* .cms p impose un padding-top: 30px, on le reprend en marge maîtrisée */
.eq-team .eq-intro p {
  padding-top: 0;
  margin: 0 0 14px;
  line-height: 19pt;
  color: #4a5b64;
}

/* ---------- Grille ---------- */
/* Un seul portrait par ligne sur mobile ; 2 à partir du format phablette. */
.eq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px 20px;
  margin-top: 46px;
  padding: 0;
  list-style: none;
}
@media (min-width: 576px) {
  .eq-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .eq-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1300px) {
  .eq-grid { grid-template-columns: repeat(4, 1fr); }
}
/* au-delà, la sidebar ne mange plus assez de place : on passe à 5 */
@media (min-width: 1800px) {
  .eq-grid { grid-template-columns: repeat(5, 1fr); }
}
/* .cms ul impose une puce carrée + un margin-top : on neutralise */
.eq-team .eq-grid {
  list-style-type: none;
  list-style-position: outside;
}

/* ---------- Carte ----------
   li en flex + carte en colonne : toutes les cartes d'une même ligne
   ont la même hauteur, quel que soit le nombre de lignes de la fonction. */
.eq-grid > li {
  display: flex;
}
.eq-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  position: relative;
  color: inherit;
  text-decoration: none;
  background: #fff;
  outline-offset: 3px;
}
/* main.css souligne et recolore tout lien dans .cms ul li : sélecteur
   plus spécifique pour neutraliser les deux sur la carte. */
.eq-team .eq-grid li a.eq-card,
.eq-team .eq-grid li a.eq-card:hover,
.eq-team .eq-grid li a.eq-card:focus {
  color: inherit;
  text-decoration: none;
}

/* --- visuel --- */
/* .eq-card__media / __body / __name / __role sont des <span> (imbrication
   valide dans un <a>) : il faut donc les passer explicitement en block. */
.eq-card__media {
  display: block;
  position: relative;
  overflow: hidden;
  background: #e8eef2;
  aspect-ratio: 3 / 4;
}
/* .cms img force width:100% + margin-top:30px */
.eq-team .eq-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center top;
  transform: scale(1);
  transition: transform .65s cubic-bezier(.22,.61,.36,1);
}
.eq-card:hover .eq-card__media img,
.eq-card:focus-visible .eq-card__media img {
  transform: scale(1.06);
}

/* voile bleu au survol */
.eq-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,73,107,0.88) 0%, rgba(0,73,107,0.35) 45%, rgba(0,73,107,0) 78%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.eq-card:hover .eq-card__veil,
.eq-card:focus-visible .eq-card__veil {
  opacity: 1;
}

/* incitation « Voir le profil » */
.eq-card__cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 18px;
  color: #fff;
  font-size: 10.5pt;
  font-weight: 600;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}
.eq-card__cta svg {
  flex: 0 0 auto;
  width: 17px;
  height: 10px;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.eq-card:hover .eq-card__cta,
.eq-card:focus-visible .eq-card__cta {
  opacity: 1;
  transform: translateY(0);
}
.eq-card:hover .eq-card__cta svg {
  transform: translateX(5px);
}

/* --- bloc texte --- */
.eq-card__body {
  display: block;
  flex: 1 1 auto;
  position: relative;
  padding: 16px 16px 18px;
  border-top: 3px solid #e2e9ee;
  background: #fff;
  transition: background-color .35s ease, border-color .35s ease;
}
.eq-card:hover .eq-card__body,
.eq-card:focus-visible .eq-card__body {
  background: #00496b;
  border-top-color: #34a7d5;
}

.eq-card__name {
  display: block;
  margin: 0;
  font-size: 15.5pt;
  line-height: 1.16;
  color: #00496b;
  transition: color .35s ease;
}
/* prénom et nom sur deux lignes */
.eq-card__first,
.eq-card__last {
  display: block;
}
.eq-card__first {
  font-weight: 400;
}
.eq-card__last {
  font-weight: 700;
  text-transform: uppercase;
}
.eq-card:hover .eq-card__name,
.eq-card:focus-visible .eq-card__name {
  color: #fff;
}

.eq-card__role {
  display: block;
  margin-top: 9px;
  font-size: 11pt;
  line-height: 15pt;
  font-weight: 500;
  color: #34a7d5;
  transition: color .35s ease;
}
.eq-card:hover .eq-card__role,
.eq-card:focus-visible .eq-card__role {
  color: #8fd3ee;
}

/* ---------- Apparition au scroll ----------
   L'état masqué n'est appliqué QUE si .eq-anim a été posée par le script
   (juste après la grille) : sans JS, ou si le script casse, les cartes
   restent visibles. */
.eq-grid.eq-anim .eq-card {
  opacity: 0;
  transform: translateY(26px);
}
.eq-grid.eq-anim .eq-card.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease var(--eq-delay, 0ms),
              transform .6s cubic-bezier(.22,.61,.36,1) var(--eq-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .eq-grid.eq-anim .eq-card,
  .eq-grid.eq-anim .eq-card.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .eq-team .eq-card__media img,
  .eq-card__veil,
  .eq-card__cta {
    transition: none;
  }
}

/* ---------- Liens de fin de page ----------
   On réutilise .quick_links (déjà présent sur les fiches équipe) :
   même skin, angles droits, aucun nouveau composant à maintenir. */
.eq-more {
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid #e2e9ee;
}
.eq-more__title {
  margin: 0;
  font-size: 15pt;
  font-weight: 600;
  color: #00496b;
}
.eq-team .eq-more .quick_links {
  margin-top: 22px;
}

@media (max-width: 767px) {
  .eq-grid { gap: 22px 14px; margin-top: 34px; }
  .eq-card__body { padding: 13px 12px 15px; }
  .eq-more { margin-top: 46px; }
}
