/* ==========================================================================
   ALERTES ET MESSAGES (ORANGE ET SUCCÈS)
   ========================================================================== */

/* Bloc Orange : Utilisateur connecté ou en attente */
.sc-alert-working {
    background-color: #fff7ed !important; /* Orange très pâle */
    color: #9a3412 !important;           /* Texte brun/orange foncé */
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ffedd5;
    margin: 20px 0;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(251, 146, 60, 0.05);
}

.sc-alert-working .dashicons {
    color: #f97316; /* Orange vif pour l'icône */
    font-size: 22px;
    width: 22px;
    height: 22px;
    margin-top: 2px;
}

.sc-alert-working .sc-alert-content,
.sc-alert-success .sc-alert-content {
    flex: 1;
    min-width: 0;
}

.sc-alert-working .sc-alert-content strong,
.sc-alert-success .sc-alert-content strong {
    display: block;
    margin-bottom: 4px;
    line-height: 1.25;
}

/* Bloc Vert : Succès après envoi du formulaire */
.sc-alert-success {
    background-color: #f0fdf4 !important; /* Vert pâle */
    color: #166534 !important;           /* Texte vert foncé */
    padding: 18px;
    border-radius: 8px;
    border: 1px solid #dcfce7;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sc-alert-success .dashicons {
    color: #22c55e;
    font-size: 22px;
    width: 22px;
    height: 22px;
}

/* ==========================================================================
   FORMULAIRE DE CAPTURE (POUR UTILISATEURS NON CONNECTÉS)
   ========================================================================== */

.sc-capture-form {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-top: 15px;
}

.sc-capture-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sc-capture-row input[type="text"],
.sc-capture-row input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}

.sc-capture-row .sc-submit-btn {
    padding: 12px 25px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.sc-capture-row .sc-submit-btn:hover {
    background-color: #1d4ed8;
}

/* Responsive pour mobile */
@media (max-width: 600px) {
    .sc-capture-row {
        flex-direction: column;
    }
    .sc-capture-row input, 
    .sc-capture-row button {
        width: 100%;
    }
}

/* ==========================================================================
   FORMULAIRE DE RECHERCHE
   ========================================================================== */

.sc-sport-search-wrapper {
    width: 100%;
}

.sc-sport-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.sc-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
    flex: 1 1 250px;
}

.sc-field-sport,
.sc-field-city {
    flex: 1 1 320px;
}

.sc-field-submit {
    flex: 0 0 auto;
}

.sc-field label.sc-label {
    font-weight: 600;
    margin-bottom: 4px;
}

.sc-sport-search-form select,
.sc-sport-search-form input[type="text"] {
    width: 100%;
    min-height: 52px;
    padding: 14px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    background: #ffffff;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.sc-sport-search-form select {
    padding-right: 32px;
}

.sc-city-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.sc-city-input-wrapper input,
.sc-city-autocomplete {
    flex: 1;
}

.sc-city-autocomplete {
    min-width: 0;
    position: relative;
}

.sc-city-autocomplete gmp-place-autocomplete {
    display: block;
    width: 100%;
    min-height: 52px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    box-sizing: border-box;
    overflow: hidden;
}

.sc-city-autocomplete.is-ready gmp-place-autocomplete {
    border-color: transparent;
    background: transparent;
}

.sc-geo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-height: 52px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.sc-geo-btn:hover {
    background: #1d4ed8;
}

.sc-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.sc-submit-btn:hover {
    background-color: #1d4ed8;
}

@media (max-width: 900px) {
    .sc-sport-search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .sc-field {
        width: 100%;
        flex: 0 0 auto;
    }
    .sc-field-sport,
    .sc-field-city,
    .sc-field-submit {
        flex: 0 0 auto;
    }
    .sc-field-submit {
        width: 100%;
    }
    .sc-city-input-wrapper {
        flex-direction: row;
    }
    .sc-submit-btn {
        min-height: 52px;
        padding: 0 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
