/********************************
 * Styles pour l'affichage de l'annuaire
 ********************************/

/* Styles généraux */
.directory-label-expert-list {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Style du filtre */
.directory-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #555;
    font-size: 12px;
    margin-bottom: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Styles pour les tags */
.directory-tags,
.directory-tags-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 8px 0;
    gap: 8px;
}



.tags-list.expanded {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.toggle-tags {
  margin-left: 6px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  color: #0073aa;
}

.tags-list .hidden-tag {
  display: none;
}

.tags-list .show-tag {
  display: block;
}


.tags-list a {
  font-size: 12px !important;
}

.directory-tags .tags-icon,
.directory-tags-list .tags-icon {
    color: #666;
    margin-right: 8px;
}

.directory-tag-link {
    display: inline-block;
    background-color: #f0f8ff;
    color: #3498db;
    border: 1px solid #d0e5f5;
    border-radius: 15px;
    padding: 3px 10px;
    font-size: 0.85em;
    text-decoration: none;
    margin-right: 5px;
    transition: all 0.2s ease;
}

.directory-tag-link:hover {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
    transform: translateY(-1px);
    text-decoration: none;
}

.directory-filters {
    /* background-color: #f9f9f9; */
    /* padding: 20px; */
    border-radius: 8px;
    margin-bottom: 25px;
    /* border: 1px solid #e0e0e0; */
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.05); */
}

.directory-filter-form {
    display: flex;
    flex-direction: column;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    width: 100%;
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    flex: 1;
    min-width: 180px;
}

.filter-group.search-group {
    flex: 2;
    min-width: 280px;
}

.filter-group.button-group {
    align-self: flex-end;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    margin-top: 24px;
}

.filter-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    width: 100%;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.directory-filter-button {
    background-color: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
    /* margin-right: 10px; */
}

.directory-filter-button:hover {
    background-color: #185a8c;
}

.directory-reset-button {
    color: white !important;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.directory-phone {
    display: flex;
    justify-content: start;
    /* border: 1px solid #6c757d; */
    /* padding: 5px; */
}
.directory-rating{
    /* display: flex; */
    justify-content: space-between;
}
.directory-location{
    display: flex;
    justify-content: start;
    align-items: center;
}
.container-phone{
    display: flex;
    justify-content: start;
    align-items: center;
}

.directory-rdv{
    display: flex;
    justify-content: start;
}

.directory-location .location-text , .directory-phone span.phone-text , .directory-rdv .rendez-vous-link , .directory-date .tags-list{
    color: #6c757d;
    font-size: 13px;
}
.phone-text{
    color: #6c757d;
    font-size: 13px;
}

.directory-date div{
    display: flex;
    justify-content: start;
    align-items: center;
}

.directory-phone .phone-icon ,
 .directory-date .certification-text ,
 .directory-location .location-icon ,
 .directory-date .fas.fa-tag,
 .directory-rdv .date-icon {
    color: #6c757d;
    font-size: 13px;
}

div.containier-icon {
    width: 20px;
    height: 33px;
    display: flex;
    justify-content: start;
    align-items: center;
}


.directory-date.rendez-vous-link {
    color: #0070ff;
    border-radius: 5px;
    background-color: transparent;
}

.directory-reset-button:hover {
    /* background-color: #eaeaea; */
}

/* Responsive design pour les filtres */
@media (max-width: 768px) {
    .filter-group {
        width: 100%;
        margin-right: 0;
    }
    
    .filter-group.button-group {
        justify-content: flex-start;
        margin-top: 10px;
    }
    
}

/* Style de la grille */

/* Style des éléments individuels */
.directory-item {
    display: flex;
    /*position: relative;*/
    /* border-radius: 12px; */
    overflow: hidden;
    background-color: white;
    justify-content: start;
}

.bloc-element {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 13px;
    min-width: 31%;
    /*position: relative;*/
    margin: 7px;
}

.left-side {
    width: 37%;
}
.element-action {
    margin-right: 3px;
    /*position: absolute;*/
    z-index: 99999;
    right: 12px;
}
.right-side{
    width: 50%;
}

.directory-item:hover {
    /* transform: translateY(-5px); */
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); */
}

/* Style pour le logo */
.directory-logo {
    /*position: relative;*/
    overflow: hidden;
    width: 100px;
    height: 100px;
    margin-bottom: 0;
    box-sizing: border-box;
    background-color: #f8f8f8;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
}

.directory-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.97);
}
.directory-logo:hover img {
    transform: scale(1.05);
    filter: brightness(1.03);
}

/* Style pour le bouton favoris */
.favorite-btn,
.favorite-icon {
    /* position: absolute;
    top: 10px;
    right: 10px; */
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.favorite-icon svg,
.favorite-btn svg {
    width: 16px;
    height: 16px;
    fill: #888;
    transition: fill 0.3s ease;
}

.favorite-icon:hover,
.favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.favorite-icon:hover svg,
.favorite-btn:hover svg {
    fill: #ff6b6b;
}

/* Style pour le badge de labellisation */
.directory-labellise-badge {
    /* position: absolute;
    top: 10px;
    left: 10px; */
    /* background-color: rgba(0, 115, 170, 0.9); */
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 15px;
}

.certificate-check-icon {
    /*position: relative;*/
    display: inline-block;
}
.certificate-check-icon .certificate-check.annuaire {
    transform: translate(-50%, -50%);
    color: white;
    font-size: 13px;
}

.certificate-check-icon .fa-certificate.annuaire {
    color: #0070ff;
    font-size: 30px;
}


.directory-labellise-badge i {
    font-size: 16px;
}

.directory-labellise-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Style pour le popover */
.labellise-popover {
    /*position: absolute;*/
    top: 45px;
    left: 0;
    width: 250px;
    background-color: white;
    border-radius: 8px;
    padding: 12px 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 99998 !important;
}

.directory-labellise-badge:hover .labellise-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.labellise-popover:after {
    content: "";
    /*position: absolute;*/
    top: -8px;
    left: 15px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.labellise-popover h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #0073aa;
    font-size: 16px;
    font-weight: 600;
}

.labellise-popover p {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

/* Style pour les boutons radio */
.radio-group {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    margin-right: 5px;
}

.formulaire_ajout_annuaire_group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
    font-style: italic;
}

.favorite-icon svg {
    stroke: #ccc;
    transition: all 0.2s ease;
}

.favorite-icon:hover svg {
    stroke: #e74c3c;
    transform: scale(1.1);
}

/* Style du contenu */
.directory-content {
    margin-top: 10px;
    /* padding: 20px; */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: #ffffff;
    border-radius: 0 0 12px 12px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
}

.directory-content > div {
    margin-bottom: 5px !important;
}

/* Style du titre */
.directory-excerpt {
    color: #666;
    margin-bottom: 16px;
    flex-grow: 1;
    line-height: 1.6;
    font-size: 14px;
    font-weight: 300;
}

.directory-title {
    margin: 0 ;
    font-size: 15px !important;
    /* margin-bottom: 12px; */
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    /* border-bottom: 1px solid rgba(0,0,0,0.05); */
    /* padding-bottom: 10px; */
}

.directory-content .directory-title {
    font-size: 16px;
}

/* Style des actions */
.directory-actions {
    margin-top: 15px;
    padding: 15px;
    width: 50%;
}

.directory-contact i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
    font-size: 14px;
    color: #0073aa;
    opacity: 0.9;
}



/*sqdfsdfsqdfsd*/


.directory-contact .phone a,
.directory-contact .email a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #0073aa;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.directory-contact .phone a:hover,
.directory-contact .email a:hover {
    background-color: rgba(0, 115, 170, 0.1);
    color: #005d8c;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-details a{
    /* color: white !important; */
    /* padding: 0 15px 0 15px; */
    font-size: 12px !important;
    text-transform: uppercase;
}



/* Style de l'item */
.directory-item-row {
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}

.category-icon,
.views-icon {
    margin-right: 6px;
    color: #0073aa;
    font-size: 12px;
    opacity: 0.8;
}

/* Media Queries pour la responsivité */
@media (max-width: 768px) {
    .directory-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .directory-logo {
        height: 180px;
    }
    
    .directory-title {
        font-size: 18px;
        margin-bottom: 15px;
        max-width: 100%;
    }
    
    .directory-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .directory-filters {
        flex-direction: column;
    }
}



.filter-data {
    border-radius: 40px;
    /* border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    border-bottom-right-radius: 40px; */
    padding: 0;
    width: 100%;
    margin: auto;
    display: flex;
    border: 1px solid #6c757d;
    justify-content: space-between;
}

.filter-data .action{
    display: flex;
    /* padding-left: 30px; */
}

.filter-data .input-search , .filter-data .input-ville {
    /*position: relative;*/
    width: 50%;
    border-right: 1px solid ;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 10px;
}

.filter-data .input-ville{
    display: flex;
    justify-content: center;
    align-items: center;
}

.filter-data .separator{
    margin-top: 10px;
    margin-bottom: 10px;
}

.filter-data .input-search .result-search , .filter-data .input-ville .result-search-city {
    /*position: absolute;*/
    top: 59px;
    width: 100%;
    z-index: 99999;
    border: 1px solid;
    background-color: white;
    padding: 16px;
    display: none;
}

.bord{
    border:1px solid black;
}

.result-title {
    cursor: pointer !important;
}


.filter-data input , .filter-data input:focus , .filter-data select , .filter-data select:focus {
    border: none !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.filter-data .action .filtre {
    border-top-right-radius: 40px;
    border-bottom-right-radius: 40px;
    color: white !important;
    font-family: "Montserrat", Sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5em;
}


@media (max-width: 450px) {
    .filter-data{
        width: 100%;
        margin: auto;
    }
    .filter-data .input-search .result-search {
        width: 200%;
        left: 9px;
    }
    .filter-sidebar{
        width: 100% !important;
        max-width: 100% !important;
    }
    .filter-data .input-ville .result-search-city {
        width: 200%;
        left: 0px;
    }
    .directory-logo {
        height: 100px;
    }
    .bloc-element{
        min-width: 100%;
    }
}

@media (max-width: 1498px) {
    .bloc-element{
        width: 48%;
    }
}
@media (max-width: 1068px) {
    .bloc-element{
        width: 100%;
    }
}

.filter-data .result-search .result-name{

}

.filter-data .result-search .result-company{

}
.filter-data .result-search .result-company .bloc-company{
    display: flex;
    margin-top: 5px;
}
.filter-data .result-search .result-company .bloc-company .company-img{
    border: 1px solid;
    width: 50px;
    height: 50px;
}
.filter-data .result-search .result-company .bloc-company .company-detail{
    margin-left: 5px;
}
.filter-data .result-search .result-company .bloc-company .company-detail .company-categorie{
    font-size: 10px;
}