/* Appliquer le style au canvas */
canvas#backgroundCanvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, #001029, #000000);
    z-index: -1; /* Assure que le canvas est en arrière-plan */
}

/* Conteneur principal */
.container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 25px rgba(255, 187, 0, 0.9);
    width: 90%;
    max-width: 320px;
    font-family: 'Poppins', sans-serif;
}

/* Titre principal */
h1 {
    font-size: 22px; /* Taille réduite */
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

/* Sous-titre */
.subtitle {
    font-size: 14px; /* Taille réduite */
    font-weight: 300;
    color: #555;
    margin-bottom: 15px;
}

/* Conteneur des liens */
.links {
    display: flex;
    flex-direction: column; /* Les éléments s'empilent verticalement */
    gap: 10px; /* Espacement entre les boutons */
    align-items: center; /* Centrer les boutons horizontalement */
}

/* Liens */
.link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Icône et texte empilés */
    padding: 10px;
    width: 50px; /* Taille plus petite */
    height: 50px; /* Taille plus petite */
    text-decoration: none;
    color: #fff;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 8px;
    font-size: 14px; /* Taille réduite */
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    overflow: hidden; /* Cache le texte initialement */
}

/* Icône dans le lien */
.link i, .link img {
    font-size: 18px; /* Taille plus petite */
    transition: transform 0.3s ease;
    margin-bottom: 0;
}

/* Texte caché par défaut */
.link span {
    font-size: 12px; /* Taille réduite */
    color: #fff;
    opacity: 0; /* Caché par défaut */
    height: 0; /* Le texte n'occupe aucun espace */
    overflow: hidden; /* Empêche le texte caché de prendre de la place */
    transition: opacity 0.3s ease, height 0.3s ease;
    margin-top: 5px;
    text-align: center;
}

/* Afficher le texte et agrandir le bouton au survol */
.link:hover {
    width: 70px; /* Largeur légèrement étendue */
    height: 70px; /* Hauteur légèrement étendue */
    background: linear-gradient(45deg, #0056b3, #007bff);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.5);
}

/* Texte visible au survol */
.link:hover span {
    opacity: 1; /* Texte visible */
    height: auto; /* Laisse le texte apparaître */
}

/* Ajustement pour les images */
.icon-playstation, .icon-x {
    width: 20px; /* Taille réduite */
    height: auto;
    vertical-align: middle;
}

/* Pour aligner correctement les icônes Font Awesome */
.link i {
    width: 20px; /* Taille réduite */
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styles responsives avec media queries */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 20px;
    }

    .subtitle {
        font-size: 13px;
    }

    .link {
        width: 45px;
        height: 45px;
    }

    .link:hover {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 18px;
    }

    .subtitle {
        font-size: 12px;
    }

    .link {
        width: 40px;
        height: 40px;
    }

    .link:hover {
        width: 50px;
        height: 50px;
    }
}

