/* Styles pour le trombinoscope */

.trombinoscope-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  justify-content: center;
}

@media (min-width: 768px) {
  .trombinoscope-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .trombinoscope-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trombinoscope-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  background: #f9f9f9;
  border-radius: 1rem;
  padding: 1rem;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  cursor: default;
  gap: 1.5rem;
  box-sizing: border-box;
}

.trombinoscope-card:hover {
  transform: scale(1.02);
}

.trombinoscope-photo {
  /* aspect-ratio: 3 / 4;*/
  aspect-ratio: 1;
  width: 7.5rem;
  object-fit: cover;
  border-radius: 0.5rem;
  background: #ddd;
  display: block;
}

.trombinoscope-content {
  flex: 1;
  /* flex-direction: column;
  justify-content: space-between;
  min-height: 7.5rem;
  display: flex;
  */

  padding: 1rem 0;
}
.trombinoscope-content h3 {margin-bottom: 0.5em;}

.trombinoscope-nom {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom:1em;
}

.trombinoscope-parcours {
  p {
    font-size: 1.2rem;
    color: #555;
   margin-bottom: 0.5em;
  }
}

.trombinoscope-popup-btn {
  background: #0e6fff;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  display: inline;
  width: fit-content;
}

/* Popup masquée par défaut, centrée à l'écran */
.trombinoscope-popup {
  display: none !important;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
}

.trombinoscope-popup.show {
  display: flex !important;
}

.popup-content {
  background: #fff;
  border-radius: 1rem;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
}

.popup-photo img {
  max-width: 240px;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1rem;
  background: #ccc;
}

.popup-info {
  flex: 1;
  min-width: 240px;
}

.popup-info h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.popup-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.popup-info p {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.fiche-detaillee {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #333;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}
.popup-info {
  flex: 1;
  min-width: 240px;
}

.fiche-detaillee {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #333;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}
