/* ==========================================================================
   DESIGN DE LA GRILLE DES PARCS - ADMIN PANEL (RESPONSIVE & ÉLÉGANT)
   ========================================================================== */

:root {
    --bg-card: #ffffff;
    --text-main: #2f3542;
    --text-muted: #747d8c;
    --color-danger: #ff4757;
    --color-success: #2ed573;
    --color-accent: #5352ed;
    --border-radius: 14px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Grille de cartes ultra-responsive */
.parks-responsive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Encadré d'un parc (Carte moderne) */
.park-modern-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #e4e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.park-modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.09);
}

/* Zone de l'image de couverture */
.image-container {
    position: relative;
    width: 100%;
    height: 160px;
    background: #f1f2f6;
    overflow: hidden;
}

.park-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.hidden {
    display: none;
}

/* Effet au survol de l'image (Affiche le bouton supprimer) */
.image-actions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.image-container:hover .image-actions {
    opacity: 1;
}

/* Bouton Supprimer la photo */
.action-btn {
    background: var(--color-danger);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.2);
    transition: var(--transition);
}

.action-btn:hover {
    background: #ff6b81;
    transform: scale(1.05);
}

/* Style de la zone quand il n'y a pas d'image */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 6px;
    background: #f8f9fa;
}

.no-image-placeholder span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Contenu textuel sous la photo */
.park-details {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.park-details h3 {
    margin: 0 0 6px 0;
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 600;
}

.slug-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 18px 0;
}

.slug-info code {
    background: #f1f2f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--color-accent);
    font-size: 0.8rem;
}

/* Zone d'envoi de fichier (Input stylisé) */
.upload-zone {
    width: 100%;
}

.custom-file-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: #f1f2f6;
    color: var(--text-main);
    border-radius: 8px;
    border: 2px dashed #ced6e0;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.custom-file-upload:hover {
    background: #e4e7eb;
    border-color: var(--text-muted);
}

.file-input {
    display: none;
}

/* Zone vide */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: var(--border-radius);
    border: 2px dashed #ced6e0;
    color: var(--text-muted);
}