/* --- Structure Globale --- */
#acs-main-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    line-height: 1.5;
}

/* --- Le Bouton d'ouverture --- */
.acs-trigger-btn {
    background: #0073aa;
    color: #fff;
    padding: 14px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin: 20px auto;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.acs-trigger-btn:hover {
    background: #005177;
    transform: translateY(-2px);
}

/* --- Le bloc formulaire --- */
#acs-form-content {
    display: none; /* Géré par le JS */
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e1e1e1;
    max-width: 650px;
    margin: 20px auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

#acs-form-content h3 {
    margin-top: 0;
    color: #1d2327;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* --- Groupes et Champs --- */
.acs-group { 
    margin-bottom: 20px; 
    text-align: left; 
}

.acs-group label { 
    display: block; 
    font-weight: 600; 
    margin-bottom: 8px;
    font-size: 14px;
    color: #444;
}

.acs-group input, 
.acs-group select { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ccc; 
    border-radius: 8px; 
    font-size: 15px;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.acs-group input:focus, 
.acs-group select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

/* --- Alignements (Lignes) --- */
.acs-row {
    display: flex;
    gap: 20px;
    margin-bottom: 5px;
}

.acs-row .acs-group {
    flex: 1;
}

/* --- Bloc Commune Spécifique --- */
#bloc-commune {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px inset #eee;
}

/* --- Messages et Alertes --- */
#msg-nouvelle-ville {
    color: #d9534f;
    font-size: 13px;
    margin-top: 10px;
    font-style: italic;
    background: #fff5f5;
    padding: 12px;
    border-left: 4px solid #d9534f;
    border-radius: 4px;
}

.hidden { 
    display: none !important; 
}

/* --- Bouton de validation --- */
.acs-submit-final {
    width: 100%;
    padding: 16px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    transition: background 0.2s;
}

.acs-submit-final:hover {
    background: #218838;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .acs-row {
        flex-direction: column;
        gap: 0;
    }
    #acs-form-content {
        padding: 20px;
        margin: 10px;
    }
}