/* ============================================================
   /clubs — filtres et boutons d'accès aux espaces (charte unslop)
   Chargée APRÈS style.css : elle ne fait que surcharger.
   Règles : marine #1B2A4A et doré #C8973F ; pas de dégradé, de lueur
   ni d'émoji ; graisses 600 au plus ; statuts en « plaque laiton »
   (rayon 4) ; états de survol sobres (couleur, pas de lévitation).
   ============================================================ */

/* ---------- Recherche ---------- */
.cs-form { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 16px; align-items: end; overflow: visible;
           padding: 20px; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
           box-shadow: none; }
.cs-form:hover { transform: none; box-shadow: none; }
.cs-form > * { min-width: 0; }
.cs-label { display: block; margin: 0 0 6px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.cs-form .input { min-height: 44px; padding: .55em .9em; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .95rem; }
.cs-form .input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 2px rgba(27, 42, 74, .16); }
.cs-form .btn-primary { min-height: 44px; padding: .55em 1.4em; border-radius: 10px; border: 1px solid var(--green); background: var(--green);
                        color: #fff; font-weight: 600; letter-spacing: 0; transition: background-color .15s ease; }
.cs-form .btn-primary:hover { background: var(--green-dark); transform: none; box-shadow: none; }
.cs-form .btn-primary .mi { width: 16px; height: 16px; vertical-align: 0; }
.cs-form .btn-primary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 680px) {
    .cs-form { grid-template-columns: 1fr; padding: 16px; }
    .cs-form .btn-primary { width: 100%; }
}

/* ---------- Onglets Type et Pays : un sélecteur segmenté ---------- */
#clubsResults .type-tabs { display: flex; flex-wrap: wrap; gap: 2px; width: fit-content; max-width: 100%;
                           margin: 0 0 12px; padding: 3px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
#clubsResults .type-tabs + .type-tabs { margin-top: 0; }
#clubsResults .type-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: .35em .95em; border: 0; border-radius: 9px;
                             background: transparent; color: var(--muted); font-size: .88rem; font-weight: 500; line-height: 1.2; text-decoration: none;
                             transition: background-color .15s ease, color .15s ease; }
#clubsResults .type-tabs a:hover { background: var(--green-soft); color: var(--green); }
#clubsResults .type-tabs a.on { background: var(--green); color: #fff; font-weight: 600; }
#clubsResults .type-tabs a:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
/* Code pays : petite plaque laiton à la place du drapeau. */
.tt-code { padding: .05em .4em; border: 1px solid rgba(200, 151, 63, .5); border-radius: 4px; background: var(--gold-soft);
           color: var(--gold-dark); font-size: .7rem; font-weight: 600; letter-spacing: .04em; line-height: 1.4; }
#clubsResults .type-tabs a.on .tt-code { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
@media (max-width: 520px) { #clubsResults .type-tabs { width: 100%; } #clubsResults .type-tabs a { flex: 1 1 auto; justify-content: center; } }

/* ---------- « Ajouter mon club » ---------- */
.add-struct-btn { gap: 10px; padding: 6px 14px 6px 6px; border-radius: 10px; background: var(--green); box-shadow: none;
                  font-weight: 600; letter-spacing: 0; transition: background-color .15s ease; }
.add-struct-btn:hover { background: var(--green-dark); transform: none; box-shadow: none; }
.add-struct-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.asb-plus { width: 32px; height: 32px; border-radius: 6px; background: var(--gold); color: var(--green-dark); }
.asb-plus .mi { width: 16px; height: 16px; vertical-align: 0; transition: transform .2s ease; }
.add-struct[open] .asb-plus { transform: none; }
.add-struct[open] .asb-plus .mi { transform: rotate(45deg); }
.add-struct-menu { border-radius: 12px; box-shadow: 0 8px 24px rgba(17, 29, 54, .12); animation: none; }
.add-struct-menu a { border-radius: 8px; }
.add-struct-menu strong { font-weight: 600; }
.add-struct-ico { width: 38px; height: 38px; border-radius: 8px; background: var(--green-soft); color: var(--green); }
.add-struct-ico .mi { width: 20px; height: 20px; vertical-align: 0; }
@media (prefers-reduced-motion: reduce) { .add-struct-btn, .cs-form .btn-primary, #clubsResults .type-tabs a { transition: none; } }
