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

/* Meta Tag for Mobile Responsiveness */
html {
    font-size: 100%; /* 1 rem = 16px on default */
}

/* Body */
body {
    font-family: 'Orbitron', sans-serif; /* Futuristic font */
    background: radial-gradient(circle, #1e1e2f, #0d0d14);
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
}

/* Header - Sticky at the top */
header {
    position: sticky;
    top: 0;
    background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
    padding: 10px 20px;
    display: flex;
    justify-content: center; /* Centre les éléments du header */
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    z-index: 100;
    flex-wrap: wrap;
}

header h1 {
    font-size: 1.8rem;
    color: #00fff0;
    text-shadow: 0 0 8px #00fff0, 0 0 15px #00fff0;
    letter-spacing: 2px;
    text-align: center;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: center; /* Centre les éléments de nav */
    width: 100%;
}

header .menu {
    display: flex;
    gap: 20px;
    justify-content: center; /* Centre les éléments du menu */
}

header nav a {
    text-decoration: none;
    color: #15c3c9;
    font-size: 1rem;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

header nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px; /* Assurez-vous qu'il y a une hauteur pour la ligne sous l'élément */
    background: #83f5ed;
    transition: width 0.3s ease;
}

header nav a:hover {
    color: #00fff0;
    border-color: #00fff0;
}

header nav a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    gap: 30px;
}

/* Buttons */
.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.hover-button {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 255, 255, 0.3), 0 -4px 8px rgba(0, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.hover-button:hover {
    background: linear-gradient(90deg, #00eeff, #007b8b);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 255, 242, 0.5), 0 -5px 10px rgba(0, 247, 255, 0.3);
}

/* Effect on Click (Active) */
.hover-button:active {
    transform: scale(0.95); /* Réduction de taille pendant le clic */
    background: linear-gradient(90deg, #00ff73, #004c8b);
    box-shadow: 0 4px 10px rgba(200, 255, 0, 0.6), 0 -3px 5px rgba(0, 255, 149, 0.4); /* Changement d'ombre pour un effet de pression */
}

/* Footer - Sticky at the bottom */
footer {
    background: linear-gradient(90deg, #141e30, #243b55);
    color: #b3b3b3;
    padding: 15px 20px;
    text-align: center;
    font-size: 0.9rem;
    position: sticky;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.4);
}

footer p {
    margin: 0;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.6rem;
        flex: 1;
        text-align: center;
    }

    header nav a {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .hover-button {
        padding: 12px 24px;
        font-size: 1.1rem;
    }

    .menu {
        display: flex;  /* Assurez-vous que les éléments restent en ligne */
        flex-direction: row;  /* Alignement horizontal */
        gap: 15px;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.4rem;
    }

    header nav a {
        font-size: 0.85rem;
        padding: 5px 10px;
    }

    .hover-button {
        padding: 10px 20px;
        font-size: 1rem;
    }

    footer {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    header h1 {
        font-size: 1.2rem;
    }

    header nav a {
        font-size: 0.75rem;
    }

    .hover-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    footer {
        font-size: 0.7rem;
    }
}
