/* ===================================
 SECTION HERO
=================================== */
.team-hero {
  padding: 60px 0 20px;
  text-align: center;
}
.section-intro {
  margin-top: 10px;
  font-size: 18px;
  color: #555;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===================================
 GRID
=================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 30px;
  margin-top: 40px;
}

/* ===================================
 CARD
=================================== */
.team-card {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 24px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* ===================================
 PHOTO
=================================== */
.team-photo img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  margin-bottom: 16px;
}

/* ===================================
 HEADER
=================================== */
.team-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--violet,#dd4242);
}
.team-header span {
  font-weight: 800;
  letter-spacing: .5px;
}

/* ===================================
 TAGS
=================================== */
.team-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.team-tags span {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 20px;
  background: linear-gradient(90deg,#e83e8c,#dd4242);
  color: white;
}

/* ===================================
 TEXT
=================================== */
.team-text {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}
.team-text p {
  margin-bottom: 10px;
}

/* ===================================
 GALLERY (nouvelle section)
=================================== */
.team-gallery {
  padding: 40px 0 60px;
  text-align: center;
}
.team-gallery h2 {
  font-size: 28px;
  margin: 0;
}
.gallery-intro {
  margin-top: 8px;
  color: #666;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 26px;
}
.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  cursor: zoom-in;
}
.gallery-item img:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 44px rgba(0,0,0,.16);
}

/* ===================================
 LIGHTBOX
=================================== */
.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 9999;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
}
.lightbox-content {
  position: relative;
  background: #0b0b0b;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  transform: translateY(10px) scale(.985);
  transition: transform .28s ease;
  max-width: min(96vw, 1100px);
  max-height: 90vh;
}
.lightbox.open .lightbox-content {
  transform: translateY(0) scale(1);
}
.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 48px);
  border-radius: 10px;
}
.lightbox-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: white;
  color: #111;
  font-size: 22px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.lightbox-close:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

/* Screen-reader utility */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ===================================
 RESPONSIVE
=================================== */
@media (max-width: 900px){
  .gallery-grid { grid-template-columns: 1fr; }
}
@media (max-width:700px){
  .team-card{
    padding:20px;
  }
  .team-photo img{
    width:120px;
    height:120px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  * { transition: none !important; animation: none !important; }
}