/* === Style général Debian Red === */

/* === Contenu centré === */
.container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.background {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #0a0a0a, #1a0000);
    z-index: -1;
}
.background::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: transparent url("../logo/stardust.png") repeat;
    animation: moveStars 80s linear infinite;
    opacity: 0.15;
}

/* === Logo Container pour flip et néon sur contours === */
.logo-container {
    display: inline-block;
    margin-top: 40px;
    margin-bottom: 20px;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
    animation: swing 4s ease-in-out infinite alternate;
}

/* Logo image avec ombrage noir par défaut */
.logo {
    width: 200px;
    max-width: 40vw;
    height: auto;
    display: block;
    animation: fadeInLogo 1.5s ease forwards;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter:
        drop-shadow(0 0 5px rgba(0,0,0,0.8))
        drop-shadow(0 0 10px rgba(0,0,0,0.6));
}

/* Flip léger + zoom + néon rouge sur contours au survol */
.logo-container:hover .logo {
    transform: rotateY(10deg) rotateX(10deg) scale(1.05);
    filter:
        drop-shadow(0 0 5px #ff0000)
        drop-shadow(0 0 10px #ff0000)
        drop-shadow(0 0 15px #ff4d4d)
        drop-shadow(0 0 20px #ff0000);
}

/* Animation fade-in logo */
@keyframes fadeInLogo {
    0% {opacity: 0; transform: scale(0.5);}
    100% {opacity: 1; transform: scale(1);}
}

/* Swing logo */
@keyframes swing {
    0% {transform: rotateZ(-2deg);}
    50% {transform: rotateZ(2deg);}
    100% {transform: rotateZ(-2deg);}
}

/* === Titre avec ombrage noir par défaut === */
/* === Titre principal === */
h1 {
    font-family: 'Orbitron', sans-serif; /* Typo futuriste */
    font-size: 2.2rem;
    line-height: 1.4;
    color: #ffffff; /* Blanc */
    margin-bottom: 50px;
    animation: fadeInDown 1s ease forwards;
    font-weight: 500;
}

/* Animation fade-in titre */
@keyframes fadeInDown {
    0% {opacity: 0; transform: translateY(-50px);}
    100% {opacity: 1; transform: translateY(0);}
}

/* Version responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 1.6rem;
    }
}


/* === Boutons contour néon rouge === */
.lang-btn {
    position: relative;
    display: inline-block;
    margin: 20px;
    padding: 20px 60px;
    font-size: 1.5rem;
    color: #fff;
    background: transparent;
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden;
    transition: color 0.3s ease, text-shadow 0.3s ease, filter 0.5s ease;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.7))
            drop-shadow(0 0 10px rgba(0,0,0,0.5));
}


.lang-btn span {
    position: relative;
    z-index: 2;
}

/* Contour néon animé */
.lang-btn::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    border-radius: 12px;
    background: linear-gradient(
        120deg,
        #ff4d4d,
        #d70a53,
        #ff0000,
        #ff4d4d
    );
    background-size: 300% 300%;
    animation: borderFlow 3s linear infinite, gradientShift 5s ease-in-out infinite alternate;
    z-index: 0;
    filter: blur(2px);
}

/* Zone intérieure sombre */
.lang-btn::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #0a0a0a;
    border-radius: 10px;
    z-index: 1;
}

/* Halo rouge pulsant pour boutons au survol */
@keyframes glowPulse {
    0%,100% {box-shadow: 0 0 10px #ff4d4d, 0 0 20px #d70a53, 0 0 40px #ff0000;}
    50% {box-shadow: 0 0 20px #ff4d4d, 0 0 40px #d70a53, 0 0 60px #ff0000;}
}

/* Hover : renforce le halo des boutons */
.lang-btn:hover::before {
    filter: blur(4px);
}

.lang-btn:hover {
    color: #ff4d4d;
    text-shadow: 0 0 10px #ff4d4d, 0 0 20px #d70a53;
    animation: glowPulse 2s ease-in-out infinite;
}

/* Animation gradient du contour */
@keyframes borderFlow {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* Animation légère gradient shift pour boutons */
@keyframes gradientShift {
    0% {background-position: 0% 0%;}
    50% {background-position: 100% 100%;}
    100% {background-position: 0% 0%;}
}
