/* general styling */

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

html,
body {
    height: 100%;
    margin: 0;
}

body {
    align-items: center;
    background-color: #000;
    /* Fond noir fixe pour le timer */
    display: flex;
    font-family: -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen-Sans,
        Ubuntu,
        Cantarell,
        "Helvetica Neue",
        sans-serif;
}

.container {
    color: #fff;
    margin: 0 auto;
    text-align: center;
    z-index: 10;
    position: relative;
}

h1 {
    font-weight: normal;
    letter-spacing: .125rem;
    text-transform: uppercase;
}

li {
    display: inline-block;
    font-size: 1.5em;
    list-style-type: none;
    padding: 1em;
    text-transform: uppercase;
}

li span {
    display: block;
    font-size: 4.5rem;
}

/* === RESTAURATION STYLES DU BOUTON MUSIQUE === */
.music-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000; /* Très au-dessus de tout */
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #00bfff; /* Couleur Star Wars */
    border: 2px solid #00bfff;
    border-radius: 25px;
    font-family: monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
    opacity: 0.7;
    /* Caché par défaut, affiché uniquement pendant l'effet Star Wars */
    display: none;
}

.music-btn:hover {
    background-color: rgba(0, 191, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.6);
    transform: scale(1.05);
    opacity: 1;
}

.music-btn:active {
    transform: scale(0.95);
}

/* Animation quand la musique joue */
.music-btn.playing {
    border-color: #32cd32; /* Vert quand ça joue */
    color: #32cd32;
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.3);
    animation: pulseMusic 2s infinite;
}

@keyframes pulseMusic {
    0% { box-shadow: 0 0 0 0 rgba(50, 205, 50, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(50, 205, 50, 0); }
    100% { box-shadow: 0 0 0 0 rgba(50, 205, 50, 0); }
}

@media all and (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    li {
        font-size: 1.125rem;
        padding: .75rem;
    }

    li span {
        font-size: 3.375rem;
    }
    
    .music-btn {
        padding: 8px 12px;
        font-size: 12px;
        bottom: 10px;
        right: 10px;
    }
}

@keyframes birthdayExplosion {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.8;
    }

    100% {
        transform: scale(0.8) rotate(360deg);
        opacity: 0;
    }
}

@keyframes lucasSignature {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    50% {
        opacity: 1;
        transform: translateX(0%);
    }

    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#birthday-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10000;
    background: transparent;
    padding: 2rem;
    border-radius: 15px;
    animation: fadeIn 2s ease-out forwards;
}

#birthday-title {
    font-size: 4rem;
    color: #0f0;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    animation: zoomIn 2s ease-out forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
    }

    to {
        transform: scale(1);
    }
}

.lucas-signature {
    position: fixed;
    bottom: 10%;
    right: 10%;
    font-family: 'Brush Script MT', cursive;
    font-size: 2rem;
    color: #ff6b35;
    animation: lucasSignature 3s ease-in-out 5s;
    z-index: 1001;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.glitch {
    animation: glitch 0.3s ease-in-out infinite;
    text-shadow:
        2px 0 #ff0000,
        -2px 0 #00ffff,
        0 2px #ff6b35,
        0 -2px #f7931e;
}
