body {
    background: linear-gradient(135deg, #ffffff 0%, #fdfdfd 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#topBar {
    transition: transform 0.3s;
    will-change: transform;
}
.hide-top-bar {
    transform: translateY(-100%);
}

#mainNav {
    position: fixed;
    top: var(--nav-top, 45px); /* 60px = hauteur de la top-bar */
    left: 0;
    width: 100%;
    z-index: 1040;
    transition: top 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.fixed-navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    
}
.container-xxl {
    padding: 3rem 0;

}

.page-title {
    color: white;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.music-card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.98));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(206, 155, 0, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out, glow 3s infinite;
}

.music-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border-color: rgba(206, 155, 0, 0.3);
}

.music-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(206,155,0,0.1),
        transparent
    );
    animation: shimmer 3s linear infinite;
    transform: rotate(30deg);
    pointer-events: none;
}

.music-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.music-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.music-card:hover .music-image img {
    transform: scale(1.1);
}

.music-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(206, 155, 0, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.music-card:hover .music-image::after {
    opacity: 1;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    background: linear-gradient(135deg, #CE9B00, #f0bf2d);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(206, 155, 0, 0.3);
    animation: pulse 2s infinite;
}

.play-btn:hover {
    background: linear-gradient(135deg, #f0bf2d, #CE9B00);
    transform: scale(1.15) rotate(360deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.music-info {
    min-height: 150px;
    /* Hauteur minimale */
    max-height: 150px;
    /* Hauteur maximale */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 0;
    box-sizing: border-box;
    overflow: hidden;
}

.music-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #CE9B00;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
    background: linear-gradient(
        90deg, 
        #CE9B00, 
        #f0bf2d, 
        #CE9B00
    );
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.music-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #CE9B00, transparent);
    transition: width 0.4s ease;
}

.music-card:hover .music-title::after {
    width: 50%;
}

.youtube-btn {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.youtube-btn:hover {
    background: linear-gradient(45deg, #cc0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
    color: white;
}

.pagination-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: glow 2s infinite;
}

.pagination-btn:hover {
    animation: none;
    transform: scale(1.1) rotate(5deg);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: #CE9B00;
    color: white;
}

.pagination-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    color: #667eea;
    font-weight: 500;
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.search-container {
    max-width: 420px;
    margin: 0 auto 32px auto;
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 2px 12px rgba(206, 155, 0, 0.08);
    padding: 4px 8px 4px 0;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    animation: floating 3s ease-in-out infinite;
}

.search-container:focus-within {
    box-shadow: 0 0 0 3px rgba(206, 155, 0, 0.2),
                0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-container .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #CE9B00;
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 2;
    animation: floating 2s ease-in-out infinite;
}

.search-container input {
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 16px 12px 48px;
    /* assez d'espace pour l'icône */
    font-size: 1rem;
    border-radius: 30px;
    width: 100%;
    color: #fffdfd;
    transition: width 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 0 0 rgba(206, 155, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    background-color: #181818;
    color: #CE9B00;
    border-radius: 30px;
}

.search-container input:focus {
    background-color: #1e1e1e;
}

.search-container input::placeholder {
    color: #bbb;
    font-style: italic;
}

.search-btn {
    background: linear-gradient(45deg, #CE9B00, #f0bf2d);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    margin-left: 8px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(206, 155, 0, 0.10);
    cursor: pointer;
}

.search-btn:hover {
    background: linear-gradient(45deg, #f0bf2d, #CE9B00);
    transform: scale(1.08);
}

.audio-section {
    background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(24,24,24,0.97) 100%);
    border-radius: 18px;
    padding: 32px 24px;
    margin-bottom: 32px;
    box-shadow: 
        0 15px 35px rgba(206,155,0,0.1),
        0 0 15px rgba(206,155,0,0.05) inset;
    position: relative;
    overflow: hidden;
}

/* Effet de brillance */
.audio-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(206,155,0,0.08) 0%,
        rgba(206,155,0,0.03) 30%,
        transparent 70%
    );
    animation: rotateBg 20s linear infinite;
    pointer-events: none;
}

/* Animation de l'effet de brillance */
@keyframes rotateBg {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Style du titre dans la section */
.audio-section h3 {
    color: #CE9B00;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    margin-bottom: 1.5rem;
}

.audio-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #CE9B00, #f0bf2d);
    border-radius: 2px;
}

/* Ajustement de la scrollbar dans la section */
.audio-list-scroll::-webkit-scrollbar {
    width: 6px;
}

.audio-list-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}

.audio-list-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #CE9B00, #f0bf2d);
    border-radius: 3px;
}

.audio-section audio {
    margin-top: 8px;
}

.audio-list-scroll {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.audio-pro {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    width: 100%;
    max-width: 500px; /* plus large */
    min-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.audio-title {
    font-weight: 600;
    color: #CE9B00;
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.1rem;
    line-height: 1.3;
    max-width: 95%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-title.active {
    color: #000000;
    font-weight: 600;
    background: linear-gradient(90deg, #CE9B00 60%, #f0bf2d 80%);
    border-radius: 8px;
    padding: 4px 12px;
    box-shadow: 0 2px 8px rgba(206,155,0,0.10);
    transition: background 0.3s, color 0.3s;
}

.audio-player-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Personnalisation du lecteur audio */
.custom-audio {
    -webkit-appearance: none;
    appearance: none;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    width: 100% !important;
    max-width: 420px !important;
    margin: 10px 0;
    filter: brightness(0) invert(1); /* Rend tous les éléments blancs */
}

/* Supprime tous les backgrounds */
.custom-audio::-webkit-media-controls-panel,
.custom-audio::-webkit-media-controls-enclosure {
    background: transparent !important;
}

/* Style minimal pour la barre de progression */
.custom-audio::-webkit-media-controls-timeline {
    border-radius: 25px;
    height: 3px;
}

/* Chrome/Safari/Edge */
.custom-audio::-webkit-media-controls-panel {
    background: transparent !important;
}

.custom-audio::-webkit-media-controls-enclosure {
    background: transparent !important;
}

.custom-audio::-webkit-media-controls-current-time-display,
.custom-audio::-webkit-media-controls-time-remaining-display {
    color: #ffffff !important;
}

/* Firefox */
.custom-audio::-moz-range-track {
    background: transparent !important;
}

/* Barre de progression */
.custom-audio::-webkit-media-controls-timeline,
.custom-audio::-moz-range-track {
    border-radius: 25px;
    height: 3px;
}

/* Boutons de lecture */
.custom-audio::-webkit-media-controls-play-button,
.custom-audio::-webkit-media-controls-volume-slider {
    filter: sepia(100%) saturate(400%) brightness(95%);
}

.audio-bars {
    display: flex;
    gap: 4px;
    height: 30px;
    align-items: center;
    margin: 10px 0;
    padding: 0 15px;
    position: relative;
}

.audio-bars span {
    width: 4px;
    height: 15px;
    background: #ffffff;
    border-radius: 4px;
}

.audio-bars.playing span {
    animation: equalizer 1.2s ease-in-out infinite;
}

.audio-bars.playing span:nth-child(1) { animation-delay: 0s; }
.audio-bars.playing span:nth-child(2) { animation-delay: 0.2s; }
.audio-bars.playing span:nth-child(3) { animation-delay: 0.4s; }
.audio-bars.playing span:nth-child(4) { animation-delay: 0.6s; }
.audio-bars.playing span:nth-child(5) { animation-delay: 0.8s; }

@keyframes equalizer {
    0%, 100% { 
        height: 15px; 
        opacity: 0.5;
        background: #CE9B00;
    }
    50% { 
        height: 30px;
        opacity: 1;
        background: #f0bf2d;
        box-shadow: 0 
    }
}

/* Ajout d'une barre supplémentaire dans le HTML */
.audio-bars::before,
.audio-bars::after {
    content: '';
    width: 5px;
    height: 15px;
    background: linear-gradient(to top, #CE9B00, #f0bf2d);
    border-radius: 6px;
    opacity: 0.7;
}

.audio-bars.playing::before {
    animation: equalizer 1.5s ease-in-out infinite;
    animation-delay: 1s;
}

.audio-bars.playing::after {
    animation: equalizer 1.5s ease-in-out infinite;
    animation-delay: 1.2s;
}

.pointing-hand {
    display: block;
    width: 100%;
    height: auto;
    text-align: center;
    margin: 20px auto;  /* Ajoute de l'espace au-dessus et en-dessous */
    animation: pointDown 1.5s ease-in-out infinite;
    font-size: 50px;
}

@keyframes pointDown {
    0%, 100% {
        transform: translateY(0);
        
    }
    50% {
        transform: translateY(15px); /* Augmente légèrement l'amplitude */
        
    }
}

/* Nouvelles animations */
@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(206,155,0,0.2); }
    50% { box-shadow: 0 0 20px rgba(206,155,0,0.4); }
}

/* Animation du chargement */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease-out forwards;
    animation-delay: 2s;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-top-color: #CE9B00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

.flashing-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    animation: colorChange 3s infinite alternate ease-in-out;
}

/* Définir l'animation */
@keyframes colorChange {
    0% {
        color: white;
    }
    100% {
        color: #F2BF00; /* or */
    }
}
