html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    color: #fff;
    background: url('Fond_Minecraft_EVE.png') no-repeat center center fixed;
    background-size: cover;
    /* Correction du problème de défilement: min-height garantit que la page peut grandir */
    min-height: 100%;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.55);
    /* Correction du problème de défilement: L'overlay n'est plus en position absolue, il s'adapte au contenu */
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 0;
    box-sizing: border-box;
}

.avatars {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00bcd4;
    box-shadow: 0 0 20px #00bcd4;
}

h1 {
    font-size: 2.8em;
    margin: 10px 0;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px #000;
}

.button-container {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    font-size: 1.2em;
    background-color: #00bcd4;
    color: #000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    font-family: 'Segoe UI', sans-serif;
}

.btn:hover {
    background-color: #0097a7;
    color: white;
}

/* Styles pour le bouton avec image "Créations de Toto" */
.btn-toto {
    justify-content: flex-start;
    padding-left: 15px;
    padding-right: 15px;
}

.btn-toto img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.btn-toto .btn-text {
    color: #000;
}

/* Style commun pour tous les boutons d'apps */
.app-button {
    background: none;
    border: none;
    padding: 0;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.app-button:hover {
    transform: scale(1.05); /* Effet zoom au survol */
}

.app-button:active {
    transform: scale(0.95); /* Effet pression au clic */
}

.app-button img {
    width: 200px;   /* Taille uniforme */
    height: auto;
    border: none;
    border-radius: 12px; /* Arrondi doux */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); /* Ombre élégante */
    transition: box-shadow 0.2s ease;
}

.app-button:active img {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); /* Ombre réduite pendant le clic */
}

.footer {
    position: relative; /* ou rien du tout */
    margin-top: 40px;   /* espace au-dessus */
    font-size: 0.8em;
    opacity: 0.7;
    text-align: center;
	bottom: 20px;
}


/* Règle média pour les petits écrans - ajustements pour les mobiles */
@media (max-width: 768px) {
    .avatars {
        gap: 20px;
        flex-wrap: wrap; /* permet un retour à la ligne naturel */
        justify-content: center;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 2em;
        text-align: center; /* centrer le titre sur mobile */
    }

    .btn {
        min-width: unset;
        width: 90%;
    }

    .app-button img {
        width: 90%;
        max-width: 200px; /* optionnel pour éviter qu’il devienne énorme sur certains mobiles */
    }
}
