/* ─────────────────────────────────────────────
   L'Explorateur Scientifique — Archive (Netflix)
   ───────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

body.lexplo-archive-page {
    margin: 0;
    padding: 0;
    background: #111;
}

/* ── Base ── */
.lexplo-archive {
    min-height: 100vh;
    background: #111;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    padding-bottom: 60px;
}

/* ── Top bar ── */
.lexplo-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 64px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0));
    backdrop-filter: blur(0);
    transition: background 0.3s, backdrop-filter 0.3s;
}
.lexplo-topbar.scrolled {
    background: rgba(17,17,17,0.97);
    backdrop-filter: blur(8px);
}
.lexplo-topbar__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.3px;
}
.lexplo-topbar__icon { font-size: 22px; }
.lexplo-topbar__link {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    transition: color 0.2s, border-color 0.2s;
}
.lexplo-topbar__link:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

/* ── Hero banner ── */
.lexplo-hero {
    padding: 60px 40px 30px;
    max-width: 640px;
}
.lexplo-hero__title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 14px;
    color: #fff;
}
.lexplo-hero__sub {
    font-size: 16px;
    color: rgba(255,255,255,0.55);
    margin: 0;
    line-height: 1.6;
}

/* ── Filters ── */
.lexplo-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 40px 24px;
}
.lexplo-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    border-radius: 30px;
    padding: 8px 18px;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
    white-space: nowrap;
}
.lexplo-filter:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
    transform: translateY(-1px);
}
.lexplo-filter.active {
    background: rgb(0,173,147);
    border-color: rgb(0,173,147);
    color: #fff;
}
.lexplo-filter__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    line-height: 1;
}
.lexplo-filter.active .lexplo-filter__count {
    background: rgba(255,255,255,0.25);
}

/* ── Grid ── */
.lexplo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
    padding: 0 40px;
}

/* ── Card ── */
.lexplo-grid__item {
    transition: opacity 0.25s;
}
.lexplo-grid__item.hidden {
    display: none;
}

.lexplo-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #1c1c1c;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s cubic-bezier(0.25,0.46,0.45,0.94),
                box-shadow 0.25s ease;
    will-change: transform;
}
.lexplo-card:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.7);
    z-index: 2;
    position: relative;
}

/* Thumbnail */
.lexplo-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #2a2a2a;
}
.lexplo-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.lexplo-card:hover .lexplo-card__thumb img {
    transform: scale(1.08);
}
.lexplo-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: linear-gradient(135deg, #1e2a2a, #0d1a1a);
}

/* Play overlay */
.lexplo-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    transition: background 0.2s;
}
.lexplo-card:hover .lexplo-card__overlay {
    background: rgba(0,0,0,0.3);
}
.lexplo-card__play {
    width: 52px;
    height: 52px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s, transform 0.2s;
}
.lexplo-card:hover .lexplo-card__play {
    opacity: 1;
    transform: scale(1);
}

/* Card info */
.lexplo-card__info {
    padding: 14px 16px 16px;
}
.lexplo-card__badge {
    display: inline-block;
    background: rgb(0,173,147);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
}
.lexplo-card__title {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    margin: 0 0 6px;
}
.lexplo-card__excerpt {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    line-height: 1.5;
    margin: 0;
}

/* No results */
.lexplo-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.4);
    font-size: 15px;
}

/* Footer */
.lexplo-footer {
    margin-top: 60px;
    padding: 24px 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .lexplo-topbar { padding: 0 20px; height: 56px; }
    .lexplo-topbar__logo { font-size: 15px; }
    .lexplo-hero { padding: 40px 20px 20px; }
    .lexplo-filters { padding: 6px 20px 20px; gap: 8px; }
    .lexplo-filter { padding: 7px 14px; font-size: 12px; }
    .lexplo-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .lexplo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 14px;
    }
    .lexplo-card__title { font-size: 12px; }
    .lexplo-card__excerpt { display: none; }
}
