/* Styles pour le métronome */
* {
    margin: 0; 
    padding: 0;
}

html {
    height: 100%;
}

body {
    background-color: #1e2227;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    height: 100%;
    font-family: Arial, sans-serif;
    color: #e9e9e9;
}

#play-button {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
}

.title {
    margin-bottom: 40px;
    font-size: 40px;
    text-align: center;
}

#tempo {
    font-size: 40px;
}

.bpm {
    font-size: 12px;
    text-align: center;
}

.tempo-controls {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: row;
}

.tempo-container {
    margin: 0 15px;
}

button {
    padding: 6px;
    border: none;
    border-radius: 100%;
    width: 40px;
    height: 40px;
    margin: 5px;
    background-color: #2a4949;
    color: #e9e9e9;
    cursor: pointer;
}

button:focus {
    outline: none;
}

.created-by {
    margin-top: 40px;
}

a {
    color: #e9e9e9;
}

a:hover {
    color: #356161;
}

.play {
    width: 0;
    height: 0;
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    border-left: 50px solid #e9e9e9;
    margin-left: 15px;
}

.pause {
    width: 15px;
    height: 60px;
    border: none;
    border-left: 15px solid #e9e9e9;
    border-right: 15px solid #e9e9e9;
}

/* Styles globaux supplémentaires */
body {
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    background-color: #222;
    color: #fff;
    animation: colorCycle 10s infinite;
    transition: background-color 0.5s ease;
}

@keyframes colorCycle {
    0% { background-color: #ff006e; }
    25% { background-color: #8338ec; }
    50% { background-color: #3a86ff; }
    75% { background-color: #ffbe0b; }
    100% { background-color: #fb5607; }
}

header {
    background-color: #ff006e;
    color: white;
    padding: 1rem;
    text-align: center;
    border-bottom: 5px solid #3a86ff;
    animation: colorCycle 8s infinite;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    color: #ffbe0b;
    text-shadow: 2px 2px 0 #8338ec, 4px 4px 0 #3a86ff;
    animation: glow 2s infinite alternate;
}

header label {
    color: #ffbe0b;
    font-size: 1rem;
    margin-left: 0.5rem;
}

main {
    padding: 1rem;
    max-width: 800px;
    margin: 0 auto;
    border: 3px solid #fb5607;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 12px;
}

section {
    background-color: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 3px solid #ffbe0b;
}

h1, h2, h3, p {
    text-transform: uppercase;
    font-weight: bold;
    color: #ffbe0b;
    text-shadow: 2px 2px 0 #8338ec, 4px 4px 0 #3a86ff;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #fff, 0 0 20px #8338ec, 0 0 30px #ff006e; }
    to { text-shadow: 0 0 20px #fb5607, 0 0 30px #ffbe0b, 0 0 40px #3a86ff; }
}

.audioPlayer {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 200px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.audioPlayer audio {
    width: 100%;
    border-radius: 8px;
}

.bt {
    display: inline-block;
    background-color: #8338ec;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.bt:hover {
    background-color: #ff006e;
    transform: scale(1.1);
}

footer {
    background-color: #3a86ff;
    padding: 1rem;
    border-top: 5px solid #fb5607;
    text-align: center;
    color: white;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Style spécifique pour le bouton métronome en jaune */
.link-button[href="metronome.html"] {
    background-color: #FFD700 !important; /* Jaune doré */
    color: #000 !important; /* Texte noir pour contraste */
}

.link-button[href="metronome.html"]:hover {
    background-color: #FFA500 !important; /* Orange au survol */
    color: #000 !important;
}


