
/*                                       */
/* Collapsible Sections avec mode exclusif/non-exclusif */
.collapsible-group {
  margin: 1rem auto;
  width: 90%;
  max-width: 700px;
}

.collapsible {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.collapsible-trigger {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #f8fafc;
  color: #334155;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.collapsible-trigger:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background-color: #ffffff;
  color: #475569;
  font-size: 0.95rem;
/*  padding: 0 1rem; */
  padding: 0; /* supprimé le padding par défaut pour mieux gérer ci-dessous */
}

.collapsible.open .collapsible-content {
/*  padding: 0.3rem 0.3rem; */
  padding: 0.5rem; /* Augmenté à 0.5rem ou 1rem pour meilleure aération */
}

.collapsible.open .collapsible-trigger {
  background-color: #e2e8f0;
  color: #0f172a;
  font-weight: 600;
}

/*  Gérer les icônes associée  */

.collapsible-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.collapsible-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

/* Rotation de l'icône lorsque ouvert */
.collapsible.open .collapsible-icon {
  transform: rotate(180deg);
}


/* Conteneur Duo (Image à gauche, Texte à droite) */

/* Duo Container */
.duo-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;  /* <=== */
  /*justify-content: space-between; */
  gap: 1.5rem;
  margin: 0.2rem auto;
  width: 100%;
  max-width: 1000px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  padding: 0.3rem;

}

/* Image */
.duo-image {
  flex: 1;
}

.duo-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Texte */
.duo-text {
  flex: 1.2;
  color: #334155;
}

.duo-text h3 {
  margin-top: 0; /* supprime la marge haute par défaut */
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.duo-text p {
  font-size: 0.8rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Bouton principal élégant */
.btn-primary {
  display: inline-block;
  padding: 0.3rem 0.4rem;
  background-color: #34495e;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #6993C4;
  color: #000;
  /*font-weight: bold; */
}

/* Responsive : mobiles et petits écrans */
@media (max-width: 768px) {
  .duo-container {
    flex-direction: column;
    align-items: center; /* garantit un centrage horizontal propre */
    gap: 0.5rem;         /* léger espacement vertical entre image et texte */
    padding: 0.5rem;     /* ajouté : espacement intérieur agréable */
    box-sizing: border-box; /* Assure la prise en compte du padding dans la largeur */
  }

  .duo-image, .duo-text {
    width: 100%;
    box-sizing: border-box;
  }	
  .duo-text {
    order: 2;
  }

  .duo-image {
    order: 1;
    margin-bottom: 0.3rem;
  }
}


/* conteneur universel pour alignement facile */

.align-container {
  width: 100%;
  display: flex;
}

.align-left {
  justify-content: flex-start;
}

.align-center {
  justify-content: center;
}

.align-right {
  justify-content: flex-end;
}
