/* RÃ©initialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none; /* EmpÃªche la sÃ©lection de texte sur toute la page */

}

/* Effet de flocons de neige */

@keyframes falling {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, 50vh); /* Milieu de la chute + droite */
    }
    100% {
        transform: translate(-20px, 100vh); /* Fin de la chute + gauche */
    }
}

.snowflake {
    position: absolute;
    top: -10px;
    background-color: rgb(255, 255, 255);
    border-radius: 50%;
    opacity: 0.9;
    width: 5px;
    height: 5px;
    animation: falling 5s cubic-bezier(0.69, 0, 0.44, 1.03) infinite; /* Utilise l'animation combinÃ©e */
    z-index: 1000;
}









/* Corps de la page */
body, html {
    cursor: url('Images/Curseur/Horreur/hand.jpg'), auto; /* Curseur personnalisÃ© */
    height: 100%;
    font-family: Arial, sans-serif;
    overflow: visible; /* Permet aux flocons de tomber en dehors de l'Ã©cran */
    position: relative; /* test*/
    overflow-x: hidden; /* EmpÃªche le dÃ©filement horizontal */
}


/* Menu de navigation */
nav {
    position: fixed; /* Utilise fixed pour le garder tout en haut */
    top: 0; /* Positionne le menu tout en haut */
    left: 0; /* Positionne le menu tout Ã  gauche */
    width: 100%; /* Prend toute la largeur de l'Ã©cran */
    z-index: 100; /* Assure que le menu est visible par-dessus les autres Ã©lÃ©ments */
    background-color: rgb(0, 0, 0); /* Fond nwar pour le menu */
    text-align: center; /* Centrer le texte dans le menu */
    padding: 10px 0; /* Espacement intÃ©rieur */
    z-index: 4;
}

nav a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-size: 1.2rem;
    margin-right: 15px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
}

nav a:hover {
    
    color: #471818; /* Couleur au survol */
}


/* PremiÃ¨re section avec fond rouge */
.top-section {
    cursor: url('Images/Curseur/Horreur/hand.jpg'), auto; /* Curseur personnalisÃ© */
    height: 50%;
    background-color: #471818;
    color: rgb(0, 0, 0);
    text-align: center;
    display: flex;
    margin: 0;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* DeuxiÃ¨me section avec fond blanc */
.bas {
    cursor: url('Images/Curseur/Horreur/hand.jpg'), auto; /* Curseur personnalisÃ© */
    height: 50%;
    display: flex;
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    padding: 0; /* Supprime les espacement, pratique pour le curseur*/ 
    margin: 0;
    flex-direction: column; /*Organisation en colonne*/
    justify-content: center; /*Centre tout au milieu*/
    align-items: center; /* Centre tout ce qui est horizontal au milieu*/
    text-align: center;
    position: relative;
    z-index: 2;

    align-self: center; /* Centre horizontalement */
    padding: 1%; /* Espacement interne */
    color: white; /* Texte blanc */
}

/* Section Réseaux sociaux en bas */
.Réseaux {
  bottom: 0; /* Positionné en bas */
  left: 0; /* Aligné à gauche */
  width: 100%; /* Largeur pleine */
  color: white; /* Texte blanc */
  padding: 3%; /* Espacement interne */
  z-index: 1000; /* Au-dessus des autres éléments */
}








/* Styles pour le contenu des sections */
.content {
    text-align: center;
}

h1 {
    font-size: 4rem;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgb(255, 255, 255);
    
}

p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8); /* Texte en noir */
    text-shadow: 1px 1px 5px rgba(255, 255, 255, 0.512);
}


.social-icons {
    display: flex;
    gap: 15px;
    padding: 20px;
    justify-content: center; /* Centre les images horizontalement */
}
.social-icons img {
    width: 50px;
    transition: 0.3s;
    align-items: center;
}









a:hover {
    cursor: url('Images/Curseur/Horreur/eye.jpg'), pointer; /* Curseur personnalisÃ© pour les liens */
    text-decoration: underline;        /* Souligner au survol */
}


/* Customisation du curseur avec une image */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px; /* Largeur du rond */
    height: 20px; /* Hauteur du rond */
    background: url('Images/Curseur/Horreur/eyeball.png') no-repeat center center;
    background-size: contain; /* Adapte l'image Ã  la taille du rond */
    border: none;
    cursor: pointer;
}

/* Pour les autres navigateurs comme Firefox */
input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: url('Images/Curseur/Horreur/eyeball.png') no-repeat center center;
    background-size: contain;
    border: none;
    cursor: pointer;
}

.controls button:hover {
    background-color: #000000; /* Choisis une couleur diffÃ©rente quand l'utilisateur survole le bouton */
    cursor: url('Images/Curseur/Horreur/eye.jpg'), pointer; /* Curseur personnalisÃ© pour les liens */
}

/* Ã‰lÃ©ment dÃ©plaÃ§able */
.draggable {
    cursor: url('Images/Curseur/Horreur/skull.png'), pointer; /* Utilise ton curseur hand */
  }

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: url('Images/Curseur/Horreur/eye.jpg'), pointer; /* Curseur personnalisÃ© pour les liens */
}   

/* Curseur au survol du thumb */
input[type="range"]::-webkit-slider-thumb:hover {
    cursor: url('Images/Curseur/Horreur/hand.jpg'),  pointer; /* Curseur personnalisÃ© */
}

/* Curseur au survol du track */
input[type="range"]:hover {
    cursor: url('Images/Curseur/Horreur/hand.jpg'),  pointer; /* Curseur personnalisÃ© */
}

/* Curseur lorsqu'il est actif (glissement) */
input[type="range"]:active {
    cursor: url('Images/Curseur/Horreur/hand.jpg'),  pointer; /* Curseur personnalisÃ© */
}

/* Curseur lorsque l'Ã©lÃ©ment est focus */
input[type="range"]:focus {
    cursor: url('Images/Curseur/Horreur/hand.jpg'),  pointer; /* Curseur personnalisÃ© */
}









/* Musique */


.audio-player {
    background: rgba(255, 255, 255, 0.134);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
    width: 20%;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(10px, 10px);
    transition: top 0.3s ease, left 0.3s ease; /* Animation pour le dÃ©placement */
    z-index: 5;
    
}

.album-art {
    width: 12vh;
    height: 10vh;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}

.controls {
    display: flex;
    justify-content: space-between;

}

button {
    background: #970101;
    color: white;
    border: none;
    width: 10vh;
    border-radius: 20px;
    cursor: pointer;
}

button:hover {
    background: #000000;
}

input[type="range"] {
    width: 100%;
}

.song-info {
    font-size: 1.2rem;
}

.song-timing {
    font-size: 0.8rem;
    color: #000000;
}


input[type="range"] {

    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #0000003f; /* Couleur de fond du track */
    border-radius: 5px;
    cursor: pointer;
}

/* Customisation du track sur Chrome et autres navigateurs Webkit */
input[type="range"]::-webkit-slider-runnable-track {

    height: 8px;
    border-radius: 5px;
}