/* Variables globales */
:root {
    --primary-color: #dc4ed1;
    --secondary-color: #03DAC6;
    --background-color: #121212;
    --surface-color: #1E1E1E;
    --surface-color-hover: #2D2D2D;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --spacing-unit: 20px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition-speed: 0.3s;
    --card-width: 800px;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--surface-color);
}

html {
    min-height: 100%;
    background: var(--background-color);
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(220, 78, 209, 0.15) 0%, var(--background-color) 25%);
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Header */
.header {
    text-align: center;
    padding: calc(var(--spacing-unit) * 3) var(--spacing-unit);
    margin-bottom: calc(var(--spacing-unit) * 2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.header .logo {
    width: auto;
    height: 180px;
    margin: 0 auto;
    display: block;
    position: relative;
    left: 0;
    transform: none;
    opacity: 0.7;
    -webkit-mask-image: 
        linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 98%),
        radial-gradient(ellipse at center, black 75%, transparent 95%);
    mask-image: 
        linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 98%),
        radial-gradient(ellipse at center, black 75%, transparent 95%);
    -webkit-mask-composite: intersect;
    mask-composite: intersect;
    filter: drop-shadow(0 0 24px rgba(220, 78, 209, 0.18));
}

.header p {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.logo-image {
    max-width: 900px;
    width: clamp(260px, 60vw, 900px);
    height: auto;
    margin-bottom: calc(var(--spacing-unit) * 2);
    transition: transform var(--transition-speed) ease;
    position: relative;
    -webkit-mask-image: radial-gradient(circle at center, black 85%, transparent 98%);
    mask-image: radial-gradient(circle at center, black 85%, transparent 98%);
}

.logo-image:hover {
    transform: scale(1.01);
}

/* Suppression des anciens effets qui n'étaient pas naturels */
.logo-image::after {
    display: none;
}

.header h1 {
    font-size: 4.5rem;
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 6px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Grille des artistes */
.artists-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--spacing-unit) * 4);
    padding: var(--spacing-unit) 0;
    width: 100%;
    max-width: var(--card-width);
    margin: 0 auto;
}

/* Carte artiste */
.artist-card {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 21/9;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.artist-card .artist-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.8);
}

.artist-card .artist-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: calc(var(--spacing-unit) * 2);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: var(--text-primary);
    transform: translateY(0);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    height: 100%;
    backdrop-filter: blur(0px);
}

.artist-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(220, 78, 209, 0.3);
    border-color: rgba(220, 78, 209, 0.3);
}

.artist-card:hover .artist-image {
    transform: scale(1.1);
    filter: brightness(1);
}

.artist-card:hover .artist-content {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    backdrop-filter: blur(8px);
    padding-bottom: calc(var(--spacing-unit) * 3);
}

.artist-card h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    transform: translateY(0);
    transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.artist-card:hover h2 {
    transform: translateY(-8px);
}

.artist-card .track-count {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.artist-card:hover .track-count {
    opacity: 1;
    transform: translateY(0);
}

/* Modal artiste */
.artist-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.artist-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: var(--spacing-unit);
    border-radius: var(--border-radius-lg);
}

.modal-header {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin-bottom: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
}

.modal-header .artist-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-header .header-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-unit);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.modal-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    transition: color var(--transition-speed) ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* Tracks dans le modal */
.tracks-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing-unit) * 2);
    padding: var(--spacing-unit);
    padding-bottom: calc(var(--spacing-unit) * 6);
}

/* Track item avec bouton play */
.track-item {
    aspect-ratio: 16/9;
    border-radius: var(--border-radius);
    padding: var(--spacing-unit);
    transition: all var(--transition-speed) ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.track-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8));
    z-index: 1;
    transition: opacity var(--transition-speed) ease;
}

.track-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23dc4ed1' opacity='0.6'/%3E%3Cpath d='M15.5 12L10 15V9L15.5 12Z' fill='white'/%3E%3C/svg%3E") no-repeat center;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all var(--transition-speed) ease;
    z-index: 3;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.track-item:hover::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
}

.track-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.track-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: opacity var(--transition-speed) ease;
}

.track-item:hover .track-header {
    opacity: 0.7;
}

.track-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.track-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.play-button {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    z-index: 3;
    background: none;
    border: none;
    cursor: pointer;
}

.platform-link.youtube {
    background: rgba(255, 0, 0, 0.15);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(255, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.platform-link.youtube:before {
    display: none;
}

.platform-link.youtube:hover {
    background: rgba(255, 0, 0, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

.platform-link.youtube span {
    display: inline;
}

.platform-link.youtube:after {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Media Queries */
@media (max-width: 768px) {
    :root {
        --spacing-unit: 16px;
        --border-radius: 12px;
        --border-radius-lg: 16px;
    }

    .container {
        padding: 0 var(--spacing-unit);
    }

    .header {
        padding: calc(var(--spacing-unit) * 2) 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header .logo {
        height: 160px;
        width: auto;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 auto;
    }

    .header p {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .artists-grid {
        gap: calc(var(--spacing-unit) * 2);
        padding: var(--spacing-unit) 0;
    }

    .artist-card {
        aspect-ratio: 16/9;
    }

    .artist-card h2 {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    .artist-card .artist-content {
        padding: calc(var(--spacing-unit) * 1.5);
    }

    .artist-card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .artist-card .track-count {
        font-size: 1rem;
        opacity: 1;
        transform: translateY(0);
    }

    .modal-content {
        margin: 0;
        min-height: 100vh;
        border-radius: 0;
        padding: var(--spacing-unit);
    }

    .modal-header {
        height: 180px;
        margin-bottom: var(--spacing-unit);
    }

    .modal-header h2 {
        font-size: 1.8rem;
    }

    .tracks-list {
        grid-template-columns: 1fr;
        gap: var(--spacing-unit);
        padding: 0;
        padding-bottom: calc(var(--spacing-unit) * 6);
    }

    .track-item {
        aspect-ratio: 16/9;
        margin: 0;
        padding: var(--spacing-unit);
    }

    .track-title {
        font-size: 1rem;
    }

    .playlist-section {
        margin: calc(var(--spacing-unit) * 2) auto;
    }

    .playlist-link {
        aspect-ratio: 32/8;
        padding: var(--spacing-unit);
    }

    .playlist-content p {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .footer {
        margin-top: calc(var(--spacing-unit) * 2);
        padding: calc(var(--spacing-unit) * 1.5) 0;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: calc(var(--spacing-unit) * 0.5);
    }

    .social-link {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Support des appareils très petits */
@media (max-width: 380px) {
    :root {
        --spacing-unit: 12px;
    }

    .header .logo {
        height: 120px;
    }

    .header p {
        font-size: 0.9rem;
    }

    .artist-card {
        aspect-ratio: 16/12;
    }

    .artist-card h2 {
        font-size: 2rem;
    }

    .artist-card .track-count {
        font-size: 0.9rem;
    }

    .modal-header {
        height: 150px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .track-title {
        font-size: 0.9rem;
    }

    .playlist-link {
        aspect-ratio: 32/10;
    }

    .playlist-content p {
        font-size: 0.8rem;
    }
}

/* Ajustements pour les grands écrans */
@media (min-width: 1200px) {
    .artists-grid {
        gap: calc(var(--spacing-unit) * 4);
    }
}

/* Footer */
.footer {
    background: linear-gradient(to top, var(--surface-color) 0%, transparent 100%);
    padding: calc(var(--spacing-unit) * 3) 0;
    margin-top: calc(var(--spacing-unit) * 4);
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    position: relative;
}

/* Ajout du padding-bottom quand le mini-player est actif */
body:has(.mini-player.active) .footer {
    padding-bottom: calc(90px + (var(--spacing-unit) * 3));
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-unit);
    padding: 0 var(--spacing-unit);
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 0.75);
}

.social-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
    background: rgba(187, 134, 252, 0.1);
    border: 1px solid rgba(187, 134, 252, 0.2);
}

.social-link:hover {
    background: rgba(187, 134, 252, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer {
        padding: calc(var(--spacing-unit) * 2) 0;
        margin-top: calc(var(--spacing-unit) * 2);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: calc(var(--spacing-unit) * 1.5);
        padding: 0 var(--spacing-unit);
    }

    .social-links {
        justify-content: center;
    }

    .social-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Mini Player style Spotify */
.mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #181818;
    padding: 0;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
}

.mini-player.active {
    transform: translateY(0);
}

.mini-player-content {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 90px;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.mini-player-info {
    display: none;
}

.mini-player-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-primary);
}

.mini-player-artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.mini-player-controls {
    position: absolute;
    right: 80px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

.mini-player-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.mini-player-button:hover {
    color: var(--text-primary);
    opacity: 1;
}

.mini-player-button.active {
    color: var(--primary-color);
    opacity: 1;
}

.mini-player-spotify {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-player-spotify iframe {
    width: 100%;
    height: 90px;
    border: none;
    margin: 0 auto;
}

/* Suppression du style du bouton de fermeture */
.mini-player-close {
    display: none;
}

/* Playlist indicator */
.track-item.now-playing {
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(220, 78, 209, 0.3);
}

.track-item.now-playing::before {
    background: linear-gradient(to bottom, rgba(220, 78, 209, 0.2), rgba(0, 0, 0, 0.8));
}

.track-item.next-in-queue {
    border: 1px solid var(--primary-color);
    opacity: 0.9;
}

/* Style de la barre de défilement pour Chrome/Safari/Edge */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    opacity: 0.8;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Style de la barre de défilement pour Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--surface-color);
}

/* Section Playlist */
.playlist-section {
    width: 100%;
    max-width: var(--card-width);
    margin: calc(var(--spacing-unit) * 4) auto;
    padding: 0 var(--spacing-unit);
}

.playlist-link {
    display: block;
    text-decoration: none;
    background: linear-gradient(45deg, var(--surface-color), rgba(220, 78, 209, 0.1));
    border-radius: var(--border-radius-lg);
    padding: calc(var(--spacing-unit) * 1.5);
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(220, 78, 209, 0.2);
    aspect-ratio: 32/4;
}

.playlist-link:hover {
    transform: translateY(-5px);
    background: linear-gradient(45deg, var(--surface-color), rgba(220, 78, 209, 0.2));
    box-shadow: 0 12px 48px rgba(220, 78, 209, 0.2);
}

.playlist-content {
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.playlist-content p {
    color: var(--text-primary);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .playlist-section {
        margin: calc(var(--spacing-unit) * 2) auto;
    }

    .playlist-content p {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .playlist-link {
        aspect-ratio: 32/6;
    }
}

.modal-footer {
    display: none;
    margin-top: auto;
    padding: calc(var(--spacing-unit) * 3) 0;
    background: linear-gradient(to top, var(--surface-color) 0%, transparent 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
 