/* Section des pilotes */
.pilotes-section {
  margin: 20px;
  font-size: 40px;
} 
.pilotes-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px;
  gap: 30px;
}

.team-group {
  display: inline-block;
  background: linear-gradient(135deg, #18191a 0%, #232526 100%);
  border-radius: 18px;
  box-shadow: 0 4px 18px #0002;
  margin: 38px auto 38px auto;
  padding: 28px 18px 18px 18px;
  border: 1.5px solid #23252644;
  width: auto;
  min-width: 0;
  max-width: 100vw;
}
.team-group-title {
  font-size: 22px;
  font-weight: bold;
  color: #ffd700;
  margin-bottom: 18px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 2px 8px #000, 0 1px 0 #fff2;
}
.team-group-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 18px 10px;
  justify-content: center;
  align-items: stretch;
  overflow-x: unset;
  padding-bottom: 4px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}
.pilote-card {
  background-color: #111;
  width: 270px;
  min-width: 220px;
  max-width: 100%;
  padding: 18px 12px 16px 12px;
  border-radius: 14px;
  box-shadow: 0 2px 8px #0003;
  text-align: center;
  color: #fff;
  transition: transform 0.18s, box-shadow 0.18s;
  border: 1.5px solid #23252644;
  margin-bottom: 0;
  margin-top: 0;
  font-size: 14px;
  cursor: pointer;
}
.pilote-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 8px 32px #ffd70033, 0 2px 8px #0003;
  border-color: #ffd700;
}
.pilote-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}
.pilote-card h3 {
  font-size: 18px;
  color: #ffd700;
}
.pilote-card .bio {
  font-size: 14px;
  margin-top: 10px;
  text-align: left;
  color: #e0e0e0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: max-height 0.25s, color 0.18s;
  max-height: 3.8em;
}

.pilote-card.open {
  z-index: 10;
  transform: scale(1.08) !important;
  box-shadow: 0 12px 40px #ffd70066, 0 2px 8px #0003;
  border-color: #ffd700;
}
.pilote-card.open .bio {
  display: block;
  -webkit-line-clamp: unset;
  max-height: 100vh;
  overflow: visible;
  background: #18191a;
  color: #ffd700;
  padding: 8px 0 0 0;
}
.pilote-card .show-more {
  display: block;
  color: #ffd700;
  font-size: 0.9em;
  margin-top: 4px;
  text-align: right;
  cursor: pointer;
  text-decoration: underline;
}

.pilote-card p {
  font-size: 16px;
  margin-top: 10px;
  color: #ffffff;
}

.pilote-card .socials {
  margin-top: 20px;
}

.pilote-card .socials a {
  margin: 0 10px;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.pilote-card .socials a:hover {
  color: #ff4500;
}
h2 {
  font-size: 50px;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  unicode-bidi: isolate;
  text-align: center;
}
.hamburger {
  display: none;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  header {
    position: relative;
    z-index: 1000;
  }

  /* Afficher le hamburger */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger span {
    height: 4px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
  }

  /* Menu caché par défaut */
  nav ul {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    z-index: 999;
  }

  /* Menu affiché quand .show est actif */
  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin: 20px 0;
  }

  nav ul li a {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
  }
}
@media (max-width: 900px) {
  .team-group-list {
    flex-wrap: wrap;
    gap: 10px 6px;
    width: 100%;
    display: flex;
  }
  .pilote-card {
    min-width: 210px;
    width: 80vw;
    max-width: 320px;
  }
  h2 {
    font-size: 35px;
    margin-bottom: -20px;
  }
}
