.ap-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; box-sizing: border-box; }
.ap-top-action-bar { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 30px; }
.ap-btn-trigger-form { background: #4a51ff; color: #ffffff; border: none; padding: 14px 28px; border-radius: 12px; font-size: 0.95rem; font-weight: 700; cursor: pointer; box-shadow: 0 10px 20px rgba(74, 81, 255, 0.15); transition: all 0.2s; }
.ap-btn-trigger-form:hover { background: #0f172a; transform: translateY(-2px); }

/* STRUCTURE MODALE */
.ap-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(4px); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.ap-modal-content { background: #ffffff; border-radius: 24px; width: 100%; max-width: 800px; max-height: 90vh; overflow-y: auto; padding: 35px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); box-sizing: border-box; }
.ap-modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0; padding-bottom: 20px; margin-bottom: 25px; }
.ap-modal-header h3 { font-size: 1.3rem; font-weight: 800; margin: 0; color: #0f172a; }
.ap-btn-close-modal { background: none; border: none; font-size: 2rem; color: #94a3b8; cursor: pointer; }

.ap-step-pane { display: none; }
.ap-step-pane.active-pane { display: block; }
.ap-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ap-form-grid-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.ap-field-group { display: flex; flex-direction: column; gap: 6px; }
.ap-field-group label { font-size: 0.85rem; font-weight: 700; color: #344155; }
.ap-input { width: 100%; padding: 11px 14px; border-radius: 8px; border: 1px solid #cbd5e1; font-family: inherit; font-size: 0.95rem; box-sizing: border-box; background: #f8fafc; }
.ap-input:focus { outline: none; border-color: #4a51ff; background: #fff; }

.ap-coaster-block-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-bottom: 15px; }
.ap-step-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.ap-step-header-flex h5 { margin: 0; font-size: 1rem; font-weight: 800; }

.ap-step-footer { display: flex; justify-content: flex-end; gap: 15px; border-top: 1px solid #e2e8f0; padding-top: 25px; margin-top: 20px; }
.ap-btn-next, .ap-btn-submit-all { background: #0f172a; color: white; border: none; padding: 12px 24px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.ap-btn-next:hover, .ap-btn-submit-all:hover { background: #4a51ff; }
.ap-btn-back { background: #e2e8f0; color: #475569; border: none; padding: 12px 24px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.ap-btn-add-item-sub { background: rgba(74, 81, 255, 0.1); color: #4a51ff; border: none; padding: 8px 16px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 0.85rem; }

/* LAYOUT DASHBOARD GRILLE DE PARCS */
.ap-dashboard-list-container { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 24px; padding: 35px; box-shadow: 0 4px 20px rgba(0,0,0,0.01); }
.ap-list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 1px solid #f1f5f9; padding-bottom: 15px; }
.ap-list-header h3 { font-size: 1.25rem; font-weight: 800; margin: 0; }
.ap-count-badge { font-size: 0.82rem; font-weight: 700; background: #f1f5f9; color: #475569; padding: 4px 12px; border-radius: 20px; }

.ap-grid-cards { display: flex; flex-direction: column; gap: 16px; }
.ap-park-card { display: flex; justify-content: space-between; align-items: center; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px 24px; transition: border-color 0.2s; }
.ap-park-card:hover { border-color: #cbd5e1; }
.ap-card-main-info h4 { font-size: 1.15rem; font-weight: 800; margin: 0 0 6px 0; color: #0f172a; }
.ap-card-meta { display: flex; align-items: center; gap: 20px; font-size: 0.88rem; color: #64748b; }
.ap-card-meta code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; color: #334155; }
.ap-active-coasters-count b { color: #4a51ff; }

/* BLOCS DE BOUTONS DISTINCTS ET PROPRES */
.ap-card-actions-wrapper { display: flex; align-items: center; gap: 10px; }
.ap-btn-card { text-decoration: none; font-size: 0.85rem; font-weight: 700; padding: 10px 16px; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px; transition: all 0.15s; }
.btn-manage-rides { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }
.btn-manage-rides:hover { background: #e2e8f0; color: #0f172a; }
.btn-edit-park { background: rgba(74, 81, 255, 0.08); color: #4a51ff; }
.btn-edit-park:hover { background: #4a51ff; color: #ffffff; }
.btn-delete-park { background: #fff5f5; color: #ef4444; border: 1px solid #fee2e2; padding: 10px 12px; }
.btn-delete-park:hover { background: #ef4444; color: #ffffff; border-color: #ef4444; }

.ap-alert { padding: 14px 20px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; text-align: center; margin-bottom: 20px; width: 100%; box-sizing: border-box; }
.ap-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.ap-alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fee2e2; }

@media(max-width: 992px) {
    .ap-park-card { flex-direction: column; align-items: flex-start; gap: 20px; }
    .ap-card-actions-wrapper { width: 100%; justify-content: flex-end; }
    .ap-form-grid { grid-template-columns: 1fr; }
}