/* Base styles */
body {
    font-family: Arial, sans-serif;
    background-color: white;
    color: #3498db;
    text-align: center;
    margin: 0;
    padding: 0;
}

.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #3498db;
}

/* Section des langues */
#language-section {
    display: flex;
    flex-wrap: wrap; /* Permettre le retour à la ligne sur les petits écrans */
    gap: 20px; /* Espacement entre les items */
    justify-content: center; /* Centrer les colonnes */
    width: 100%;
    max-width: 800px; /* Réduire la largeur maximale du container */
    margin: 20px auto; /* Centrer horizontalement */
}

/* Style pour chaque item de langue */
.language-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc(33.33% - 20px); /* Trois colonnes sur grand écran */
    min-width: 150px; /* Largeur minimale pour éviter un affichage trop serré */
    transition: transform 0.3s ease;
}

.language-item:hover {
    transform: scale(1.05);
}

/* Style pour les drapeaux */
.flag {
    width: 100%; /* Redimensionner proportionnellement */
    height: auto; /* Conserver le ratio original */
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Style pour les textes des langues */
.language-text {
    text-align: center;
    margin-top: 10px;
}

.language-name {
    font-size: 16px;
    font-weight: bold;
}

.language-name-en {
    font-size: 12px;
    color: #777;
}

/* Responsive : Sur les petits écrans, passer en une seule colonne */
@media (max-width: 800px) {
    #language-section {
        flex-direction: column; /* Tous les items en une seule colonne */
        gap: 10px; /* Réduire l'espacement */
    }

    .language-item {
        width: 100%; /* Prendre toute la largeur */
        max-width: 300px; /* Limiter la largeur maximale */
    }
}