.ffvrc-clubs {
    max-width: 1400px;
    margin: 40px auto;
}

.ffvrc-clubs h1 {
    margin: 0 0 10px;
    color: #000820;
}

.ffvrc-description {
    margin: 0 0 28px;
    color: #667085;
}

/* ==========================================
   Recherche
========================================== */

.ffvrc-clubs-filtres {
    margin: 0 0 22px;
    padding: 22px 26px;
    border: 1px solid #CFE8EC;
    border-radius: 14px;
    background: #fff;
}

.ffvrc-search {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
    gap: 16px;
    align-items: end;
    min-width: 0;
    margin-top: 16px;
}

.ffvrc-search[hidden] {
    display: none !important;
}

.ffvrc-search-tabs {
    display: flex;
    gap: 0;
    margin: 0;
    width: 100%;
    overflow: hidden;
    border: 1px solid #B9E5EC;
    border-radius: 9px;
    background: #fff;
}

.ffvrc-search-tab {
    min-width: 0;
    flex: 1;
    height: 44px;
    padding: 0 20px;
    border: 0 !important;
    border-right: 1px solid #B9E5EC !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #000820 !important;
    font: inherit;
    font-weight: 700 !important;
    cursor: pointer;
}

.ffvrc-search-tab:last-child {
    border-right: 0 !important;
}

.ffvrc-search-tab:hover {
    background: #EDF9FB !important;
    color: #000820 !important;
}

.ffvrc-search-tab.is-active {
    background: #00BADA !important;
    color: #000820 !important;
}

.ffvrc-search-tab.is-active:hover {
    background: #00BADA !important;
    color: #000820 !important;
}

.ffvrc-search-proximite {
    grid-template-columns: minmax(220px, 1.5fr) minmax(130px, .6fr) auto auto;
}

.ffvrc-search-proximite button {
    width: auto !important;
    min-width: 0 !important;
    padding: 0 18px;
    white-space: nowrap;
}

.ffvrc-field {
    display: flex;
    flex-direction: column;
}

.ffvrc-field label {
    font-weight: 600;
    margin-bottom: 7px;
    color: #000820;
}

.ffvrc-field select,
.ffvrc-field input {
    height: 44px;
    padding: 0 12px;
    border: 1px solid #B9E5EC;
    border-radius: 8px;
    background: #fff;
    color: #000820;
    box-sizing: border-box;
    width: 100%;
}

.ffvrc-lieu-autocomplete {
    position: relative;
}

.ffvrc-suggestions-lieu {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    overflow: hidden;
    border: 1px solid #CFE8EC;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(16, 24, 40, .10);
}

.ffvrc-suggestion-lieu {
    display: block;
    width: 100%;
    min-height: 0 !important;
    padding: 10px 13px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f5 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #344054 !important;
    font: inherit !important;
    text-align: left;
    cursor: pointer;
}

.ffvrc-suggestion-lieu:last-child {
    border-bottom: 0;
}

.ffvrc-suggestion-lieu:hover,
.ffvrc-suggestion-lieu:focus {
    outline: 0;
    background: #f6f8fa !important;
    color: #344054 !important;
}

.ffvrc-search button {
    height: 44px;
    padding: 0 25px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background: #00BADA;
    color: #000820;
    font-weight: 600;
    transition: .2s;
}

.ffvrc-search button:hover {
    background: #0E1C6E;
    color: #fff;
}

/* Action principale : protégée des styles globaux du thème. */
.ffvrc-clubs #ffvrc-rechercher,
.ffvrc-clubs #ffvrc-autour-de-moi,
.ffvrc-clubs #ffvrc-rechercher-proximite {
    height: 44px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #00BADA !important;
    color: #000820 !important;
    box-shadow: none !important;
    font-weight: 700 !important;
}

.ffvrc-proximite-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 18px;
    margin: -4px 0 30px;
}

.ffvrc-proximite-actions button {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #00BADA;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ffvrc-proximite-message {
    margin: 0;
    color: #475467;
    font-size: .9rem;
}

.ffvrc-proximite-message.ffvrc-proximite-erreur {
    color: #F06600;
}

/* ==========================================
   Widget "Trouver un club"
========================================== */

.ffvrc-club-widget {
    display: flex;
    gap: 8px;
}

.ffvrc-widget-autocomplete {
    position: relative;
    min-width: 0;
    flex: 1;
}

.ffvrc-club-widget input {
    min-width: 0;
    height: 48px;
    display: block;
    width: 100%;
    padding: 0 14px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #000820;
    font: inherit;
    font-weight: 600;
}

.ffvrc-widget-suggestions {
    position: absolute;
    z-index: 10;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    overflow: hidden;
    border: 1px solid #B9E5EC;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 8, 32, .22);
}

.ffvrc-widget-suggestions button {
    display: block;
    width: 100%;
    height: auto;
    min-height: 40px;
    padding: 8px 13px;
    border: 0 !important;
    border-bottom: 1px solid #E6F3F5 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #000820 !important;
    font: inherit;
    text-align: left;
}

.ffvrc-widget-suggestions button:last-child {
    border-bottom: 0 !important;
}

.ffvrc-widget-suggestions button:hover,
.ffvrc-widget-suggestions button:focus {
    background: #EDF9FB !important;
}

.ffvrc-club-widget > button {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: #00BADA !important;
    color: #000820 !important;
    box-shadow: none !important;
    cursor: pointer;
}

.ffvrc-club-widget > button span[aria-hidden] {
    display: block;
    font-size: 2.15rem;
    font-weight: 700;
    line-height: .7;
    transform: rotate(-18deg);
}

/* ==========================================
   Résultats
========================================== */

.ffvrc-results {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 30px;
    align-items: stretch;
}

.ffvrc-list {
    min-height: 650px;
    height: 100%;
    padding: 24px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #F8F9FB;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    box-sizing: border-box;
}

.ffvrc-count {
    margin-bottom: 18px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
}

.ffvrc-empty {
    text-align: center;
    margin-top: 80px;
}

.ffvrc-empty h3 {
    margin-bottom: 10px;
}

.ffvrc-empty p {
    color: #666;
    line-height: 1.5;
}

/* ==========================================
   Cartes des clubs
========================================== */

.ffvrc-club-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
    transition: .2s;
    cursor: pointer;
}

.ffvrc-club-card:last-child {
    margin-bottom: 0;
}

.ffvrc-club-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.ffvrc-club-card.active {
    background: #EDF9FB;
    box-shadow: 0 0 0 2px #0E1C6E, 0 8px 20px rgba(13,94,166,.15);
}

.ffvrc-club-header {
    display: flex;
    align-items: center;
}

.ffvrc-club-card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #000820;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ffvrc-ville {
    color: #666;
    margin-top: 4px;
}

.ffvrc-distance {
    margin-top: 5px;
    color: #475467;
    font-size: .9em;
    font-weight: 600;
}

/* ==========================================
   Carte Leaflet
========================================== */

#ffvrc-map {
    width: 100%;
    min-height: 650px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    background: #F5F5F5;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.leaflet-container {
    font-family: inherit;
}

.leaflet-popup-content {
    min-width: 280px;
}

/* ==========================================
   Popup
========================================== */

.ffvrc-popup {
    font-size: 15px;
    line-height: 1.5;
}

.ffvrc-popup h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #000820;
}

.ffvrc-popup-ville {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
}

.ffvrc-popup-disciplines {
    margin-bottom: 16px;
}

.ffvrc-popup-section {
    margin-bottom: 14px;
}

.ffvrc-popup-section strong {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.ffvrc-popup-section .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    color: #00BADA;
}

.ffvrc-popup a {
    color: #00BADA;
    text-decoration: none;
}

.ffvrc-popup a:hover {
    text-decoration: underline;
}

/* ==========================================
   Responsive
========================================== */

@media (max-width: 900px) {
    .ffvrc-search {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ffvrc-search-proximite {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ffvrc-results {
        grid-template-columns: 1fr;
    }

    .ffvrc-list,
    #ffvrc-map {
        min-height: 500px;
    }

}

@media (max-width: 560px) {

    .ffvrc-search-tab {
        padding: 0 12px;
        font-size: .95rem;
    }

    .ffvrc-search {
        grid-template-columns: 1fr;
    }

}
