/* =========================================================
   EQUIPE.CSS — L'EQUIPE (Version sans rotation)
   ========================================================= */

/* -------------------------
   GRID
------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 28px;
  justify-items: center;
}

/* -------------------------
   VARIABLES
------------------------- */
:root {
  --radius: 18px;
  --duration: 300ms;
  --easing: cubic-bezier(.4,.2,.2,1);
}

/* -------------------------
   CARD STRUCTURE
------------------------- */
.scene {
  width: 100%;
  display: flex;
  justify-content: center;
}

.card {
  width: 300px;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #283587;
  box-shadow:
    0 20px 40px rgba(0,0,0,.15);
  transition: transform var(--duration) var(--easing),
              box-shadow var(--duration) var(--easing);
  display: flex;
  flex-direction: column;
}

/* Hover léger moderne */
.card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 28px 50px rgba(0,0,0,.2);
}

/* -------------------------
   IMAGE + FRONT CONTENT
------------------------- */
.face {
  position: relative;
  display: flex;
  flex-direction: column;
}

.front img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* Nom */
.front-title {
  font-size: 20px;
  font-weight: 700;
  color: #ECDD12;
  padding: 1rem 1.2rem 0.2rem;
}

/* Rôle */
.front h3 {
  margin: 0;
  padding: 0 1.2rem;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

/* Infos */
.front p {
  padding: 0.8rem 1.2rem 1.4rem;
  font-size: 14px;
  line-height: 1.6;
  color: #adb8c9;
  margin: 0;
}

/* -------------------------
   RESPONSIVE
------------------------- */
@media (max-width: 768px) {
  .card {
    width: 100%;
    max-width: 340px;
  }
}