/* ================================
   Adaptation pour 1 carte par ligne
   ================================ */

/* Conteneur global des cartes */
.voyant-liste-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;           /* Espacement entre les cartes */
    justify-content: center;
}

/* Chaque carte occupe deux fois moins la largeur disponible (deux cartes par ligne) */
.profile-card {
    width: calc((100% - 20px) / 2); /* Deux cartes par ligne, gap inclus */
    display: flex;                  /* Layout flex interne */
    flex-direction: column;
    border: 2px solid #7ba389;
    border-radius: 10px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Inclut bordures et padding */
    position: relative;
    padding: 0 !important;
}

/* Si vous souhaitez que chaque carte occupe vraiment toute la largeur,
   sans tenir compte du gap horizontal, utilisez simplement width: 100%. */
/* .profile-card { width: 100%; } */

.profile-expert-code {
    position: absolute;
    top: 140px;
    right: 0px;
    font-size: 17px;
    padding: 5px;
    border-radius: 5px;
    color: #b5995a;
    font-weight: bold;
	flex-wrap: wrap;
    z-index: 3;
	font-family: 'litespeedfont';
}

.profile-banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.profile-info {
    padding: 20px;
    text-align: center;
	flex-wrap: wrap;
}

.profile-button {
    margin: 0 auto;
    display: block;
	flex-wrap: wrap;
}

.profile-info h2 {
    margin: 70px 0 15px 0;
    font-size: 22px;
    color: #b5995a;
    font-weight: bold;
    font-style: italic;
	flex-wrap: wrap;
}

.contact-icons {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.contact-icon {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
	flex-wrap: wrap;
}

.stars, 
.consultations {
    position: absolute;
    top: 190px;
    font-size: 16px;
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #C72C48;
	font-family: 'litespeedfont';
}

.stars {
    left: 5px;
	flex-wrap: wrap;
}

.stars span {
    color: #C72C48;
    margin-right: 5px;
    font-weight: 700;
	flex-wrap: wrap;
}

.consultations {
    right: 5px;
    color: #777;
    top: 190px;
	flex-wrap: wrap;
}

/* ====================================
   Styles pour la barre de filtres (inchangés)
   ==================================== */

.voyant-filters-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 10px;
    font-family: Besley;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.voyant-category-filter {
    display: flex;
    align-items: center;
    font-family: Besley;
    gap: 10px;
}

.voyant-category-filter label {
    font-size: 16px;
    font-weight: bold;
    color: #555;
    font-family: Besley;
    white-space: nowrap;
}

.voyant-category-filter select,
.voyant-category-filter input[type="text"],
.voyant-category-filter .sort-select {
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #7ba389;
    border-radius: 5px;
    background-color: white;
    color: #555;
    font-family: Besley;
    transition: all 0.3s ease-in-out;
}

.voyant-category-filter select:hover,
.voyant-category-filter input[type="text"]:hover,
.voyant-category-filter .sort-select:hover {
    border-color: #b5995a;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.2);
}

.voyant-category-filter select:focus,
.voyant-category-filter input[type="text"]:focus,
.voyant-category-filter .sort-select:focus {
    outline: none;
    border-color: #7ba389;
    font-family: Besley;
}

.voyant-category-filter button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #7ba389;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: Besley;
    transition: all 0.3s ease-in-out;
}

.voyant-category-filter button:hover {
    background-color: #b5995a;
}

/* ====================================
   Media Queries pour empiler les filtres
   ==================================== */

@media (max-width: 915px) {
    .voyant-filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .voyant-category-filter {
        width: 100%;
        text-align: left;
    }
    .voyant-category-filter label {
        margin-bottom: 5px;
    }
    .voyant-category-filter select,
    .voyant-category-filter input[type="text"] {
        width: 100%;
    }
    .voyant-category-filter button {
        width: 100%;
    }
}



/* (Vous pouvez conserver ou ajuster les autres breakpoints pour la barre de filtres si nécessaire) */


/* ====================================
   Suppression ou commentaire des anciennes media queries
   qui modifiaient la largeur de .profile-card
   ==================================== */


@media (max-width: 480px) {
  /* On empile les cartes */
  .voyant-liste-wrapper {
    flex-direction: column;
    align-items: stretch; /* pour que les cartes fassent toute la largeur du parent */
  }

  /* Chaque carte prend 100% de la largeur disponible */
  .profile-card {
    width: 100% !important;
    /* facultatif : pour espacer un peu les cartes verticalement */
    margin-bottom: 20px;
  }
}

/*
@media (max-width: 1280px) {
    .profile-card {
        width: calc(33% - 16px);
    }
}
@media (max-width: 917px) {
    .profile-card {
        width: calc(50% - 16px);
    }
}
@media (max-width: 853px) {
    .profile-card {
        width: calc(50% - 16px);
    }
}
@media (max-width: 820px) {
    .profile-card {
        width: calc(50% - 16px);
    }
}
@media (max-width: 768px) {
    .profile-card {
        width: calc(50% - 16px);
    }
}
@media (max-width: 540px) {
    .profile-card {
        width: calc(100% - 16px);
    }
}


@media (max-width: 768px) and (orientation: landscape) {
    .profile-card {
        width: calc(50% - 16px);
    }
}
@media (max-width: 480px) and (orientation: landscape) {
    .profile-card {
        width: calc(80% - 16px);
    }
}
@media (max-width: 915px) and (orientation: landscape) {
    .profile-card {
        width: calc(50% - 16px);
    }
}
*/
