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

/* ================= BODY ================= */
body{
font-family:'Oswald',sans-serif;
background:#050505;
color:white;
overflow-x:hidden;
}

/* ================= BACKGROUND ================= */
.bg-image{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:url("./img/background.jpg") center/cover no-repeat;
z-index:0;
animation:zoom 20s infinite alternate ease-in-out;
}

.bg-image::after{
content:"";
position:absolute;
inset:0;
background:linear-gradient(
to bottom,
rgba(0,0,0,0.6),
rgba(0,0,0,0.9)
);
}

.bg-image::before{
content:"";
position:absolute;
inset:0;
background:rgba(0,0,0,0.2);
backdrop-filter:blur(1px);
-webkit-backdrop-filter:blur(1px);
}

@keyframes zoom{
0%{transform:scale(1);}
100%{transform:scale(1.1);}
}

/* ================= HEADER ================= */
header{
position:fixed;
width:100%;
display:flex;
justify-content:space-between;
align-items:center;
padding:10px 40px;
background:rgba(0,0,0,0.4);
backdrop-filter:blur(10px);
z-index:10;
}

.logo{
width:190px;
display:block;
}

/* ================= NAV ================= */
nav ul{
display:flex;
gap:40px;
list-style:none;
}

/* ================= MENU ================= */
.menu-item{
text-decoration:none;
color:white;
position:relative;
overflow:hidden;
height:24px;
display:inline-block;
}

.menu-item span{
display:block;
transition:0.5s cubic-bezier(0.22,1,0.36,1);
}

.menu-item .top{color:#aaaaaa;}

.menu-item .bottom{
position:absolute;
top:100%;
left:0;
color:#ff004c;
}

.menu-item:hover .top{transform:translateY(-100%);}
.menu-item:hover .bottom{transform:translateY(-100%);}
.menu-item:hover{text-shadow:0 0 10px rgba(255,0,76,0.6);}

/* ================= HERO ================= */
.hero{
height:100vh;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
text-align:center;
position:relative;
z-index:2;
gap:20px;
}

.hero-block{
display:flex;
flex-direction:column;
align-items:center;
gap:10px;
}

.title{
font-size:4rem;
letter-spacing:8px;
animation:fadeUp 1s ease forwards;
}

/* ================= SUBTITLE + WAVE ================= */
.subtitle-block{
display:flex;
flex-direction:column;
align-items:center;
width:fit-content; /* ðŸ”¥ alignement parfait */
}

.subtitle{
opacity:0.7;
letter-spacing:2px;
}

/* ================= WAVE (STYLE BEATS PRO) ================= */
.wave-hero{
display:flex;
justify-content:space-between;
width:100%; /* ðŸ”¥ prend la largeur du texte */
height:40px;
align-items:flex-start;
margin-top:6px;
gap:2px;
}

/* barres */
.wave-hero span{
flex:1;
height:100%;
background:linear-gradient(
to bottom,
#ff004c,
rgba(255,0,76,0.3)
);

border-radius:3px;

/* ðŸ”¥ animation stable */
transform-origin:top;
animation:wave 1.2s infinite ease-in-out;

box-shadow:0 0 12px rgba(255,0,76,0.8);
will-change:transform;
}

/* ðŸŽ§ pattern plus rÃ©aliste (forme musique) */
.wave-hero span:nth-child(1){animation-delay:0s; transform:scaleY(0.3);}
.wave-hero span:nth-child(2){animation-delay:0.1s;}
.wave-hero span:nth-child(3){animation-delay:0.2s;}
.wave-hero span:nth-child(4){animation-delay:0.3s;}
.wave-hero span:nth-child(5){animation-delay:0.4s;}
.wave-hero span:nth-child(6){animation-delay:0.2s;}
.wave-hero span:nth-child(7){animation-delay:0.1s;}
.wave-hero span:nth-child(8){animation-delay:0.3s;}
.wave-hero span:nth-child(9){animation-delay:0.2s;}
.wave-hero span:nth-child(10){animation-delay:0.4s;}
.wave-hero span:nth-child(11){animation-delay:0.3s;}
.wave-hero span:nth-child(12){animation-delay:0.2s;}
.wave-hero span:nth-child(13){animation-delay:0.1s;}
.wave-hero span:nth-child(14){animation-delay:0s;}

/* animation */
@keyframes wave{
0%,100%{
transform:scaleY(0.2);
opacity:0.4;
}
50%{
transform:scaleY(1);
opacity:1;
}
}

/* ================= SECTIONS ================= */
section{
padding:120px 20px;
text-align:center;
position:relative;
z-index:2;
}

/* ================= ANIMATION ================= */
@keyframes fadeUp{
0%{
opacity:0;
transform:translateY(40px);
}
100%{
opacity:1;
transform:translateY(0);
}
}

/* ================= RESPONSIVE ================= */
@media(max-width:768px){

nav ul{display:none;}

.logo{width:100px;}

header{padding:15px 20px;}

.title{
font-size:2rem;
letter-spacing:3px;
}

}






/* animation */
@keyframes pulse{
0%{transform:scale(1); opacity:1;}
50%{transform:scale(1.5); opacity:0.5;}
100%{transform:scale(1); opacity:1;}
}

#waveCanvas{
width:100%;
height:60px;
margin-top:20px;
border-radius:10px;
}

/* cover qui vit */
.cover.playing{
animation:pulseCover 2s infinite;
box-shadow:0 0 40px rgba(255,0,76,0.6);
}

@keyframes pulseCover{
0%{transform:scale(1);}
50%{transform:scale(1.03);}
100%{transform:scale(1);}
}


.player{
width:320px;
margin:40px auto;

padding:15px;

max-height:none;      /* ? enlève la limite */
overflow:visible;     /* ? laisse tout visible */

background:rgba(255,255,255,0.05);
backdrop-filter:blur(20px);

border-radius:20px;

box-shadow:0 0 40px rgba(0,0,0,0.6);
transition:0.3s;
}


.player.playing{
box-shadow:
0 0 20px rgba(255,0,76,0.4),
0 0 60px rgba(255,0,76,0.6),
0 0 100px rgba(255,0,76,0.3);
}


/* ================= WAVE CINEMA ================= */

.wave-cinematic{
width:100%;
height:40px;
margin-top:20px;
overflow:hidden;
}

.wave-line{
fill:none;
stroke:#ff004c;
stroke-width:2;
filter:drop-shadow(0 0 15px rgba(255,0,76,0.8));
}

/* ================= COVER CINEMA ================= */

.cover{
width:100%;
max-width:260px; /* ðŸ”¥ contrÃ´le la taille ici */
margin:auto;
display:block;
border-radius:15px;
transition:0.4s;
}

.cover.playing{
transform:scale(1.05);
box-shadow:0 0 60px rgba(255,0,76,0.7);
}

/* ================= BACKGROUND GLOW ================= */

.bg-glow{
position:fixed;
inset:0;
pointer-events:none;
background:radial-gradient(circle at center, rgba(255,0,76,0.15), transparent 70%);
z-index:1;
opacity:0;
transition:0.5s;
}

.bg-glow.active{
opacity:1;
}


/* ================= HERO LOGO PRO ================= */

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

.hero-block{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/*  LOGO PRINCIPAL */
.hero-logo{
    width: 320px;
    max-width: 80%;
    margin-bottom: 20px;

    /* effet glow subtil */
    filter: drop-shadow(0 0 25px rgba(255,255,255,0.15));

    /* animation d'apparition */
    opacity: 0;
    transform: scale(0.9);
    animation: logoFade 1.2s ease-out forwards;
}

/*  ANIMATION */
@keyframes logoFade{
    to{
        opacity: 1;
        transform: scale(1);
    }
}

/*  TITRE */
.title{
    font-size: 3rem;
    letter-spacing: 6px;
    font-weight: 600;
    margin-bottom: 10px;

    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease-out forwards;
    animation-delay: 0.4s;
}

/*  SOUS-TITRE */
.subtitle{
    font-size: 1rem;
    letter-spacing: 3px;
    opacity: 0.7;

    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease-out forwards;
    animation-delay: 0.7s;
}

/*  animation texte */
@keyframes fadeUp{
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

.player{
position:relative;
z-index:50;
}

.controls{
position:relative;
z-index:60;
}




/* ================= PLAYER PREMIUM ================= */

.music{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:120px 20px;
}




/*  TEXT */
.player-info h3{
    font-size:18px;
    letter-spacing:2px;
}

.player-info p{
    opacity:0.6;
    font-size:14px;
}

/*  CONTROLS */
.controls{
    display:flex;
    justify-content:center;
    gap:25px;
    margin:20px 0;
}

.controls button{
    background:none;
    border:none;
    color:white;
    font-size:22px;
    cursor:pointer;
    transition:0.3s;
}

.controls button:hover{
    transform:scale(1.2);
}

/*  TIME */
.time{
    display:flex;
    justify-content:space-between;
    font-size:12px;
    opacity:0.6;
}

/*  PROGRESS */
.progress-container{
    width:100%;
    height:4px;
    background:rgba(255,255,255,0.1);
    border-radius:10px;
    margin:10px 0;
    cursor:pointer;
}

.progress{
    height:100%;
    width:0%;
    background:white;
    border-radius:10px;
}

/* VOLUME */
#volume{
    width:100%;
    margin-top:10px;
}



/*  MINI PLAYER */
.mini-player{
    position:fixed;
    bottom:0;
    width:100%;
    padding:15px 20px;

    background:rgba(0,0,0,0.9);
    backdrop-filter:blur(10px);

    display:flex;
    justify-content:space-between;
    align-items:center;

    transform:translateY(100%);
    transition:0.4s;
}

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

.mini-player button{
    background:white;
    color:black;
    border:none;
    padding:10px 15px;
    border-radius:50%;
    cursor:pointer;
}




/* ================= BURGER ================= */

.burger{
display:none;
flex-direction:column;
gap:5px;
cursor:pointer;
z-index:200;
}

.burger span{
width:25px;
height:3px;
background:white;
display:block;
transition:0.3s;
}

/* MOBILE ONLY */
@media (max-width: 768px){

nav{
display:none;
}

.burger{
display:flex;
}

.mobile-nav{
position:fixed;
top:0;
right:-100%;
width:70%;
height:100%;
background:#000;
display:flex;
align-items:center;
justify-content:center;
transition:0.4s;
z-index:150;
}

.mobile-nav.active{
right:0;
}

.mobile-nav ul{
list-style:none;
text-align:center;
}

.mobile-nav li{
margin:20px 0;
}

.mobile-nav a{
color:white;
font-size:20px;
text-decoration:none;
}

}
.burger.active span:nth-child(1){
transform:rotate(45deg) translate(5px,5px);
}

.burger.active span:nth-child(2){
opacity:0;
}

.burger.active span:nth-child(3){
transform:rotate(-45deg) translate(6px,-6px);
}

.menu-overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.5);
opacity: 0;
pointer-events:none;
transition:0.3s;
z-index:100;
}

.menu-overlay.active{
opacity:1;
pointer-events:auto;
}



/* RESET boutons */
.controls button{
background:none;
border:none;
cursor:pointer;
padding:10px;
}

/* PREV */
.btn-prev::before{
content:"";
display:inline-block;
width:0;
height:0;
border-top:8px solid transparent;
border-bottom:8px solid transparent;
border-right:10px solid white;
margin-right:4px;
}

.btn-prev::after{
content:"";
display:inline-block;
width:0;
height:0;
border-top:8px solid transparent;
border-bottom:8px solid transparent;
border-right:10px solid white;
}

/* NEXT */
.btn-next::before{
content:"";
display:inline-block;
width:0;
height:0;
border-top:8px solid transparent;
border-bottom:8px solid transparent;
border-left:10px solid white;
margin-right:4px;
}

.btn-next::after{
content:"";
display:inline-block;
width:0;
height:0;
border-top:8px solid transparent;
border-bottom:8px solid transparent;
border-left:10px solid white;
}


.mini-player{
position:fixed;
bottom:0;
left:0;
width:100%;
z-index:9999; /* ? TRÈS IMPORTANT */
pointer-events:auto;
}

.mini-player{
display:flex;
align-items:center;
gap:15px;
}

.mini-player img{
width:45px;
height:45px;
object-fit:cover;
border-radius:8px;
}

.mini-info{
flex:1;
}

.mini-info p{
font-size:14px;
font-weight:600;
}

.mini-info span{
font-size:12px;
opacity:0.6;
}


/* SLIDER PLAYLIST */
.playlist{
display:flex;
gap:12px;
overflow-x:auto;
padding:20px;
scroll-snap-type:x mandatory;
}

.track-card{
min-width:120px; /* ? plus petit */
max-width:120px;

flex-shrink:0;
scroll-snap-align:center;

background:#111;
border-radius:12px;
padding:8px;

cursor:pointer;
transition:0.3s;
}

.track-card:hover{
transform:scale(1.08);
}

.track-card.active{
outline:2px solid #3fccfa;
}

.track-card img{
width:100%;
height:120px; /* ? taille fixe */
object-fit:cover;
border-radius:8px;
}

.track-card h4{
font-size:12px;
margin-top:6px;
}

.track-card p{
font-size:10px;
opacity:0.6;
}


/* ================= CONTACT ================= */

.contact-section{
position:relative;
z-index:2;
min-height:100vh;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
padding:100px 20px;
}

.contact-title{
font-size:48px;
letter-spacing:4px;
margin-bottom:10px;
}

.contact-subtitle{
font-size:14px;
opacity:0.6;
margin-bottom:40px;
}

.contact-form{
width:100%;
max-width:500px;
display:flex;
flex-direction:column;
gap:25px;
}

/* INPUT STYLE */

.form-group{
position:relative;
}

.form-group input,
.form-group textarea{
width:100%;
padding:12px 10px;
background:transparent;
border:none;
border-bottom:1px solid rgba(255,255,255,0.3);
color:white;
font-family:'Oswald',sans-serif;
outline:none;
resize:none;
}

.form-group label{
position:absolute;
left:10px;
top:50%;
transform:translateY(-50%);
font-size:12px;
opacity:0.5;
pointer-events:none;
transition:0.3s;
}

.form-group textarea + label{
top:20px;
transform:none;
}

/* ANIMATION LABEL */

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label{
top:-8px;
font-size:10px;
opacity:1;
}

/* BUTTON */

.contact-btn{
padding:12px;
border:1px solid white;
background:transparent;
color:white;
cursor:pointer;
transition:0.3s;
letter-spacing:2px;
}

.contact-btn:hover{
background:white;
color:black;
}

/* ================= CONTACT BOX ================= */

.contact-box{
width:100%;
max-width:550px;
padding:40px 30px;

background:rgba(10,10,10,0.8);
border:1px solid rgba(255,255,255,0.08);
border-radius:20px;

backdrop-filter:blur(10px);
-webkit-backdrop-filter:blur(10px);

box-shadow:
0 0 30px rgba(0,0,0,0.6),
inset 0 0 20px rgba(255,255,255,0.02);

transition:0.3s;
}

/* effet hover subtil comme player */
.contact-box:hover{
transform:translateY(-3px);
box-shadow:
0 10px 40px rgba(0,0,0,0.8),
inset 0 0 20px rgba(255,255,255,0.03);
}

.contact-box::before{
content:"";
position:absolute;
inset:0;
border-radius:20px;
background:linear-gradient(120deg,#3fccfa,transparent,#ff004c);
opacity:0.08;
pointer-events:none;
}

