/* Styles communs à toutes les pages */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

h1 {
    text-align: center;
    color: #333;
}

/* Grille des catégories ou packages */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Cartes (catégories ou packages) */
.card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Icônes */
.card-icon {
    font-size: 40px;
    color: #007BFF;
    margin-bottom: 5px;
}

/* Liens */
.card-link {
    display: block;
    margin-top: 5px;
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.card-link:hover {
    text-decoration: underline;
}

/* Bouton de retour */
.back-button {
    display: inline-block;
    margin-bottom: 20px;
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.back-button:hover {
    text-decoration: underline;
}

/* Bouton vers un package */
.package-link {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.package-link:hover {
    background-color: #218838;
}

/* Grille des packages (plus large) */
.packages-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    max-width: 1000px;
}

/* Icônes des packages (vert) */
.package-icon {
    color: #28a745;
}


/* Style pour la liste des fichiers dans une tuile */
.file-name {
	font-size: 13px;
	font-family: 'Consolas', 'Fira Code', 'Monaco', 'Courier New', monospace;
	font-weight: bold;
	margin-bottom: 2px;
	color: #333;
	word-break: break-all; /* Pour éviter les débordements */
}

.file-list {
    text-align: left;
    margin: 10px 0;
    font-size: 14px;
}

.file-list h4 {
    margin: 5px 0;
    font-size: 16px;
}

.file-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.file-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.file-list a {
    color: #007BFF;
    text-decoration: none;
}

.file-list a:hover {
    text-decoration: underline;
}

/* Couleurs par catégorie */
.card.graphiques {
    border-top: 4px solid #007BFF; /* Bleu */
}

.card.jeux {
    border-top: 4px solid #dc3545; /* Rouge */
}

.card.maths {
    border-top: 4px solid #28a745; /* Vert */
}

.card.outils {
    border-top: 4px solid #6f42c1; /* Violet */
}

.card.fun {
    border-top: 4px solid #B7BF0A; /* Jaune */
}

/* Optionnel : changer la couleur du titre selon la catégorie */
.card.graphiques h3 {
    color: #007BFF;
}

.card.jeux h3 {
    color: #dc3545;
}

.card.maths h3 {
    color: #28a745;
}

.card.outils h3 {
    color: #6f42c1;
}

.card.fun h3 {
    color: #B7BF0A;
}
