/* ==========================================================================
   Section : Thèmes de Recherche
   ========================================================================== */
.research-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
  padding-top: 0;
}

.research-section__container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
  gap: 50px;
  max-width: 1400px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Carte statique (gauche)
   -------------------------------------------------------------------------- */
.research-card--static {
  background: #f7fafe;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-height: 320px; /* correspond à la hauteur d’une carte ouverte */
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #555;
}

.research-card--static h2 {
  font-size: 26px;
  color: #2f5572;
  margin-bottom: 20px;
}

.research-card--static p {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Listes à l’intérieur des cartes
   -------------------------------------------------------------------------- */
.research-card--static ul,
.research-card__content ul {
  list-style: disc inside;
  margin: 0 0 1rem; /* supprime le margin-left natif */
  padding-left: 1.25rem; /* retrait personnalisé */
  padding-top: 10px;
  color: #555;
}

.research-card--static li,
.research-card__content li {
  margin-bottom: 6px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Cartes dynamiques (droite)
   -------------------------------------------------------------------------- */
.research-section__cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.research-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   Entête et icône expansible
   -------------------------------------------------------------------------- */
.research-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
}

.research-card__header h3 {
  font-size: 18px;
  color: #2f5572;
  margin: 0;
}

.expand-icon {
  font-size: 24px;
  font-weight: bold;
  color: #7da0bf;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* --------------------------------------------------------------------------
   Contenu caché et état “ouvert”
   -------------------------------------------------------------------------- */
.research-card__content {
  max-height: 0;
  padding: 0 25px;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.research-card.open .research-card__content {
  max-height: 300px; /* adapter selon la quantité de texte */
  padding: 15px 25px;
}

.research-card.open .expand-icon {
  transform: rotate(180deg);
  color: #d9534f;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
/* Tablette et plus petit écran */
@media (max-width: 1024px) {
  .research-section__container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* On aligne à gauche plutôt qu'au centre */
  .research-section__cards {
    align-items: flex-start; /* <-- modification ici */
  }

  /* Les cartes occupent 100% du conteneur, sans max-width */
  .research-card {
    width: 100%;
    max-width: none; /* <-- suppression du max-width existant */
  }

  .research-card--static {
    min-height: auto;
    text-align: center;
  }
}

/* Mobiles */
@media (max-width: 600px) {
  .research-section {
    padding: 30px 15px;
  }
  .research-card--static h2 {
    font-size: 22px;
  }
  .research-card__header {
    padding: 15px 20px;
  }
}
