/****************************************************************************/
/**************** PAGE ASSO PERSONNALIS MODALES BENEVOLES *******************/
/****************************************************************************/

.uagb-modal-popup-wrap {
  width: 92vw !important;
}

@media (max-width: 768px) {
  .uagb-modal-popup.active {
    max-width: 95vw !important;
  }
}

/**********************************************************************/
/********************* Mise en forme des bénévoles ********************/

.argos-benevoles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1em;
  width: 100%;
  align-items: stretch;
  justify-content: stretch;
  row-gap: 3em;
}

.argos-benevole {
  max-width: 300px !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 280px;
  padding-top: 20px;
  justify-content: center;
  align-items: stretch;
  justify-content: space-between;
  justify-self: center;
}

@media (max-width:500px) {
  .argos-benevole {
    border-top: 2px solid var(--ast-global-color-0);
    padding-bottom: 20px;
    padding-top: 20px;
  }
}

.argos-benevole-haut {
  max-width: 100%;
  flex-grow: 1;
  /* Prend toute la hauteur dispo */
  display: flex;
  flex-direction: column;
  align-items: center !important;
}

.argos-benevole-image {
  width: 200px;
  aspect-ratio: 1/1;
  text-align: center;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

h3.argos-benevole-nom {
  font-weight: 800;
  display: block;
  margin-block-start: 0;
  margin-block-end: 0;
}

.argos-benevole-titre {
  text-align:center;
  font-size: 15px;
  color: #888888;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.argos-benevole-courte-presentation {
  font-weight: 400;
  font-size: 15px;
  line-height: var(--ast-body-line-height, 1.65);
  text-align: center;
}

.argos-benevole-btn-modal {
  align-self: center;
  max-width: 200px;
}

/* Conteneur modale (fond semi-transparent plein écran) */
.argos-benevole-modal {
  display: none;
  /* cachée par défaut */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  overflow-y: auto;
  padding: 1rem;
  box-sizing: border-box;
}

/* Contenu modale centrée */
.argos-benevole-modal-content {
  background: var(--ast-global-color-6);
  max-width: 800px;
  margin: 3rem auto;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Bouton fermeture en haut à droite */
button.argos-benevole-modal-close {
  color: var(--ast-global-color-0);
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  border: none;
  background: transparent;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s ease;
  box-shadow: none;
}

/* Autres boutons fermeture modale */
.uagb-modal-popup.active .uagb-modal-popup-close {
    top: 25px;
    left:0;
    color:var(--ast-global-color-0);
}

.argos-benevole-modal-close:hover {
  color: var(--ast-global-color-2);
  outline: none;
}

/* Intérieur modale */
/* Texte de présentation avec mise en forme */
.argos-benevole-presentation p {
  margin-bottom: 1rem;
}


.argos-benevole-animaux-title {
  text-align: center;
}

.image-center {
  text-align: center;
}

.argos-benevole-animaux {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: stretch;
  margin: 0.5rem;
  text-align: center;
  width: 100%;
  gap: 10px;
  justify-content: start;
  /* par défaut à gauche */
}

/* Si un seul enfant */
.argos-benevole-animaux> :only-child {
  justify-self: center;
  /* centre cet enfant seul */
  max-width: 45%;
  /* limite sa largeur */
  width: 100%;
  /* pour respecter max-width */
}

/* Images animaux dans la modale */
.argos-benevole-animal {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin: 0.5rem;
  text-align: center;
}

.argos-benevole-animal-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.argos-benevole-animal-nom {
  margin-top: 0.3rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ast-global-color-2);
}

/* Responsive : tablettes */
@media (max-width: 1024px) {
  .argos-benevole-modal-content {
    margin: 1rem auto;
    width: 85%;
    padding: 0.8rem;
  }

  .argos-benevole-animal {
    width: 45%;
  }
}

/* Responsive : sur petits écrans */
@media (max-width: 768px) {
  .argos-benevole-modal-content {
    margin: 1rem auto;
    width: 95%;
    padding: 0.7rem;
  }

  .argos-benevole-animal {
    width: 95%;
  }
}

iframe,
iframe.instagram-media {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}