/* Variables CSS - Utilise les variables définies dans variables.css */
/* Les couleurs principales sont définies dans assets/css/variables.css */

/* ===== Styles pour la page de contact ===== */
.contact-section {
    padding: 4rem 0;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.map-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info, .social-section {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-info h3, .social-section h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.contact-item p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.social-icon span {
    font-size: 0.9rem;
    font-weight: 500;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.social-icon:hover i {
    color: white;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
}

.whatsapp-btn i {
    font-size: 1.5rem;
    margin-right: 0.8rem;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 3rem 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .map-container iframe {
        height: 350px;
    }
}

/* ===== Fin des styles pour la page de contact ===== */

/* Styles pour la page de détail */
.track-detail-page {
    background: #121212;
    min-height: 100vh;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

.btn-outline-primary{
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.track-header {
    position: relative;
    padding: 1.25rem 0;
    overflow: hidden;
    width: 100%;
    z-index: 1;
    transition: all 0.3s ease;
    /* visual fallback color while background image loads */
    background-color: #efefef;
    box-shadow: none;
}

.track-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 220px; /* ensure visible area on small screens */
    background-size: cover;
    background-position: center center;
    filter: blur(36px) brightness(0.35);
    transform: scale(1.06);
    z-index: 0;
    opacity: 0.9;
    transition: all 0.45s ease;
}

.track-header:hover .track-header-bg {
    filter: blur(40px) brightness(0.4);
}

.track-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

.track-header-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    gap: 1.5rem;
}

.track-cover-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    z-index: 3;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 200px;
    width: 200px;
    min-width: 140px;
    background: #1e1e1e;
    flex-shrink: 0;
    align-self: center;
}

.track-cover-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.play-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.track-cover-container:hover .play-button {
    opacity: 1;
    transform: translateY(0);
}

.track-info {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 100%;
    flex: 1 1 300px;
    padding: 0.5rem 0;
    min-width: 0;
    word-wrap: break-word;
    overflow: hidden;
}

.track-type {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    color: #fff;
    padding: 0.4rem 1.1rem;
    border-radius: 25px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.track-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 900;
    margin: 0.5rem 0 0.25rem;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #fff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1DB954, #1ed760);
    border-radius: 3px;
}

.track-artist {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: rgba(255, 255, 255, 0.9);
    margin: 0.75rem 0 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 100%;
}

.track-artist::before {
    content: 'by';
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.track-meta {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.track-genre, .track-country {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.track-genre::before {
    content: '🎵';
    font-size: 1.1em;
}

.track-country::before {
    content: '🌍';
    font-size: 1.1em;
}


.progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.progress-bar:hover {
    height: 6px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #1DB954, #1ed760);
    width: 0%;
    border-radius: 5px;
    transition: width 0.1s linear;
    position: relative;
    overflow: hidden;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.time-display {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.control-btn:hover::before {
    transform: translateX(100%);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.control-btn:active {
    transform: translateY(0) scale(0.95);
}

.play-btn {
    background: linear-gradient(135deg, #1DB954, #1ed760);
    width: 60px;
    height: 60px;
    box-shadow: 0 8px 25px rgba(29, 185, 84, 0.3);
}

.play-btn:hover {
    background: linear-gradient(135deg, #1ed760, #4fe087);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 30px rgba(29, 185, 84, 0.4);
}

.play-btn i {
    margin-left: 3px;
    font-size: 1.5rem;
}

.download-btn, .like-btn, .share-btn {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.download-btn:hover, .like-btn:hover, .share-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

/* Animation pour le bouton play */
@keyframes pulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(29, 185, 84, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(29, 185, 84, 0);
    }
}

.playing .play-btn {
    animation: pulse 2s infinite;
    position: relative;
}

.volume-control {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.volume-slider {
    width: 100px;
    margin: 0 0.5rem;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}
.btn-outline-primary{
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
.btn-outline-primary:hover{
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

/* Styles responsifs */
@media (max-width: 992px) {
    .track-header {
        min-height: 60px !important; /* give room for cover + info */
        padding: 1rem 0 1.5rem;

    }
    
    .track-cover-container {
        height: 220px;
        width: 220px;
        min-width: 160px;
    }
    
    .track-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        height:42rem !important
    }
    
    .track-cover-container {
        margin: 0 auto 1.5rem;
        width: 220px;
        max-width: 60%;
    }
    
    .track-info {
        text-align: center;
        padding: 0 5px;
    }
    
    .track-title {
        font-size: 2.5rem;
        background: linear-gradient(to right, #fff, #e0e0e0);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        display: inline-block;
    }
    
    .track-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .track-meta {
        justify-content: center;
    }
    
    .cover-image {
        width: 100%;
        height: auto;
        max-height: 250px;
    }

    /* ensure header bg shows a taller visible area on mobile */
    .track-header-bg {
        min-height: 360px;
        background-position: center top;
        transform: scale(1.03);
    }
    
    .track-info {
        width: 100%;
        text-align: center;
    }
    
    .track-meta {
        justify-content: center;
    }
    
    .track-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .track-header {
        min-height: 420px;
        padding: 1rem 0;
    }
    
    .track-title {
        font-size: 1.5rem;
    }
    
    .track-artist {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .track-title {
        font-size: 1.1rem;
    }
    
    .track-artist {
        font-size: 1rem;
    }
    
    .track-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .track-header-bg {
        min-height: 480px; /* ensure background covers stacked content */
    }
}

/* Styles pour la section Morceaux similaires */
.similar-tracks {
    padding: 4rem 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.similar-tracks::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.section-title::before {
    content: '';
    display: block;
    width: 8px;
    height: 30px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-color));
    border-radius: 4px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color));
    border-radius: 3px;
}

.track-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

.track-card {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.track-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.track-card:hover {
    background: rgba(40, 40, 40, 0.9);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.track-card:hover::before {
    opacity: 1;
}

.track-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.track-card:hover .track-card-cover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.track-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.play-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #1DB954, #1ed760);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 5px 20px rgba(29, 185, 84, 0.3);
    z-index: 2;
}

.play-overlay i {
    margin-left: 2px;
    font-size: 1.2rem;
}

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

.track-card-content {
    position: relative;
    z-index: 1;
}

.track-card-title {
    font-weight: 700;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.1rem;
    line-height: 1.4;
}

.track-card-artist {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.music-card:hover .play-icon {
    transform: scale(1.1);
}

.music-info {
    padding: 1rem;
}

.music-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-artist {
    font-size: 0.85rem;
    color: #a0a0a0;
    margin: 0 0 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-genre {
    font-size: 0.75rem;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    display: inline-block;
}

/* Styles responsifs */
@media (max-width: 768px) {
    .music-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .music-title {
        font-size: 0.9rem;
    }
    
    .music-artist {
        font-size: 0.8rem;
    }
}

/* Filtres de musique */
.music-filters {
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

.search-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.genre-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 1rem;
    cursor: pointer;
}

.search-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #45a049;
}

.reset-filters {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 1rem;
    white-space: nowrap;
}

.reset-filters:hover {
    text-decoration: underline;
}

/* Styles de pagination */
.pagination-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-item {
    margin: 0;
}

.pagination-link,
.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-link:hover {
    background-color: #f5f5f5;
}

.pagination-item.active .pagination-link {
    background-color: #FF6600 !important; /* Orange primaire */
    color: white !important;
    border-color: #FF6600 !important;
    font-weight: 500;
}

.pagination-item.disabled .pagination-link {
    color: #999;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

.pagination-per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination-per-page select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Grille responsive */
.music-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (min-width: 576px) {
    .music-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .music-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .music-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .music-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Ajustement du nombre d'éléments par page selon la taille d'écran */
@media (max-width: 575.98px) {
    .music-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    text-decoration: none;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: #000000;
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ff6b00;
    background: rgba(255, 107, 0, 0.1);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Main content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero section */
.hero-section {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Page header */
.page-header {
    background-color: var(--light-gray);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* Music grid */
.music-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Base: 2 colonnes pour SM */
    gap: 1.5rem;
    padding: 2rem 0;
}

a.music-card {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.music-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.music-card:hover {
    transform: translateY(-5px);
}

.music-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
    display: block;
}


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

.music-card:hover .music-image img {
    transform: scale(1.05);
}

.music-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

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

.play-overlay {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e40af;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.music-overlay:hover .play-overlay {
    transform: scale(1.1);
    background: #fff;
}

.music-info {
    padding: 1rem;
    position: relative;
}

.music-info a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.music-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-artist {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 0.1rem 0;
}

.music-country {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
    font-style: italic;
}

.music-genre {
    display: inline-block;
    font-size: 0.75rem;
    background: #f0f0f0;
    color: #666;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}

.play-button {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem; /* Taille de police pour l'icône */
}

.play-button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
    color: white;
}

.play-button i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.play-button.playing i {
    transform: translateX(1px);
}

.music-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.music-info {
    padding: 1rem;
}

.music-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.music-info p {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.genre {
    background: var(--primary-light);
    color: var(--white);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-select,
.search-input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.search-input {
    flex: 1;
    min-width: 200px;
}

/* Discovery section */
.discovery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.discovery-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.discovery-card:hover {
    transform: translateY(-5px);
}

.discovery-image {
    height: 200px;
    overflow: hidden;
}

.discovery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discovery-content {
    padding: 1.5rem;
    text-align: center;
}

.discovery-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Recommendations */
.recommendations-section {
    background: var(--light-gray);
    padding: 3rem 0;
}

.recommendations-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.recommendation-item {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    padding: 1rem;
}

.recommendation-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-right: 1rem;
}

.recommendation-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Contact section */
.contact-section {
    padding: 3rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3,
.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item .icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--primary-color);
}

.contact-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    transition: background 0.3s ease;
}

.social-link:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
}

/* Featured section */
.featured-section {
    padding: 3rem 0;
}

.featured-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}
.main-bottom {
    margin-bottom: 5rem;
}

/* Boutons personnalisés */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}

.btn-play {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.btn-play i {
    margin-right: 8px;
    font-size: 1.1em;
}

.btn-download {
    background: var(--primary-color);
    color: #fff !important;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-download:hover {
    background: var(--primary-color);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-download i {
    margin-right: 8px;
}
.bg-primary {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--primary-color), var(--bs-bg-opacity)) !important;
}
@media (max-width: 768px) {
    a.music-card {
        display: block;
        text-decoration: none;
        color: inherit;
        width: 100%;
    }
    .main-bottom {
        margin-bottom: 0;
    }
    .action-buttons {
        gap: 10px;
    }
    .btn-play,
    .btn-download {
        padding: 10px 20px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}