/* =====================================================================
   Galerie par albums (maquette)
   ===================================================================== */

.alb-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin-bottom: 28px;
}

.alb-bar .filter-tabs {
    margin-bottom: 0;
}

.alb-total {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--brume);
}

/* ---------- Carte d'album ---------- */
.alb-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #0a1d57;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
    box-shadow: 0 1px 2px rgba(12, 26, 61, .06), 0 10px 28px rgba(12, 26, 61, .1);
}

.alb-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

.alb-card:hover img,
.alb-card:focus-visible img {
    transform: scale(1.05);
}

.alb-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(4, 11, 32, .92) 0%, rgba(4, 11, 32, .55) 38%, rgba(4, 11, 32, 0) 68%);
}

.alb-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    gap: 6px;
    padding: 20px 22px;
}

.alb-tag {
    justify-self: start;
    padding: 3px 9px;
    background: #fccf1a;
    color: #0a1d57;
    font-size: 13px;
    font-weight: 700;
}

.alb-title {
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: 28px;
    font-weight: 900;
    line-height: .98;
    text-transform: uppercase;
    color: #fff;
}

.alb-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, .82);
}

.alb-meta i {
    margin-right: 4px;
    color: #fccf1a;
}

.alb-count {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(4, 11, 32, .72);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.alb-count i {
    color: #fccf1a;
}

/* Le dernier album, en grand */
.alb-card.is-feature {
    aspect-ratio: 21 / 9;
    margin-bottom: 24px;
}

.alb-card.is-feature .alb-body {
    gap: 10px;
    max-width: 760px;
    padding: 34px 38px;
}

.alb-card.is-feature .alb-title {
    font-size: clamp(36px, 4.4vw, 60px);
}

.alb-card.is-feature .alb-meta {
    font-size: 16px;
}

.alb-open {
    justify-self: start;
    margin-top: 8px;
    padding: 12px 22px;
    background: #fccf1a;
    color: #0a1d57;
    font-family: "Big Shoulders Display", var(--font-display);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: background .15s;
}

.alb-card:hover .alb-open {
    background: #ffe066;
}

.alb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    list-style: none;
}

/* ---------- Page d'un album ---------- */
.alb-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--filet);
}

.alb-info-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    font-weight: 600;
    color: var(--brume);
}

.alb-info-meta i {
    margin-right: 5px;
    color: #8f6c00;
}

.alb-info-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Mosaïque : quelques photos en grand pour rythmer */
.alb-photos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 210px;
    gap: 10px;
    list-style: none;
}

.alb-photos li.is-wide {
    grid-column: span 2;
    grid-row: span 2;
}

.alb-photos .photo-tile {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.alb-photos .photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alb-more {
    margin-top: 28px;
    text-align: center;
}

.alb-next-head {
    margin-top: clamp(56px, 7vw, 88px);
}

@media (max-width: 960px) {
    .alb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .alb-card.is-feature {
        aspect-ratio: 16 / 10;
    }

    .alb-photos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 180px;
    }
}

@media (max-width: 600px) {
    .alb-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .alb-card.is-feature {
        aspect-ratio: 4 / 5;
    }

    .alb-card.is-feature .alb-body {
        padding: 22px;
    }

    .alb-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 150px;
        gap: 6px;
    }

    .alb-total {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .alb-card img {
        transition: none;
    }
}
