/* Styles pour le widget Carte Interactive Franchises - Layout Carte + Sidebar */
.franchise-map-container {
    max-width: 1400px;
    margin: 30px auto;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    position: relative;
}

/* Layout principal */
.franchise-layout {
    display: flex;
    flex-direction: row;
    height: 700px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background-color: #ffffff;
}

/* Carte à gauche */
.franchise-map-leaflet {
    flex: 2;
    height: 100%;
    border-right: 1px solid #f0f0f0;
    box-sizing: border-box;
    position: relative;
}

/* Sidebar à droite */
.franchise-sidebar {
    flex: 1;
    padding: 35px;
    background: #ffffff;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.franchise-sidebar h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.5em;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid #F90567;
    padding-bottom: 15px;
    font-weight: 700;
}

/* Bouton de réinitialisation */
.reset-map-btn {
    display: block;
    width: 100%;
    padding: 15px 25px;
    background-color: #F90567;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.reset-map-btn:hover {
    background-color: #D93A66;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Info barre latérale */
.franchise-info {
    margin-bottom: 30px;
    font-weight: 400;
    color: #555;
    text-align: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f8f8f8;
    font-style: italic;
    font-size: 0.95em;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Filtres dans la sidebar */
.franchise-filters {
    margin-bottom: 25px;
}

.franchise-filters .filter-group {
    margin-bottom: 15px;
}

.franchise-filters label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.franchise-filters input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.franchise-filters input:focus {
    outline: none;
    border-color: #F90567;
    box-shadow: 0 0 0 3px rgba(249, 5, 103, 0.1);
}

.search-btn {
    width: 100%;
    background: #F90567;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.search-btn:hover {
    background: #D93A66;
    transform: translateY(-1px);
}

/* Grille des franchisés */
.franchise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    flex: 1;
    overflow-y: auto;
}



/* Barre de recherche en haut */
.franchise-search-bar {
    width: 100%;
    background: #fff;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    padding: 30px 35px 10px 35px;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.franchise-search-bar .franchise-filters {
    width: 100%;
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 0;
}

.franchise-search-bar .filter-group {
    flex: 1;
    min-width: 180px;
}

.franchise-search-bar .search-btn {
    min-width: 140px;
    margin-bottom: 0;
}

/* Section recherche stylée */
.franchise-search-section {
    margin-bottom: 30px;
    padding: 30px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
}

.franchise-search-container {
    max-width: 1200px;
    margin: 0 auto;
}

.franchise-filters {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-group input:focus {
    outline: none;
    border-color: #F90567;
    box-shadow: 0 0 0 4px rgba(249, 5, 103, 0.1);
    transform: translateY(-1px);
}

.search-btn {
    background: linear-gradient(135deg, #F90567 0%, #D93A66 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(249, 5, 103, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 5, 103, 0.4);
    background: linear-gradient(135deg, #D93A66 0%, #F90567 100%);
}

/* Suppression de l'icône de recherche du bouton */
.search-btn i {
    display: none !important;
}

/* Sidebar : scroll uniquement sur la zone profils */
.franchise-sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.franchise-sidebar h2,
.franchise-sidebar .franchise-info {
    flex-shrink: 0;
}

.franchise-grid-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    margin-top: 10px;
    padding-right: 2px;
    /* Hauteur max pour éviter de dépasser la sidebar */
    max-height: calc(100% - 120px);
}

.franchise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

/* Rectangle à bords arrondis pour la carte franchisé */
.franchise-item {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    border: 1px solid #ececec;
    margin-bottom: 0;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.franchise-item:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
    border-color: #e0e0e0;
}

.franchise-outzone {
    opacity: 0.45;
    filter: grayscale(0.7);
    pointer-events: none;
}

.franchise-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: #fff;
    border-radius: 18px;
    font-weight: 600;
    font-size: 1.05em;
    color: #222;
    border: none;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.2s;
}
.franchise-summary:hover {
    background: #f7f7f7;
    color: #222;
}
.franchise-item[open] .franchise-summary {
    background: #f7f7f7;
    color: #222;
}
.franchise-summary::after {
    content: '▼';
    font-size: 0.8em;
    color: #bbb;
    margin-left: auto;
    font-weight: bold;
}
.franchise-item[open] .franchise-summary::after {
    content: '▲';
    color: #bbb;
}

.franchise-photo {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid #ececec;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    flex-shrink: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.franchise-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.franchise-name {
    font-weight: 600;
    color: #222;
    font-size: 1.04em;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.18;
    display: flex;
    align-items: center;
    word-break: break-word;
    max-width: 100%;
    letter-spacing: 0.01em;
    font-family: 'Open Sans', Arial, sans-serif;
}
.franchise-name span {
    display: block;
    max-width: 100%;
    word-break: break-word;
}

/* Contenu déroulant : tout en noir, fond blanc, séparateurs doux */
.franchise-expanded-content {
    padding: 18px 18px 14px 18px;
    font-size: 0.98em;
    line-height: 1.6;
    color: #222;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}
.franchise-expanded-content > div {
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f3f3f3;
}
.franchise-expanded-content > div:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.franchise-title strong,
.franchise-phone strong,
.franchise-email strong {
    font-size: 0.97em;
    font-weight: 600;
    color: #222;
    margin-right: 4px;
}
.franchise-title span {
    font-weight: 500;
    color: #222;
}
.franchise-socials {
    margin: 10px 0 10px 0;
}
.franchise-email a,
.franchise-phone a {
    color: #222;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.franchise-email a:hover,
.franchise-phone a:hover {
    color: #F90567;
    text-decoration: underline;
}
.franchise-socials {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 12px 0;
}

/* Utiliser le style Ultimate Member pour les icônes sociales */
.franchise-socials .um-socials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f3f3f3;
    color: #222;
    text-decoration: none;
    font-size: 1.1em;
    border: 1.5px solid #ececec;
    transition: background 0.2s, color 0.2s;
}

.franchise-socials .um-socials:hover {
    background: #F90567;
    color: #fff;
    border-color: #F90567;
    text-decoration: none;
}

/* Style pour les icônes désactivées (données non renseignées) */
.franchise-socials .um-socials.disabled {
    background: #e0e0e0;
    color: #999;
    border-color: #d0d0d0;
    cursor: not-allowed;
    opacity: 0.6;
}

.franchise-socials .um-socials.disabled:hover {
    background: #e0e0e0;
    color: #999;
    border-color: #d0d0d0;
}

/* Style pour les icônes SVG */
.franchise-socials .um-socials svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.view-profile-btn {
    display: inline-block;
    background: #FC3377;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.98em;
    font-weight: 600;
    transition: background 0.2s;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}
.view-profile-btn:hover {
    background: #D93A66;
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .franchise-layout {
        flex-direction: column;
        height: auto;
        margin: 20px 15px;
        box-shadow: none;
        border-radius: 0;
    }

    .franchise-map-leaflet {
        width: 100%;
        height: 400px;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
    }

    .franchise-sidebar {
        width: 100%;
        padding: 25px;
    }

    .franchise-sidebar h2 {
        font-size: 2em;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .reset-map-btn {
        padding: 12px 20px;
        font-size: 1em;
        margin-bottom: 20px;
    }

    .franchise-info {
        padding: 12px;
        font-size: 0.9em;
        margin-bottom: 20px;
    }

    .franchise-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .franchise-item {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .franchise-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .franchise-summary {
        padding: 15px 20px;
        font-size: 1em;
    }

    .franchise-expanded-content {
        padding: 15px 20px;
        font-size: 0.85em;
    }

    .franchise-search-bar {
        padding: 20px 15px 5px 15px;
    }
    .franchise-search-bar .franchise-filters {
        flex-direction: column;
        gap: 10px;
    }
    .franchise-grid {
        grid-template-columns: 1fr;
    }
    .franchise-grid-scroll {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .franchise-map-leaflet {
        height: 300px;
    }

    .franchise-sidebar {
        padding: 15px;
    }

    .franchise-sidebar h2 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    
    .reset-map-btn {
        font-size: 0.95em;
        padding: 10px 15px;
    }

    .franchise-info {
        font-size: 0.85em;
    }
} 

.franchise-separator {
    font-weight: 700;
    color: #F90567;
    background: #f8f8f8;
    padding: 10px 18px;
    border-radius: 12px;
    margin: 18px 0 8px 0;
    font-size: 1.08em;
    letter-spacing: 0.5px;
    border-left: 4px solid #F90567;
} 

.cleeck-logo-map {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 9999;
    opacity: 0.55;
    transition: opacity 0.2s;
    display: block;
    pointer-events: auto;
    background: transparent;
}
.cleeck-logo-map:hover {
    opacity: 0.85;
}
.cleeck-logo-map img {
    width: 48px;
    height: auto;
    display: block;
    pointer-events: auto;
    background: transparent;
} 