
/* ==========================================
   VIISIA — IDENTITÉ VISUELLE
========================================== */

:root {
    color-scheme: dark;

    --background: #0b0b12;
    --surface: #12121d;
    --surface-hover: #191927;

    --text: #f5f3ff;
    --text-muted: #9291a8;

    --accent: #a78bfa;
    --accent-bright: #c4b5fd;
    --accent-blue: #67d5f5;

    --border: rgba(255, 255, 255, 0.09);

    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 5px;
}


/* ==========================================
   EN-TÊTE
========================================== */

.site-header {
    position: relative;
    z-index: 5;

    background: rgba(11, 11, 18, 0.92);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-inner {
    width: min(var(--container), calc(100% - 48px));
    min-height: 78px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand-symbol {
    height: 27px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.brand-symbol span {
    display: block;
    width: 4px;
    border-radius: 5px;

    background: linear-gradient(
        180deg,
        var(--accent-blue),
        var(--accent)
    );
}

.brand-symbol span:nth-child(1),
.brand-symbol span:nth-child(5) {
    height: 10px;
}

.brand-symbol span:nth-child(2),
.brand-symbol span:nth-child(4) {
    height: 20px;
}

.brand-symbol span:nth-child(3) {
    height: 27px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--text);
}


/* ==========================================
   SECTION HERO
========================================== */

.hero {
    position: relative;
    min-height: 450px;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-bottom: 1px solid var(--border);

    background:
        radial-gradient(
            ellipse at 80% 40%,
            rgba(106, 71, 190, 0.11),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            #0e0d19 0%,
            var(--background) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
    padding: 70px 0 90px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--accent-bright);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-blue);

    box-shadow: 0 0 12px rgba(103, 213, 245, 0.65);
}

.hero h1 {
    margin: 20px 0 8px;

    font-size: clamp(4rem, 10vw, 7.5rem);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.075em;
}

.title-dot {
    color: var(--accent);
}

.hero-subtitle {
    margin: 20px 0 30px;

    color: #b9b7cc;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 400;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    padding: 13px 19px;

    border: 1px solid rgba(196, 181, 253, 0.25);
    border-radius: 7px;

    background: rgba(167, 139, 250, 0.1);
    color: var(--text);

    font-size: 0.9rem;
    font-weight: 600;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.hero-button span {
    color: var(--accent-bright);
    font-size: 1.2rem;
}

.hero-button:hover {
    background: rgba(167, 139, 250, 0.19);
    border-color: rgba(196, 181, 253, 0.5);
    transform: translateY(-2px);
}


/* Décoration lumineuse */

.hero-glow {
    position: absolute;
    z-index: 0;

    width: 300px;
    height: 300px;

    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.hero-glow-one {
    top: 20px;
    right: 8%;

    background: rgba(124, 58, 237, 0.14);
}

.hero-glow-two {
    bottom: -200px;
    right: 28%;

    background: rgba(56, 189, 248, 0.08);
}

.hero-decoration {
    position: absolute;
    top: 50%;
    right: 10%;

    width: 210px;
    height: 210px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    transform: translateY(-50%);
    opacity: 0.55;
    pointer-events: none;
}

.wave {
    width: 5px;
    border-radius: 8px;

    background: linear-gradient(
        180deg,
        var(--accent-blue),
        var(--accent),
        #6d5bd0
    );
}

.wave-one {
    height: 50px;
}

.wave-two {
    height: 100px;
}

.wave-three {
    height: 145px;
}

.wave:nth-child(4) {
    height: 80px;
}

.wave:nth-child(5) {
    height: 125px;
}

.wave:nth-child(6) {
    height: 55px;
}

.wave:nth-child(7) {
    height: 95px;
}

.wave:nth-child(8) {
    height: 40px;
}

.hero-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;

    width: min(var(--container), calc(100% - 48px));
    padding: 17px 0;

    display: flex;
    align-items: center;
    gap: 20px;

    transform: translateX(-50%);

    color: #69677f;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.hero-line {
    height: 1px;
    flex: 1;
    background: var(--border);
}


/* ==========================================
   SECTION ALBUMS
========================================== */

.albums-section {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
    padding: 68px 0 90px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 30px;
}

.section-kicker {
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-heading h2 {
    margin: 5px 0 0;

    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.album-count {
    padding-bottom: 5px;
    color: var(--text-muted);
    font-size: 0.85rem;
}


/* ==========================================
   GRILLE ET CARTES
========================================== */

.albums-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 27px;
}

.album-card {
    min-width: 0;
}

.album-link {
    display: block;
}

.cover-wrap {
    position: relative;
    overflow: hidden;

    aspect-ratio: 1 / 1;
    border-radius: 9px;

    background: var(--surface);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.16);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.album-cover {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.45s ease,
        filter 0.35s ease;
}

.cover-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: flex-end;
    justify-content: flex-end;

    padding: 15px;

    background: linear-gradient(
        180deg,
        transparent 50%,
        rgba(0, 0, 0, 0.48) 100%
    );

    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-button {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;

    background: rgba(167, 139, 250, 0.95);
    color: #171126;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);

    transform: translateY(8px) scale(0.9);
    transition: transform 0.3s ease;
}

.cover-number {
    position: absolute;
    top: 12px;
    left: 12px;

    padding: 4px 7px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 4px;

    background: rgba(11, 11, 18, 0.58);
    color: white;

    font-size: 0.68rem;
    font-weight: 700;

    backdrop-filter: blur(8px);
}

.album-link:hover .cover-wrap {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.album-link:hover .album-cover {
    transform: scale(1.045);
}

.album-link:hover .cover-overlay,
.album-link:focus-visible .cover-overlay {
    opacity: 1;
}

.album-link:hover .play-button,
.album-link:focus-visible .play-button {
    transform: translateY(0) scale(1);
}

.album-info {
    padding: 15px 2px 0;
}

.album-info h3 {
    overflow-wrap: anywhere;

    margin: 0;

    color: var(--text);
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.4;

    transition: color 0.2s ease;
}

.album-link:hover .album-info h3 {
    color: var(--accent-bright);
}

.album-meta {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-top: 5px;

    color: var(--text-muted);
    font-size: 0.8rem;
}

.meta-separator {
    color: #5e5b75;
}

.album-arrow {
    margin-left: auto;

    color: var(--accent);
    font-size: 1rem;

    opacity: 0;
    transform: translate(-4px, 4px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.album-link:hover .album-arrow {
    opacity: 1;
    transform: translate(0, 0);
}


/* ==========================================
   ÉTAT VIDE
========================================== */

.empty-state {
    padding: 65px 20px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background:
        radial-gradient(
            ellipse at 50% 0,
            rgba(167, 139, 250, 0.08),
            transparent 65%
        ),
        var(--surface);

    text-align: center;
}

.empty-icon {
    color: var(--accent);
    font-size: 2.5rem;
}

.empty-state h3 {
    margin: 12px 0 5px;
    font-size: 1.25rem;
}

.empty-state p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}


/* ==========================================
   PIED DE PAGE
========================================== */

.site-footer {
    border-top: 1px solid var(--border);
    background: #09090f;
}

.footer-inner {
    width: min(var(--container), calc(100% - 48px));
    min-height: 100px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.footer-brand span {
    color: var(--accent);
}

.footer-inner p {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: center;
}

.footer-note {
    color: #77758a;
    font-size: 0.78rem;
}


/* ==========================================
   RESPONSIVE — TABLETTES
========================================== */

@media (max-width: 950px) {
    .albums-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 23px;
    }

    .hero-decoration {
        right: 4%;
        opacity: 0.3;
    }
}


/* ==========================================
   RESPONSIVE — SMARTPHONES
========================================== */

@media (max-width: 650px) {
    .header-inner {
        min-height: 68px;
    }

    .brand {
        font-size: 1.45rem;
    }

    .hero {
        min-height: 390px;
    }

    .hero-content {
        padding: 65px 0 85px;
    }

    .hero h1 {
        font-size: clamp(4rem, 18vw, 6rem);
    }

    .hero-subtitle {
        max-width: 340px;
        line-height: 1.7;
    }

    .hero-decoration {
        top: 28%;
        right: -25px;

        transform: translateY(-50%) scale(0.7);
        opacity: 0.15;
    }

    .hero-bottom {
        font-size: 0.56rem;
        letter-spacing: 1px;
    }

    .albums-section {
        padding: 48px 0 60px;
    }

    .albums-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 16px;
    }

    .cover-overlay {
        padding: 9px;
    }

    .play-button {
        width: 38px;
        height: 38px;
    }

    .play-button svg {
        width: 21px;
        height: 21px;
    }

    .album-info {
        padding-top: 10px;
    }

    .album-info h3 {
        font-size: 0.93rem;
    }

    .album-meta {
        font-size: 0.75rem;
    }

    .footer-inner {
        min-height: 110px;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 4px 15px;
        padding: 20px 0;
    }

    .footer-inner p {
        order: 3;
        width: 100%;
        margin: 0;
        text-align: left;
    }
}


/* ==========================================
   PETITS SMARTPHONES
========================================== */

@media (max-width: 360px) {
    .header-inner,
    .hero-content,
    .hero-bottom,
    .albums-section,
    .footer-inner {
        width: calc(100% - 32px);
    }

    .albums-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .album-card {
        max-width: 340px;
        width: 100%;
        margin: 0 auto;
    }

    .album-info h3 {
        font-size: 1.05rem;
    }

    .section-heading h2 {
        font-size: 2rem;
    }
}


/* ==========================================
   ACCESSIBILITÉ
========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}



/* ==========================================
   PAGE DE DÉTAIL D'UN ALBUM
========================================== */

.container {
    width: min(1180px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

.album-detail {
    padding: 30px 0 70px;
}

.back-link {
    display: inline-block;
    margin: 12px 0 28px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--accent-bright);
}

.album-heading {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: center;
    gap: 36px;
    margin: 10px 0 40px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background:
        radial-gradient(
            ellipse at 0 0,
            rgba(167, 139, 250, 0.12),
            transparent 65%
        ),
        var(--surface);
}

/* Cette règle ne concerne que la page de détail. */
.album-heading .album-cover {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 9px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.album-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    letter-spacing: -1px;
    overflow-wrap: anywhere;
}

.album-heading p {
    color: var(--text-muted);
}

.album-actions {
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid rgba(196, 181, 253, 0.3);
    border-radius: 7px;
    background: rgba(167, 139, 250, 0.13);
    color: var(--text);
    font-weight: 600;
    transition: background 0.2s ease;
}

.button:hover {
    background: rgba(167, 139, 250, 0.25);
}

.player-box {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.player-box h3 {
    margin-top: 0;
    font-size: 1.35rem;
}

.current-track {
    color: var(--accent-bright);
    font-weight: 600;
}

.audio-player {
    display: block;
    width: 100%;
    margin: 18px 0 28px;
}

.track-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.track-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 8px;
    border-bottom: 1px solid var(--border);
}

.track-list li:last-child {
    border-bottom: 0;
}

.track-number {
    min-width: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.track-button {
    flex: 1;
    min-width: 0;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: left;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.track-button:hover,
.track-button[aria-current="true"] {
    color: var(--accent-bright);
}

.track-download {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.track-download:hover {
    color: var(--accent-bright);
}

.message {
    margin: 25px 0;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}

@media (max-width: 650px) {
    .container {
        width: calc(100% - 32px);
    }

    .album-detail {
        padding-top: 15px;
    }

    .album-heading {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 20px;
    }

    .album-heading .album-cover {
        width: min(100%, 260px);
        margin: 0 auto;
    }

    .album-heading h2 {
        font-size: 2rem;
    }

    .player-box {
        padding: 20px 15px;
    }

    .track-list li {
        gap: 9px;
    }
}
