/**
 * Styles pour la popup de détail des membres de l'annuaire
 */

/* Global */
#iacf-directory-form{
    display: flex;
    flex-wrap: wrap;
    gap:30px;
    color:white;
}
#iacf-directory-form .form-group{
    width:100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    padding:20px;
    background:rgba(255, 255, 255, 0.1);
}
#iacf-directory-form .form-group .label{
    width:100%;
    text-transform: uppercase;
    letter-spacing:0.1rem;
    font-weight:600;
    width:fit-content;
}
#iacf-directory-form .form-group .group-flex{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: center;
    align-items: center;
    gap:20px;
    width:fit-content;
    max-width:calc(100% - 200px);
}

/* Styles pour les boutons radio de statut */
.radio-option {
    position: relative;
    display: inline-block;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0 200px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.radio-label::after {
    content: '';
    width: 18px;
    height: 18px;
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    flex-shrink: 0;
}


.radio-option input[type="radio"]:checked + .radio-label::after {
    background: white;
    border-color: rgba(255, 255, 255, 0.5);
    position: relative;
}

.radio-option input[type="radio"]:checked + .radio-label::before {
    content: '';
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 50%;
    z-index: 1;
}

/* Styles pour les champs de critères */
.criteria .field-group {
    width: 300px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.field-group input[type="text"] {
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    padding: 0;
    width: 100%;
    outline: none;
}

.field-group input[type="text"]::placeholder {
    color: white;
    font-weight:500;
    text-transform: uppercase;
}

.field-group select {
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    padding: 0;
    width: 100%;
    outline: none;
    text-transform: uppercase;
}

.field-group select option {
    background: #333;
    color: white;
}

/* Search status */
.search-status{
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    gap:20px 50px;
    width:100%;
    margin-bottom:50px;
}

/* Results */
#results{
    padding:0 20px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: stretch;
    gap:40px
}

#reset-filters{
    border: 1px solid red;
    background: none;
    padding: 5px 10px;
    color: red;
    cursor: pointer;
}

/* Users */
.member {
    border: 1px solid var(--blue);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding:20px;
    width:calc((100% - 120px) / 4);
    line-height:1.3;
}
.member:before{
    content: '';
    position: absolute;
    z-index: -1;
    top:-12.5px;
    left:-12.5px;
    width: 30px;
    height: 30px;
    background: rgba(var(--rgbturquoise), 0.3);
}
.member-details-btn {
    position: absolute;
    width: 35px;
    height: 35px;
    bottom: 0;
    right: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 300;
    background: var(--turquoise) url(https://dev.madeforyou-agency.com/iacf/wp-content/uploads/2025/08/event-link.svg) no-repeat left center;
    background-size: auto 35px;
    color: white;
    transition: all 500ms ease;
    border:none;
    cursor:pointer;
}
.member:hover .member-details-btn {
    background-position: left -35px center;
}

.member .statut{
    font-size: 0.8rem;
    color:black;
}

.member h3 {
    font-size: 1.2rem;
    line-height: 1.2;
    height: 50px;
    overflow: hidden;
    color:var(--blue);
}
.member-summary {
    padding-left:15px;
}
.member-summary p {
    margin: 0 0 10px 0;
    padding-bottom: 0;
}
.member-summary p:last-of-type {
    padding-bottom: 0;
    padding-right: 30px;
    font-size: 0.9rem;
}

/* Overlay de la popup */
.iacf-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.iacf-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Contenu de la popup */
.iacf-popup-content {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.iacf-popup-overlay.active .iacf-popup-content {
    transform: scale(1);
}

/* Bouton de fermeture */
.iacf-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.iacf-popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Corps de la popup */
.iacf-popup-body {
    padding: 20px;
    padding-top: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Scrollbar élégante */
.iacf-popup-body::-webkit-scrollbar {
    width: 6px;
}

.iacf-popup-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.iacf-popup-body::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 6px;
}

.iacf-popup-body::-webkit-scrollbar-thumb:hover {
    background: var(--blue);
}

/* Sections d'informations */
.iacf-info-section {
    margin-bottom: 20px;
}

.iacf-info-section:last-child {
    margin-bottom: 0;
}

.iacf-info-section h3 {
    color: var(--main);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    padding-bottom: 6px;
    letter-spacing:0.07rem;
    border-bottom: 1px solid var(--turquoise);
}

/* Lignes d'informations */
.iacf-info-line {
    display: flex;
    margin-bottom: 6px;
    line-height: 1.4;
    font-size: 13px;
}

.iacf-info-line:last-child {
    margin-bottom: 0;
}

.iacf-info-label {
    font-weight: 700;
    color: var(--main);
    min-width: 220px;
    flex-shrink: 0;
}

.iacf-info-value {
    color: var(--main);
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
}

/* Liens spéciaux */
.iacf-info-value a {
    color: var(--lagoon);
    text-decoration: none;
    transition: color 0.2s ease;
}

.iacf-info-value a:hover {
    color: #00a3fb;
    text-decoration: underline;
}

/* Styles pour téléphone et email */
.iacf-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.iacf-contact-link::before {
    content: "";
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}

a[href^="tel:"].iacf-contact-link::before {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233498db'%3e%3cpath d='M20.01 15.38c-1.23 0-2.42-.2-3.53-.56a.977.977 0 00-1.01.24l-1.57 1.97c-2.83-1.35-5.48-3.9-6.89-6.83l1.95-1.66c.27-.28.35-.67.24-1.02-.37-1.11-.56-2.3-.56-3.53 0-.54-.45-.99-.99-.99H4.19C3.65 3 3 3.24 3 3.99 3 13.28 10.73 21 20.01 21c.71 0 .99-.63.99-1.18v-3.45c0-.54-.45-.99-.99-.99z'/%3e%3c/svg%3e");
}

a[href^="mailto:"].iacf-contact-link::before {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233498db'%3e%3cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3e%3c/svg%3e");
}

/* Responsive */
@media (max-width: 768px) {
    .iacf-popup-content {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
    }
    
    .iacf-popup-body {
        padding: 15px;
        padding-top: 25px;
        max-height: 75vh;
        overflow-y: auto;
    }
    
    .iacf-info-line {
        flex-direction: column;
        gap: 2px;
    }
    
    .iacf-info-label {
        min-width: auto;
        width: 100%;
        display: block;
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .iacf-info-value {
        font-size: 12px;
        display: block;
    }
}
