/* Hero Section */
.hero-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-primary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Catalogue Hero */
.catalogue-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.catalogue-hero h2 {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.catalogue-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.catalogue-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Catalogue Controls */
.catalogue-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--surface-lighter);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filter-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-select {
    padding: 0.75rem 1rem;
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-view-toggle {
    padding: 0.75rem;
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-toggle:hover {
    background-color: var(--surface-lighter);
    border-color: var(--primary-color);
}

/* Catalogue Grid */
.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.catalogue-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Album Card */
.album-card {
    background-color: var(--surface-dark);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.album-cover {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    background-color: var(--background-dark);
}

.album-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-card:hover .album-cover img {
    transform: scale(1.1);
}

.album-cover-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface-lighter), var(--surface-dark));
}

.album-cover-placeholder i {
    font-size: 3rem;
    color: var(--text-muted);
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-card:hover .album-overlay {
    opacity: 1;
}

.btn-play-album {
    padding: 1rem;
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-play-album:hover {
    background-color: var(--primary-hover);
    transform: scale(1.1);
}

.album-category {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.75rem;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
}

.album-info {
    padding: 1rem;
}

.album-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.album-tracks-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* List View Styles */
.catalogue-grid.list-view .album-card {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.catalogue-grid.list-view .album-cover {
    width: 80px;
    height: 80px;
    padding-bottom: 0;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
}

.catalogue-grid.list-view .album-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.catalogue-grid.list-view .album-title {
    font-size: 1.1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--surface-dark);
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.album-modal-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-album-art {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.modal-info-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-category {
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.modal-tracks-count,
.modal-duration {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.tracks-search {
    margin-bottom: 1rem;
}

.track-search-input {
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
}

.tracks-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--background-dark);
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.track-item:hover {
    background-color: var(--surface-lighter);
}

.track-number {
    width: 30px;
    color: var(--text-muted);
    text-align: center;
}

.track-info {
    flex: 1;
    margin-left: 1rem;
}

.track-title {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.track-artist {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.track-duration {
    color: var(--text-muted);
    margin-left: auto;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(21, 106, 181, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(21, 106, 181, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
}

/* Animation de pulsation subtile */
.back-to-top.visible {
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(21, 106, 181, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(21, 106, 181, 0.5);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .catalogue-hero h2 {
        font-size: 2rem;
    }
    
    .catalogue-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .catalogue-controls {
        flex-direction: column;
    }
    
    .search-wrapper {
        max-width: 100%;
    }
    
    .catalogue-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .album-modal-info {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-album-art {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .catalogue-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .filter-wrapper {
        width: 100%;
        justify-content: space-between;
    }
}