/* === Cartes équipe ==================================================== */
.home-section.hp-team{
  position: relative;
  z-index: 2;
}

.team-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 4vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
  margin-bottom: clamp(60px, 10vw, 120px);
}

.team-card{
  position: relative;
  display: grid;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(242,233,216,.12);
  background: rgba(19,19,19,.65);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  min-height: clamp(260px, 38vw, 420px);
  cursor: pointer;
  outline: none;
}
.team-card:hover,
.team-card:focus-within,
.team-card:focus-visible{
  transform: translateY(-2px);
  border-color: rgba(242,233,216,.28);
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
}
.team-card:focus-visible{
  outline: 2px solid rgba(242,233,216,.6);
  outline-offset: 2px;
}

.team-cover{
  margin: 0;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  pointer-events: none;
}
.team-cover::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.4) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.team-cover--has-photo{
  background-image: var(--team-photo);
}
.team-card:hover .team-cover::after,
.team-card:focus-within .team-cover::after,
.team-card:focus-visible .team-cover::after{
  opacity: 1;
}
.team-cover--placeholder{
  background: rgba(0,0,0,.32);
}

.team-info{
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: clamp(18px, 3vw, 26px);
  padding-top: clamp(28px, 5vw, 38px);
  align-content: end;
  background: linear-gradient(180deg, rgba(7,7,7,.45) 0%, rgba(7,7,7,.85) 65%, rgba(7,7,7,.95) 100%);
  min-height: clamp(260px, 38vw, 420px);
  color: var(--ink);
}
.team-name{
  margin: 0;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: .01em;
}
.team-role{
  margin: 0;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(242,233,216,.65);
}

.team-links{
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.team-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid rgba(242,233,216,.24);
  background: rgba(242,233,216,.08);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.team-link:hover{
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.team-card-plus{
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(100px, 5vw, 34px);
  line-height: 0;
  color: var(--ink);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.team-card:hover .team-card-plus,
.team-card:focus-visible .team-card-plus,
.team-card:focus-within .team-card-plus{
  opacity: 1;
}

@media (max-width: 560px){
  .team-card{
    border-radius: 14px;
    min-height: clamp(240px, 80vw, 420px);
  }
  .team-info{ min-height: clamp(240px, 80vw, 420px); }
  .team-links{
    width: 100%;
  }
  .team-link{
    flex: 1 1 45%;
  }
}

/* === Modal équipe ===================================================== */
.hp-team .modal{
  display: none;
}
.hp-team .modal.modal--active{
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  padding: 20px;
  background: rgba(0,0,0,.55);
  z-index: 4000;
}
.hp-team .modal__dialog{
  width: min(900px, 96vw);
  max-height: 90vh;
  overflow: auto;
}
.hp-team .modal__content{
  position: relative;
  padding: clamp(26px, 6vw, 36px);
  background: rgb(255, 255, 255);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.3);
  display: grid;
  gap: clamp(18px, 4vw, 26px);
}
.hp-team .modal__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 20px;
}

.hp-team .hp-team-modal-header{
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.hp-team .hp-team-modal-cover{
  margin: 0;
}
.hp-team .hp-team-modal-photo{
  display: block;
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
}
.hp-team .hp-team-modal-meta{
  display: grid;
  gap: 8px;
}
.hp-team .hp-team-modal-name{
  margin: 0;
  color: var(--paper);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
}
.hp-team .hp-team-modal-role{
  margin: 0;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(27,27,27,.65);
}
.hp-team .hp-team-modal-links{
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hp-team .hp-team-modal-links a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,.2);
  background: rgba(255,255,255,.7);
  color: #000;
}
.hp-team .hp-team-modal-body{
  display: grid;
  gap: 12px;
  color: #1b1b1b;
  line-height: 1.6;
}

@media (max-width: 860px){
  .hp-team .hp-team-modal-header{
    grid-template-columns: 1fr;
  }
  .hp-team .hp-team-modal-photo{
    max-height: 260px;
  }
}
