* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #000000 url('CLASH.png') center center fixed;
    background-size: cover;
    color: #ffffff;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.logo img {
    height: 40px;
    width: auto;
}

.hero-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #9932cc;
    text-shadow: 0 0 20px rgba(153, 50, 204, 0.8);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #9932cc;
    text-shadow: 0 0 10px rgba(153, 50, 204, 0.8);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(153, 50, 204, 0.2) 0%, transparent 70%);
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    color: #9932cc;
    text-shadow: 0 0 30px rgba(153, 50, 204, 0.8);
    letter-spacing: 3px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 4rem;
    font-weight: bold;
    color: #9932cc;
    text-shadow: 0 0 30px rgba(153, 50, 204, 0.8);
    letter-spacing: 3px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    text-align: center;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: rgba(153, 50, 204, 0.8);
    box-shadow: 0 0 20px rgba(153, 50, 204, 0.6);
    transform: translateY(-3px);
}

.music-section, .studio-section, .contact-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #9932cc;
    text-shadow: 0 0 30px rgba(153, 50, 204, 0.8);
}

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

.track-card {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(153, 50, 204, 0.4);
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(153, 50, 204, 0.2);
}

.track-card:hover {
    transform: translateY(-5px);
    border-color: rgba(153, 50, 204, 0.8);
    box-shadow: 0 8px 30px rgba(153, 50, 204, 0.4);
}

.track-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #9932cc;
    text-shadow: 0 0 15px rgba(153, 50, 204, 0.6);
}

.track-info p {
    opacity: 0.7;
    margin-bottom: 1rem;
}

audio {
    width: 100%;
    margin-top: 1rem;
}

audio::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.8);
}

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

.studio-image {
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(153, 50, 204, 0.4);
    box-shadow: 0 4px 20px rgba(153, 50, 204, 0.2);
    transition: all 0.3s;
}

.studio-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
    background: rgba(0, 0, 0, 0.5);
}

.studio-image:hover {
    border-color: rgba(153, 50, 204, 0.8);
    box-shadow: 0 8px 30px rgba(153, 50, 204, 0.4);
}

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

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #9932cc;
    text-shadow: 0 0 20px rgba(153, 50, 204, 0.8);
}

.contact-info p {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.social-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 25px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid rgba(153, 50, 204, 0.4);
    box-shadow: 0 4px 15px rgba(153, 50, 204, 0.2);
}

.social-contact a:hover {
    background: rgba(153, 50, 204, 0.3);
    border-color: rgba(153, 50, 204, 0.8);
    box-shadow: 0 8px 25px rgba(153, 50, 204, 0.4);
    transform: translateY(-3px);
}

footer {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(153, 50, 204, 0.3);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .music-grid {
        grid-template-columns: 1fr;
    }
    
    .studio-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .studio-image {
        aspect-ratio: 4/3;
    }
    
    .studio-image img {
        object-fit: cover;
        object-position: center;
    }
    
    .social-contact {
        flex-direction: column;
        align-items: center;
    }
    
    #background-music-control {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
    }
    
    #volume-slider {
        width: 60px;
    }
}
#background-music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(153, 50, 204, 0.6);
    border-radius: 50px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(153, 50, 204, 0.3);
}

#music-toggle {
    background: none;
    border: none;
    color: #9932cc;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

#music-toggle:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(153, 50, 204, 0.8);
}

#volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(153, 50, 204, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: #9932cc;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(153, 50, 204, 0.6);
}

#volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #9932cc;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(153, 50, 204, 0.6);
}
/* Optimisations spécifiques iOS Safari */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: 100vh;
        height: auto;
    }
    
    .studio-image img {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Optimisations pour très petits écrans */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .music-section, .studio-section, .contact-section {
        padding: 3rem 1rem;
    }
    
    .track-card {
        padding: 1.5rem;
    }
}
/* Optimisations Edge */
@supports (-ms-ime-align: auto) {
    .hero-title, .hero-subtitle {
        -ms-text-size-adjust: 100%;
    }
    
    audio {
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    }
}

/* Optimisations Opera */
@supports (-o-appearance: none) {
    #volume-slider {
        -o-appearance: none;
    }
    
    .studio-image img {
        -o-object-fit: cover;
    }
}

/* Préfixes cross-browser pour les sliders */
#volume-slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
}

#volume-slider::-ms-track {
    width: 100%;
    height: 4px;
    background: rgba(153, 50, 204, 0.3);
    border-color: transparent;
    color: transparent;
}

#volume-slider::-ms-thumb {
    width: 12px;
    height: 12px;
    background: #9932cc;
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 10px rgba(153, 50, 204, 0.6);
}

/* Optimisations mobiles cross-platform */
@media (max-width: 768px) and (orientation: portrait) {
    .hero {
        padding-top: 80px;
    }
    
    .music-section, .studio-section, .contact-section {
        padding: 2rem 1rem;
    }
    
    audio {
        max-width: 100%;
        height: 40px;
    }
}

/* Optimisations pour Edge mobile */
@supports (-ms-accelerator: true) {
    .studio-image img {
        -ms-interpolation-mode: bicubic;
    }
    
    .hero-title, .hero-subtitle {
        -ms-filter: "progid:DXImageTransform.Microsoft.Glow(Color=#9932cc,Strength=2)";
    }
}

/* Optimisations pour Opera mobile */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-width: 768px) {
    .track-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .studio-image {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Fallbacks pour anciens navigateurs */
.hero-title, .hero-subtitle {
    background: -webkit-linear-gradient(45deg, #9932cc, #9932cc);
    background: -moz-linear-gradient(45deg, #9932cc, #9932cc);
    background: -o-linear-gradient(45deg, #9932cc, #9932cc);
    background: linear-gradient(45deg, #9932cc, #9932cc);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.track-card, .studio-image {
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
.track-cover {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 2px solid rgba(153, 50, 204, 0.3);
    box-shadow: 0 4px 15px rgba(153, 50, 204, 0.2);
}

.track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.track-cover:hover img {
    transform: scale(1.05);
}
.visitor-counter {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(153, 50, 204, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(153, 50, 204, 0.3);
}

.visitor-counter p {
    color: #9932cc;
    font-size: 0.9rem;
    margin: 0;
}

.visitor-counter i {
    margin-right: 0.5rem;
}