/* ============================================
   DESIGN SYSTEM — BOUNCE
   Stack : Syne + DM Mono | Dark | Accent #ff6b00
   Aligné avec bde-feed.html
============================================ */

:root {
    --bg:       #080808;
    --surface:  #0f0f0f;
    --surface2: #141414;
    --border:   #1a1a1a;
    --accent:   #ff6b00;
    --accent-dim: rgba(255, 107, 0, 0.12);
    --accent-glow: rgba(255, 107, 0, 0.25);
    --text:     #f0f0f0;
    --muted:    #505050;
    --muted2:   #787878;
    --white:    #ffffff;
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Syne', sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* Mobile : corps fixe pour empêcher le scroll sous les modals */
@media (max-width: 768px) {
    body {
        overflow: hidden;
        height: 100vh;
        position: fixed;
    }
}

/* Scrollbar minimaliste */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ============================================
   TOP BAR
   Remplace l'ancien .bounce-header
============================================ */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    height: 56px;
    background: rgba(8, 8, 8, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.top-bar-logo {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.15s;
}
.top-bar-logo:hover { opacity: 0.8; }

/* Liens desktop (masqués sur mobile) */
.top-bar-links {
    display: none;
    gap: 28px;
}
.top-bar-links a {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.15s;
}
.top-bar-links a:hover,
.top-bar-links a.active { color: var(--text); }

.top-bar-account {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted2);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
}
.top-bar-account:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (min-width: 1024px) {
    .top-bar {
        padding: 0 40px;
        height: 60px;
    }
    .top-bar-logo { font-size: 20px; }
    .top-bar-links { display: flex; }
}

/* ============================================
   BARRE DE RECHERCHE & FILTRES (FIXE)
============================================ */
.search-header {
    position: fixed;
    top: 56px; /* = hauteur top-bar */
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 12px 6px;
    background: rgba(8, 8, 8, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    pointer-events: none;
}

.search-header > * {
    pointer-events: auto;
}

/* Input wrapper */
.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.search-input-wrapper:hover,
.search-input-wrapper:active {
    border-color: var(--muted);
}

.search-input-wrapper > .fa-search {
    color: var(--muted);
    font-size: 14px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    color: var(--text);
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    outline: none;
    pointer-events: none;
    min-width: 0;
}
.search-input::placeholder {
    color: var(--muted);
}

.search-filters-hint {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex-shrink: 0;
    border: 1px solid var(--accent-dim);
    padding: 3px 8px;
    border-radius: 4px;
}

/* Rangées de filtres pills */
.filters-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    margin-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
}
.filters-row::-webkit-scrollbar { display: none; }

/* Boutons filtres — injectés par JS avec .filter-btn */
.filter-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--muted2);
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.filter-btn:hover {
    border-color: var(--muted);
    color: var(--text);
}
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 700;
}

/* Bouton "+" filtres avancés (plus-filters-btn injecté par JS) */
.more-filters-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}
.more-filters-btn:active { transform: scale(0.9); }

/* ============================================
   CONTAINER PRINCIPAL
============================================ */
.app-wrapper {
    width: 100%;
}

/* Mobile : container fixe entre top et bottom nav */
@media (max-width: 1023px) {
    .app-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 64px; /* = hauteur bottom-nav */
        overflow: hidden;
    }
}

/* Desktop : scroll normal */
@media (min-width: 1024px) {
    .app-wrapper {
        position: relative;
        min-height: 100vh;
        overflow-y: auto;
    }
    body {
        overflow-y: auto;
        position: static;
        height: auto;
    }
}

.view-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* ============================================
   VUE LISTE
============================================ */
.events-list {
    height: 100%;
    overflow-y: auto;
    /* top-bar 56px + search-header ~110px = 166px de padding top mobile */
    padding: 172px 12px 12px;
    background: var(--bg);
    width: 100%;
}

/* ── EVENT CARD ──
   Classes injectées par createEventCard() :
   .event-card, .event-image-container, .event-date-badge,
   .venue-badge, .event-content, .event-title, .event-time, .event-price
*/
.event-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}
.event-card:active { transform: scale(0.98); }

.event-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    background: var(--surface2);
}
.event-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badge date — coin bas gauche */
.event-date-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(8, 8, 8, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    padding: 5px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    z-index: 2;
}
.event-date-badge i {
    color: var(--accent);
    font-size: 10px;
}

/* Badge catégorie — coin haut droit (injecté par JS avec style inline couleur) */
.venue-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    color: white;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
    letter-spacing: 0.04em;
}

.event-content {
    padding: 14px 16px;
}

.event-title {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
    line-height: 1.3;
}

.event-time {
    font-family: 'DM Mono', monospace;
    color: var(--muted2);
    font-size: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.event-time i { color: var(--muted); font-size: 11px; }

.event-price {
    font-family: 'DM Mono', monospace;
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
}

/* État vide */
.no-events {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}
.no-events i {
    font-size: 40px;
    margin-bottom: 14px;
    opacity: 0.2;
    display: block;
}
.no-events p {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    color: var(--muted);
}

/* ============================================
   VUE CARTE
============================================ */
#map {
    width: 100%;
    height: 100%;
}

/* Masquer contrôles Leaflet */
.leaflet-control-zoom,
.leaflet-control-attribution {
    display: none !important;
}

.leaflet-marker-pane .leaflet-zoom-animated path,
.leaflet-overlay-pane svg path,
.leaflet-overlay-pane svg line {
    display: none !important;
}


/* Marqueurs cluster */
.cluster-marker {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 2.5px solid rgba(255, 255, 255, 0.6);
}
.cluster-marker:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 28px var(--accent-glow);
}

/* Image nette pour tous */
.cluster-marker-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: none;
    z-index: 1;
}

/* Cacher l'emoji sur les events uniques */
.cluster-marker.single-event .cluster-marker-count {
    display: none;
}

/* Garder le nombre visible sur les clusters */
.cluster-marker:not(.single-event) .cluster-marker-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    z-index: 2;
}

.marker-cluster {
    background: transparent !important;
}
.marker-cluster div {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.cluster-marker.single-event {
    width: 58px;
    height: 58px;
}
.cluster-marker.single-event .cluster-marker-count {
    font-size: 18px;
}

/* Sidebar (desktop uniquement, affichée via @media) */
.sidebar-events {
    display: none;
}

/* ============================================
   BOTTOM NAV (mobile)
============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1100;
    width: 100%;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px;
    border: none;
    background: none;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.15s;
    position: relative;
}
.nav-btn:hover { color: var(--muted2); }
.nav-btn.active { color: var(--accent); }

/* Indicateur actif — petit trait sous l'icône */
.nav-btn.active::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
}

.nav-btn i { font-size: 20px; }
.nav-btn span {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Masquer la bottom nav sur desktop */
@media (min-width: 1024px) {
    .bottom-nav { display: none; }
}

/* ============================================
   MODAL PRÉVISUALISATION ÉVÉNEMENT
   .event-preview-modal / .active (géré par JS)
============================================ */
.event-preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2500;
}
.event-preview-modal.active {
    display: flex;
    align-items: flex-end;
}

.event-preview-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    animation: slideUpPreview 0.28s ease;
    position: relative;
}

@keyframes slideUpPreview {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.close-preview {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(8, 8, 8, 0.7);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
}
.close-preview:hover { border-color: var(--muted); }

.event-preview-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}
.event-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-preview-body {
    padding: 20px;
}

#preview-title {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 18px;
    line-height: 1.2;
}

.preview-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.preview-info-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.preview-info-item i {
    font-size: 16px;
    color: var(--accent);
    margin-top: 3px;
    flex-shrink: 0;
}

.info-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}
.info-value {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.3;
}

/* Badges genres — injectés par JS avec .genre-badge */
.preview-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}
.genre-badge {
    padding: 5px 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted2);
    letter-spacing: 0.04em;
}

.preview-price {
    font-family: 'DM Mono', monospace;
    font-size: 20px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 18px;
}

.btn-preview-details {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, transform 0.15s;
}
.btn-preview-details:hover { background: #ff8533; }
.btn-preview-details:active { transform: scale(0.98); }

/* ── Desktop : modal centré ── */
@media (min-width: 1024px) {
    .event-preview-modal.active {
        align-items: center;
        justify-content: center;
    }
    .event-preview-content {
        max-width: 760px;
        max-height: 90vh;
        border-radius: 14px;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    }
    .event-preview-image {
        height: 360px;
        border-radius: 14px 14px 0 0;
    }
    .event-preview-image img {
        object-fit: contain;
        background: #000;
    }
}

/* ============================================
   MODAL FILTRES AVANCÉS
   .filters-modal / .active (géré par JS)
============================================ */
.filters-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
}
.filters-modal.active {
    display: block;
}

.modal-content {
    position: absolute;
    inset: 0;
    background: var(--surface);
    animation: slideUp 0.28s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    position: relative;
}

.close-modal {
    position: absolute;
    left: 16px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--muted2);
    padding: 4px 8px;
    transition: color 0.15s;
}
.close-modal:hover { color: var(--text); }

.modal-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
    -webkit-overflow-scrolling: touch;
}

.filter-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}
.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-section h3 {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

/* Pills filtres avancés — .pill-btn, .pill-btn.active */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-btn {
    padding: 9px 16px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--muted2);
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.03em;
}
.pill-btn:hover {
    border-color: var(--muted);
    color: var(--text);
}
.pill-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 500;
}

/* Pills venue (data-venue) — conserve la couleur dynamique via JS */
.pill-btn[data-venue].active {
    background: var(--category-color, var(--accent));
    border-color: var(--category-color, var(--accent));
    color: white;
}

/* Date range */
.date-range {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.date-input label {
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.date-input input {
    width: 100%;
    padding: 12px 14px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
    -webkit-appearance: none;
    color-scheme: dark;
}
.date-input input:focus { border-color: var(--accent); }

/* Recherche lieu */
.search-location {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    transition: border-color 0.15s;
}
.search-location:focus-within { border-color: var(--accent); }
.search-location i { color: var(--muted); font-size: 13px; flex-shrink: 0; }
.search-location input {
    flex: 1;
    border: none;
    background: none;
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    color: var(--text);
    outline: none;
}
.search-location input::placeholder { color: var(--muted); }

.location-suggestions { display: none; }

/* Prix */
.price-range { margin-top: 8px; }

.price-chart {
    height: 80px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    margin-bottom: 10px;
}

/* .price-bar injectées par generatePriceChart() */
.price-bar {
    flex: 1;
    background: var(--accent);
    opacity: 0.35;
    border-radius: 3px 3px 0 0;
    min-height: 4px;
    transition: opacity 0.15s;
}
.price-bar:hover { opacity: 0.7; }

.price-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
}
.free-label {
    color: var(--accent);
    font-weight: 500;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-inputs input {
    flex: 1;
    padding: 11px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    color: var(--text);
    text-align: center;
    outline: none;
    transition: border-color 0.15s;
    color-scheme: dark;
}
.price-inputs input:focus { border-color: var(--accent); }
.price-inputs span {
    font-family: 'DM Mono', monospace;
    color: var(--muted);
    font-size: 14px;
}

/* Footer modal */
.modal-footer {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.reset-btn,
.confirm-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s;
}

.reset-btn {
    background: var(--surface2);
    color: var(--muted2);
    border: 1px solid var(--border);
}
.reset-btn:hover { color: var(--text); border-color: var(--muted); }

.confirm-btn {
    background: var(--accent);
    color: #000;
}
.confirm-btn:hover { background: #ff8533; }

/* ============================================
   FOOTER LÉGAL (dans #list-view)
============================================ */
.legal-footer {
    background: transparent;
    padding: 48px 16px 80px; /* 80px bottom pour compenser bottom-nav mobile */
    position: relative;
    width: 100%;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

.footer-logo {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.footer-links a {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

.footer-social {
    display: flex;
    gap: 14px;
}
.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--muted);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.15s;
}
.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.footer-copyright {
    font-family: 'DM Mono', monospace;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
    line-height: 1.6;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    width: 100%;
}

/* ============================================
   DESKTOP >= 1024px
============================================ */
@media (min-width: 1024px) {

    /* Search header repositionné */
    .search-header {
        top: 60px; /* = hauteur top-bar desktop */
        width: 52%;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        padding: 12px 0 8px;
        background: transparent;
        border-bottom: none;
        backdrop-filter: none;
    }

    /* Vue Liste — grille 3 colonnes */
    .events-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        align-items: start;
        /* top-bar 60px + search centré ~110px = ~240px */
        padding: 240px 48px 80px;
        max-width: 1600px;
        margin: 0 auto;
        height: auto;
    }

    .event-card {
        height: auto;
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
    }
    .event-card:hover {
        border-color: var(--muted);
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    }

    .event-image-container { height: 210px; }

    .event-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    .event-title { flex: 1; font-size: 17px; }

    .no-events { grid-column: 1 / -1; }

    /* Sidebar événements — vue carte desktop */
    #map-view .sidebar-events {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0;
        right: 0;
        width: 360px;
        height: 100%;
        background: var(--surface);
        border-left: 1px solid var(--border);
        z-index: 100;
    }

    .sidebar-header {
        padding: 22px;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
    }
    .sidebar-header h2 {
        font-family: 'Syne', sans-serif;
        font-size: 18px;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 14px;
    }

    .sidebar-tabs {
        display: flex;
        gap: 6px;
    }
    .sidebar-tab {
        flex: 1;
        padding: 9px;
        background: var(--surface2);
        border: 1px solid var(--border);
        border-radius: 6px;
        font-family: 'DM Mono', monospace;
        font-size: 11px;
        color: var(--muted2);
        font-weight: 500;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        transition: all 0.15s;
    }
    .sidebar-tab:hover { color: var(--text); border-color: var(--muted); }
    .sidebar-tab.active {
        background: var(--accent);
        border-color: var(--accent);
        color: #000;
        font-weight: 700;
    }

    .sidebar-filters {
        display: flex;
        gap: 6px;
        padding: 14px 22px;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
    }
    .quick-filter {
        padding: 5px 12px;
        background: var(--surface2);
        border: 1px solid var(--border);
        border-radius: 16px;
        font-family: 'DM Mono', monospace;
        font-size: 10px;
        color: var(--muted2);
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        transition: all 0.15s;
    }
    .quick-filter:hover { color: var(--text); border-color: var(--muted); }
    .quick-filter.active {
        background: var(--accent);
        border-color: var(--accent);
        color: #000;
    }

    .sidebar-content {
        flex: 1;
        overflow-y: auto;
        padding: 14px;
    }
    .sidebar-tab-content { display: none; }
    .sidebar-tab-content.active { display: block; }

    /* Cards sidebar */
    .sidebar-event-card {
        background: var(--surface2);
        border: 1px solid var(--border);
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 10px;
        cursor: pointer;
        transition: border-color 0.15s;
    }
    .sidebar-event-card:hover { border-color: var(--muted); }

    .sidebar-event-image {
        width: 100%;
        height: 110px;
        object-fit: cover;
        display: block;
    }

    .sidebar-event-info { padding: 12px; }

    .sidebar-event-name {
        font-family: 'Syne', sans-serif;
        font-size: 14px;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 7px;
        line-height: 1.3;
    }

    .sidebar-event-date,
    .sidebar-event-location {
        font-family: 'DM Mono', monospace;
        font-size: 11px;
        color: var(--muted2);
        margin-bottom: 4px;
        display: flex;
        gap: 5px;
        align-items: center;
    }
    .sidebar-event-date i,
    .sidebar-event-location i {
        color: var(--muted);
        font-size: 10px;
    }

    .sidebar-event-price {
        font-family: 'DM Mono', monospace;
        color: var(--accent);
        font-size: 12px;
        font-weight: 500;
        margin-top: 7px;
    }

    /* Map se rétrécit pour laisser place à la sidebar */
    #map-view #map {
        width: calc(100% - 360px);
    }

    /* Footer desktop */
    .legal-footer {
        padding: 60px 48px 48px;
    }
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }
    .footer-links a:hover { color: var(--accent); }
    .footer-social a:hover {
        background: var(--accent);
        color: #000;
        border-color: var(--accent);
    }

    /* Modal filtres desktop : centré et pas full-screen */
    .modal-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 520px;
        max-height: 85vh;
        border-radius: 12px;
        border: 1px solid var(--border);
        animation: fadeScaleIn 0.22s ease;
        inset: auto;
    }
    @keyframes fadeScaleIn {
        from { opacity: 0; transform: translate(-50%, -48%) scale(0.96); }
        to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    }
}


/* Bouton flottant desktop */
.floating-view-btn {
    display: none;
}

@media (min-width: 1024px) {
    .floating-view-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        position: fixed;
        bottom: 36px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1200;
        background: var(--accent);
        color: #000;
        border: none;
        border-radius: 50px;
        padding: 16px 32px;
        font-family: 'Syne', sans-serif;
        font-size: 15px;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        cursor: pointer;
        box-shadow: 0 8px 32px rgba(255, 107, 0, 0.35);
        transition: all 0.2s;
    }
    .floating-view-btn:hover {
        background: #ff8533;
        box-shadow: 0 12px 40px rgba(255, 107, 0, 0.5);
        transform: translateX(-50%) translateY(-2px);
    }
    .floating-view-btn i { font-size: 16px; }
}
