
/** affichage en grille */

.wlc-partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1200px) {
    .wlc-partners-grid {
        grid-template-columns: repeat(4, 1fr); /* Maximum 4 colonnes */
    }
}

@media (max-width: 768px) {
    .wlc-partners-grid {
        grid-template-columns: repeat(2, 1fr); /* Maximum 2 colonnes */
    }
}

@media (max-width: 680px) {
    .wlc-partners-grid {
        grid-template-columns: 1fr; /* 1 seule colonne */
    }
}


.wlc-partner-item, 
.wlc-partner-detailed-item  {
    position: relative;
    width: 100%; /* S'adapte à la largeur de la grille */
    background: #fff;
    text-align: center;
    box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.07);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center; /* Centre le logo dans le container */
    overflow: hidden; /* Empêche le logo de dépasser */
    height: auto; /* La hauteur s'ajuste en fonction de l'image */
    min-height: 195px; /* Hauteur minimale pour éviter un conteneur trop petit */
    padding:20px;
}

.wlc-partner-item img,
.wlc-partner-detailed-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Maintient les proportions de l'image sans couper */
    max-width: 195px; /* Limite la taille du logo en largeur */
    max-height: 195px; /* Limite la taille du logo en hauteur */
}






/**  Affichage détaillé **/

  /* Ajout d'un petit indicateur */

  .wlc-partner-detailed-item {
    cursor: pointer;
    position: relative;
}

.wlc-partner-detailed-item::before {
  content: "Plus d'infos";
  font-size: 0.9em;
  color: #ffffff;
  position: absolute;
  bottom: 0;
  right: 0;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  /* font-weight: bold; */
  background-color: #149d71;
  border-radius: 5px 0 5px 0;
  padding: 0 30px 0 10px;
}

.wlc-partner-detailed-item::after {
  content: "\f0a9"; /* Code Unicode pour l'icône 'plus' dans Font Awesome 4.7 */
  font-family: "FontAwesome"; /* La famille de police pour Font Awesome 4.7 */
  font-size: 1.5em;
  color: #fff;
  position: absolute;
  bottom: 0;
  right: 5px; 
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.wlc-partner-detailed-item:hover::before,
.wlc-partner-detailed-item:hover::after {
  opacity: 1; /* Augmente l'opacité au survol */
}

/* Popup de plein écran */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.3s ease;
}

/* Contenu du popup */
.popup-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 650px;
    height: auto;
    text-align: left;
    position: relative;
    animation: popup-expand 0.5s ease forwards;
    overflow-y: auto;
    max-height: 90vh; /* Limite la hauteur du popup */
    border: 10px solid #149D71;
}

@media (max-width: 680px) {
  .popup-content {
    padding: 30px 20px;
  }
}

/* Animation de déploiement de la popup */
@keyframes popup-expand {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Titre du popup */
.popup-content h3 {
    margin-top: 0;
    font-size: 1.8em;
    font-weight: bold;
    text-align: center !important;
}

/* Icône croix pour fermer la popup */
.close-btn {
    font-size: 2em;
    color: #0F3248;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #149D71;
}

/* Logo en haut de la popup */
.popup-logo {
    width: 120px; /* taille du logo */
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Informations sur le partenaire */
.popup-content p {
    line-height: 1.6;
    margin: 10px 0;
    text-align: center;
}

/* Liens */
.popup-content a {
    text-decoration: none;
}

.popup-content a:hover {
    text-decoration: underline;
}

/* Documentation - Liste des documents */
.popup-content h4 {
    margin-top: 40px !important;
    font-size: 1.3em;
    margin-top: 20px;
    color: #0F3248;
    font-weight: 600;
}

.popup-content ul {
    list-style: none;
    padding: 0;
}

@media (max-width: 680px) {
  .popup-content ul {
    margin-left: 0;
  }
}

.popup-content ul li {
    margin: 5px 0;
}

.popup-content ul li a {
    text-decoration: none;
}

.popup-content ul li a:hover {
    text-decoration: underline;
}

.popup-content ul li .fa {
  color: #0F3248;
  margin-right: 10px;
}


