/* ====== COMPOSANT SÉLECTEUR SAISON/PHASE ====== */

/* Conteneur principal */
.season-phase-selector {
    margin-top: calc(var(--header-h) + env(safe-area-inset-top));
    margin-bottom: 2rem;
}

/* ====== FILTRE SAISON et COMPETITION ====== */
.season-phase-selector .competition-filter,
.season-phase-selector .season-filter {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.season-phase-selector .competition-filter label ,
.season-phase-selector .season-filter label {
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

/* Select moderne avec flèche */
.season-phase-selector .nice-select {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: .625rem 2.5rem .625rem .875rem;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
    transition: box-shadow 0.2s ease;
    min-width: 200px;
}

.season-phase-selector .nice-select:focus-within {
    outline: 2px solid transparent;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .25);
}

.season-phase-selector .nice-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 0;
    background: transparent;
    font-size: .95rem;
    color: #111827;
    padding: 0;
    margin: 0;
    outline: none;
    cursor: pointer;
    width: 100%;
}

/* Flèche SVG */
.season-phase-selector .nice-select .chev {
    position: absolute;
    right: .75rem;
    pointer-events: none;
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

/* Rotation quand ouvert */
.season-phase-selector .nice-select.open .chev {
    transform: rotate(180deg);
}

/* ====== PHASE PILLS ====== */
.season-phase-selector .phase-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 0;
}

.season-phase-selector .phase-pill {
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.season-phase-selector .phase-pill:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #1f2937;
}

.season-phase-selector .phase-pill.active {
    background: var(--color-text-accent, #2563eb);
    border-color: var(--color-text-accent, #2563eb);
    color: white;
}

.season-phase-selector .phase-pill.active:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* ====== RESPONSIVE ====== */

/* Mobile */
@media (max-width: 768px) {
    .season-phase-selector{
        background: #f8fafc;
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 16px;
    }

    .season-phase-selector .competition-filter,
    .season-phase-selector .season-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .season-phase-selector .competition-filter label,
    .season-phase-selector .season-filter label {
        text-align: center;
    }
    
    .season-phase-selector .nice-select {
        min-width: auto;
        width: 100%;
    }
    
    .season-phase-selector .phase-pills {
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .season-phase-selector .phase-pill {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

/* Tablette */
@media (min-width: 769px) and (max-width: 1024px) {
    .season-phase-selector .season-filter {
        justify-content: center;
    }
    
    .season-phase-selector .phase-pills {
        justify-content: center;
    }
}

/* Aération du dropdown natif */
select option {
    padding: 0.5rem 0.75rem;
}
