@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;700&display=swap');

/* ==============================
   FILTER BAR
============================== */
.filter-section {
    position: sticky;
    top: 80px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 60px;
    background-color: rgba(17, 17, 17, 0.97);
    border-bottom: 1px solid #1e1e1e;
    gap: 20px;
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
}

.pills-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
    white-space: nowrap;
    scrollbar-width: none;
    flex: 1;
}

.pills-container::-webkit-scrollbar { display: none; }

.filter-pill {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #888;
    padding: 7px 16px;
    border-radius: 2px;
    font-size: 0.72rem;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.filter-pill:hover:not(.active) {
    border-color: #444;
    color: #ccc;
}

.filter-pill.active {
    background-color: #ffcc00;
    border-color: #ffcc00;
    color: #000;
    font-weight: 700;
}

.filter-pill .count {
    background-color: rgba(0,0,0,0.15);
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
}

.filter-pill:not(.active) .count {
    background-color: rgba(255,255,255,0.07);
    color: #666;
}

.filter-search {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #222;
    border-radius: 2px;
    padding: 0 14px;
    flex-shrink: 0;
    width: 280px;
    transition: border-color 0.3s;
}

.filter-search:focus-within {
    border-color: #ffcc00;
}

.filter-search input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 0;
    width: 100%;
    outline: none;
    font-size: 0.8rem;
    font-family: 'DM Sans', sans-serif;
}

.filter-search input::placeholder { color: #444; }

.icon-filter {
    color: #444;
    font-size: 1rem;
}

/* ==============================
   SECTION AFFICHES
============================== */
.section-affiches {
    background-color: #0a0a0a;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 60px 100px;
}

.titre-page {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 60px;
    letter-spacing: 2px;
    line-height: 1;
}

.titre-page span { color: #ff00ff; }

/* ==============================
   GRILLE AFFICHES
============================== */
.grille-affiches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 50px 25px;
}

.carte-affiche {
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.carte-affiche.masquee {
    display: none !important;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background-color: #111;
    margin-bottom: 18px;
    position: relative;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.carte-affiche:hover img {
    transform: scale(1.04);
}

/* Textes */
.info-affiche .categorie {
    color: #ffcc00;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    display: block;
    margin-bottom: 8px;
}

.info-affiche h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    color: #fff;
    line-height: 1.1;
}

.info-affiche p {
    color: #555;
    font-size: 0.75rem;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.btn-reserver {
    display: block;
    text-align: center;
    padding: 11px;
    background-color: transparent;
    color: #fff;
    border: 1px solid #333;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.btn-reserver:hover {
    background-color: #ff00ff;
    border-color: #ff00ff;
    color: #fff;
}

/* Message aucun résultat */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #333;
}

.no-results p {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    color: #2a2a2a;
    margin-bottom: 10px;
}

.no-results span {
    font-size: 0.8rem;
    color: #333;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 992px) {
    .filter-section { padding: 14px 25px; }
    .container { padding: 50px 25px 70px; }
    .titre-page { font-size: 3.5rem; }
    .filter-search { width: 100%; }
}

@media (max-width: 600px) {
    .grille-affiches { grid-template-columns: 1fr; gap: 40px; }
    .titre-page { font-size: 2.8rem; margin-bottom: 40px; }
}
