*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 
    DARKMODE inspiré de la vidéo de Coding2GO 
    https://www.youtube.com/watch?v=_gKEUYarehE 
*/
:root {
    --base-color: #070b1d;
    --nav-bar: #141522;
    --base-header: #101435;
    --text-header: #cccccc;
    --text-color: #fff;
}

.lightmode {
    --base-color: #cdcdcd;
    --nav-bar:#9d9d9d;
    --base-header: #5f5f5f;
    --text-header: #000;
    --text-color: #fffdfd;
}

#theme-switch {
    fill: var(--base-color)
}

#theme-switch {
    height: 50px;
    width: 50px;
    padding: 0;
    border-radius: 50%;
    background-color: var(--base-color);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 20px;
    right: 20px;
}

#theme-switch svg:last-child {
    display: none;
}

.lightmode #theme-switch svg:first-child {
    display: none;
}

.lightmode #theme-switch svg:last-child {
    display: block;
}

body {
    margin: 0;
    height: 100vh;
    background: var(--base-color);
    color: var(--text-color);

    font-family: "Bebas Neue", sans-serif;
    font-style: normal;
}

/* Bloc pour chaque musique */
.music-block {
    width: 700px;
    text-align: center;
    margin: auto;
    margin-top: 2rem;
    margin-bottom: 4rem;
    border-radius: 10px;
    box-shadow: 5px 5px 5px #000;

    background: linear-gradient(-45deg, #c764c3, #61e67c, #23a6d5, #2332d5);
	background-size: 400% 400%;
	animation: gradient 5s ease infinite;
}

/* Animation background des blocs de musique */
@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

.music-block .music-desc {
    font-family: "Indie Flower", serif;
    font-style: normal;
    background-color: #101435;
    padding: 0.5rem;

    text-shadow: #000 1px 1px;
}

/* Boutons de lecture */
.music-block button {
    padding: 10px 20px;
    margin-bottom: 1rem;
    font-size: 16px;
    background-color: #50fa21;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.music-block button:hover {
    background-color: #000000;
    color: #50fa21;
}

.music-block button.pause {
    background-color: #fa2121;
    color: #000;
}

.music-block button.pause:hover {
    background-color: #000;
    color: #fa2121;
}

.music-album {
    width: 40%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 5px;
    margin: 10px 0;
}

/* Nom de la musique */
.music-title {
    margin-top: 1rem;
    font-size: 2rem;
    color: #fff;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px #000, 0 0 1em #50fa21, 0 0 0.2em #50fa21;
}

/* Formulaire */
.formulaire {
    background-image: url(img/formulaire-background.jpg);
    background-size: cover;
    margin: auto;
    margin-bottom: 2rem;
    width: 800px;
    text-align: center;
}

.formulaire h1 {
    text-align: center;
    background-color: #474548;
    padding: 1rem;
}

.formulaire input {
    width: 300px;
    height: 35px;
    outline: solid #a319ff;
    margin-bottom: 2rem;
}

.formulaire input:focus {
    outline: 1px solid #f3d303;
}

.formulaire textarea {
    width: 500px;
    outline: solid #a319ff;
    margin-bottom: 2rem;
}

.formulaire label {
    font-size: 2rem;
}

.formulaire button {
    margin-bottom: 2rem;
    font-size: 2rem;
    background-color: #f823ff;
    border-radius: 5px;
    cursor: pointer;
    padding: 0.7rem;
}

/* Bas de page */
footer {
    flex-shrink: 0;
    font-size: 2rem;
    text-align: center;
    border-top: solid #000;
    background: linear-gradient(-45deg, #ff28cd, #61e67c, #23a6d5, #2332d5);
	background-size: 400% 400%;
	animation: gradient 5s ease infinite;
    color: #fff;
    
    margin-top: 1rem;
    padding: 2rem;
}

/* Side Bar : https://www.youtube.com/watch?v=bFvfqUMjvsA&list=PLImJ3umGjxdCjoBGj1eGQwcopR0P0edAK */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    font-family: "Gochi Hand", serif;
    height: 100%;
    width: 250px;
    background-color: var(--nav-bar);
}

.sidebar h1 {
    color: #50fa21;
    margin-left: 2rem;
}

.sidebar a {
    text-decoration: none;
    color: white
}

.sidebar a:hover {
    border-bottom: solid 3px #50fa21;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li:nth-child(1) {margin-top: 5rem;}
.sidebar ul li {
    margin-bottom: 3rem;
}

.sidebar button {
    background-color: #000;
    margin-left: 1.5rem;
    color: white;
    border-radius: 10px;
    border: solid 4px #3aff37;
    text-align: center;
    font-size: 1.3rem;
    padding: 20px;
    width: 200px;
    cursor: pointer;
}

.sidebar p:hover() {
    border-bottom: #50fa21;
}

#credit-block {
    display: none;
    position: fixed;
    bottom: 50px; /* Juste au-dessus du footer */
    left: 85%;
    transform: translateX(-50%);
    background-color: #f9f9f9;
    color: #333;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
    width: 500px;
    text-align: center;
}