/* ============================================================
   Y - WHY · albums.css
   Page des albums / projets
   ============================================================ */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
    --bg-root:      #09050f;
    --bg-deep:      #0d0520;
    --bg-card:      #120828;
    --bg-card-alt:  #1a0d35;
    --border-faint: #1e0f38;
    --border-dim:   #2d1a4a;
    --border-mid:   #3d1f7a;
    --border-main:  #5b21b6;
    --purple-main:  #7c4dff;
    --purple-vivid: #7c4dff;
    --purple-light: #aa44ff;
    --purple-pale:  #c4a8ff;
    --purple-muted: #9b7ed0;
    --text-primary:   #ede0ff;
    --text-secondary: #b59dd4;
    --text-muted:     #6b4fa0;
    --text-faint:     #a891c4;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'DM Sans', Inter, sans-serif;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 22px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    min-height: 100vh;
    padding-bottom: 88px;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 48px;
    background: rgba(9, 5, 15, 0.9);
    border-bottom: 0.5px solid var(--border-faint);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
}

.logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--purple-pale);
    letter-spacing: 3px;
}
.logo span { color: var(--purple-vivid); }

.nav-links { display: flex; gap: 36px; }
.nav-link { font-size: 13px; color: var(--text-muted); letter-spacing: 0.8px; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--purple-pale); }

.nav-link:hover,
.nav-link.active {
    color: var(--purple-pale);
}

.nav-cta {
    font-size: 12px;
    color: var(--purple-pale);
    background: transparent;
    border: 0.5px solid var(--border-main);
    padding: 9px 22px;
    border-radius: var(--r-sm);
    letter-spacing: 1.5px;
    transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--purple-main); color: white; }

/* ============================================================
   EN-TÊTE PAGE
   ============================================================ */
.page-header {
    text-align: center;
    padding: 64px 48px 0;
    max-width: 800px;
    margin: 0 auto;
}

.page-eyebrow {
    font-size: 11px;
    color: var(--purple-vivid);
    letter-spacing: 3px;
    margin-bottom: 16px;
    font-family: var(--font-body);
}

.page-title {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 14px;
}
.page-title em { font-style: italic; color: var(--purple-light); }

.page-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.rainbow-header {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    line-height: 0;
    filter: drop-shadow(0 0 10px rgba(170, 68, 255, .25));
}
.rainbow-header svg { width: 100%; height: 60px; display: block; }

/* ============================================================
   ALBUM EN VEDETTE
   ============================================================ */
.featured-section {
    max-width: 1280px;
    margin: 56px auto 0;
    padding: 0 48px;
    margin-bottom: 4em;
}

.featured-album {
    display: flex;
    gap: 56px;
    align-items: center;
    background: var(--bg-card);
    border: 0.5px solid var(--border-mid);
    border-radius: var(--r-xl);
    padding: 48px;
    position: relative;
    overflow: hidden;
}

/* Halo décoratif */
.featured-album::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.15), transparent 70%);
    pointer-events: none;
}

.featured-cover {
    position: relative;
    flex-shrink: 0;
    width: 280px;
    height: 280px;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.featured-album:hover .featured-cover img { transform: scale(1.04); }

.featured-cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 5, 15, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s;
}
.featured-album:hover .featured-cover-overlay { opacity: 1; }

.featured-play-btn {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--purple-main);
    color: white;
    font-size: 26px;
    display: flex; align-items: center; justify-content: center;
    transition: transform .15s, background .2s;
}
.featured-play-btn:hover { transform: scale(1.08); background: #6040e0; }

/* Infos album vedette */
.featured-info { flex: 1; }

.featured-type {
    font-size: 11px;
    color: var(--purple-vivid);
    letter-spacing: 2.5px;
    display: block;
    margin-bottom: 14px;
}

.featured-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 8px;
}

.featured-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.featured-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 480px;
    margin-bottom: 28px;
}

.featured-actions { display: flex; gap: 12px; margin-bottom: 32px; }

.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--purple-main);
    color: white;
    font-size: 14px; font-weight: 500;
    padding: 13px 28px;
    border-radius: var(--r-md);
    border: none;
    transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #6040e0; transform: translateY(-1px); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent;
    color: var(--purple-pale);
    font-size: 14px; font-weight: 500;
    padding: 13px 28px;
    border-radius: var(--r-md);
    border: 0.5px solid var(--border-mid);
    transition: background .2s, border-color .2s;
}
.btn-outline:hover { background: rgba(91,33,182,.12); border-color: var(--border-main); }

/* Stats album */
.featured-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.fstat { display: flex; flex-direction: column; gap: 2px; }
.fstat-num { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--text-primary); }
.fstat-label { font-size: 12px; color: var(--text-faint); }
.fstat-div { width: 1px; height: 36px; background: var(--border-faint); }

/* ============================================================
   GRILLE ALBUMS
   ============================================================ */
.albums-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px 56px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 32px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.see-all {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px;
    color: var(--purple-vivid);
    transition: gap .2s;
}
.see-all:hover { gap: 9px; }

.albums-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.album-card {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color .25s, background .25s, transform .2s;
}
.album-card:hover {
    background: var(--bg-card-alt);
    border-color: var(--border-mid);
    transform: translateY(-4px);
}

/* Carte principale plus grande */
.album-card.featured-card {
    border-color: var(--border-mid);
}

.album-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-root);
}
.album-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.album-card:hover .album-cover img { transform: scale(1.04); }

.album-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 5, 15, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .22s;
}
.album-card:hover .album-overlay { opacity: 1; }

.album-play-btn {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--purple-main);
    color: white;
    font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    transition: transform .15s, background .2s;
}
.album-play-btn:hover { transform: scale(1.08); background: #6040e0; }

/* Badge */
.album-badge {
    position: absolute;
    top: 12px; left: 12px;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: white;
    background: var(--purple-main);
    padding: 4px 10px;
    border-radius: 100px;
}
.album-badge.collab { background: #2d6a4f; }

/* Infos album */
.album-info { padding: 18px 20px; }

.album-type {
    font-size: 10px;
    color: var(--purple-vivid);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 6px;
}

.album-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.album-meta {
    font-size: 12px;
    color: var(--text-faint);
    margin-bottom: 14px;
}

.album-actions { display: flex; align-items: center; gap: 8px; }

.album-btn-play {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px;
    color: var(--purple-pale);
    background: rgba(91, 33, 182, 0.15);
    border: 0.5px solid var(--border-mid);
    padding: 8px 16px;
    border-radius: var(--r-sm);
    transition: background .2s;
}
.album-btn-play:hover { background: rgba(91, 33, 182, 0.3); }

.album-btn-more {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: transparent;
    border: 0.5px solid var(--border-dim);
    color: var(--text-faint);
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    transition: color .2s, border-color .2s;
    flex-shrink: 0;
}
.album-btn-more:hover { color: var(--purple-pale); border-color: var(--border-mid); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px 64px;
    border-top: 0.5px solid var(--border-faint);

}

.timeline {
    position: relative;
    padding-top: 40px;
}

/* Ligne verticale */
.timeline::before {
    content: '';
    position: absolute;
    left: 72px;
    top: 40px;
    bottom: 0;
    width: 1px;
    background: var(--border-dim);
}

.timeline-item {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--purple-pale);
    min-width: 56px;
    text-align: right;
    padding-top: 2px;
    flex-shrink: 0;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--purple-main);
    border: 2px solid var(--bg-deep);
    flex-shrink: 0;
    margin-top: 6px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 12px rgba(124, 77, 255, 0.5);
}

.timeline-content {
    flex: 1;
    background: var(--bg-card);
    border: 0.5px solid var(--border-faint);
    border-radius: var(--r-lg);
    padding: 22px 24px;
    transition: border-color .2s, background .2s;
}
.timeline-item:hover .timeline-content {
    background: var(--bg-card-alt);
    border-color: var(--border-mid);
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 14px;
}

.timeline-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.ttag {
    font-size: 11px;
    color: var(--purple-muted);
    background: rgba(91, 33, 182, 0.12);
    border: 0.5px solid var(--border-dim);
    padding: 4px 10px;
    border-radius: 100px;
}

/* ============================================================
   PLAYER BAR
   ============================================================ */
.player-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: #1a0d35;
    border-top: 0.5px solid var(--border-faint);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    gap: 24px;
    z-index: 200;
}

.player-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }

.player-thumb {
    width: 46px; height: 46px;
    border-radius: var(--r-sm);
    background: var(--border-mid);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--purple-pale); flex-shrink: 0;
}

.player-title { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.player-artist { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.player-center {
    flex: 1.5;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}

.player-controls { display: flex; align-items: center; gap: 8px; }

.ctrl-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    transition: color .2s, background .2s;
}
.ctrl-btn:hover { color: var(--purple-pale); background: rgba(91,33,182,.15); }

.ctrl-play { width: 42px; height: 42px; background: var(--purple-main); color: white; font-size: 18px; }
.ctrl-play:hover { background: #6040e0; color: white; }

.player-progress { display: flex; align-items: center; gap: 10px; width: 100%; }
.player-time { font-size: 11px; color: var(--text-faint); flex-shrink: 0; }

.progress-track {
    flex: 1; height: 3px;
    background: var(--border-faint);
    border-radius: 2px; overflow: hidden;
}
.progress-fill { height: 100%; width: 0%; background: var(--purple-main); border-radius: 2px; }

.player-right { display: flex; align-items: center; gap: 10px; flex: 1; justify-content: flex-end; }

.volume-track { width: 80px; height: 3px; background: var(--border-dim); border-radius: 2px; overflow: hidden; }
.volume-fill { height: 100%; width: 70%; background: var(--purple-main); }

.btn-icon {
    width: 32px; height: 32px; border-radius: 50%;
    background: transparent; color: var(--text-faint);
    font-size: 16px; display: flex; align-items: center; justify-content: center;
    transition: color .2s;
}
.btn-icon:hover { color: var(--purple-pale); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .featured-album { flex-direction: column; gap: 32px; }
    .featured-cover { width: 100%; max-width: 320px; height: 320px; margin: 0 auto; }
    .featured-title { font-size: 32px; }
    .albums-grid { grid-template-columns: repeat(2, 1fr); }
    .navbar { padding: 14px 24px; }
    .featured-section, .albums-section, .timeline-section { padding-left: 24px; padding-right: 24px; }
    .page-header { padding: 48px 24px 0; }
    .page-title { font-size: 38px; }
}

@media (max-width: 600px) {
    .albums-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .player-right { display: none; }
    .timeline::before { left: 56px; }
    .featured-album { padding: 28px 20px; }
}