/* Styles globaux */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    height: 100%;
    overflow: hidden; /* Empêche le défilement global */
    display: flex;
    flex-direction: column;
}

/* Style pour le champ de recherche (header fixé) */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    position: fixed; 
    top: 0;
    width: 100%;
    z-index: 1;
}

.search-container input[type="text"] {
    width: 90%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    background-color: #f1f1f1;
}

.search-container input[type="text"]::placeholder {
    color: #888;
}

/* Conteneur pour le contenu principal défilable */
.main-content {
    flex: 1;
    overflow-y: auto; /* Active le défilement vertical */
    padding-top: 70px; /* Compense la hauteur du header fixé */
    padding-bottom: 70px; /* Compense la hauteur du footer fixé */
}

/* Grille des catégories */
#category-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Affichage en 2 colonnes */
    gap: 10px; /* Espacement entre les éléments */
    padding: 10px;
}

/* Style pour chaque élément de catégorie */
.category-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Arrondir les coins */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); /* Légère ombre pour un effet de relief */
    transition: transform 0.3s; /* Effet de zoom au survol */
}

.category-item:hover {
    transform: scale(1.05); /* Zoom au survol */
}

/* Image de chaque catégorie */
.category-item img {
    width: 100%;
    height: auto; /* Pour afficher l'image en entier sans la déformer */
    border-radius: 8px; /* Arrondir les coins pour correspondre au conteneur */
}

/* Texte en dessous de chaque image */
.category-item span {
    position: absolute;
    bottom: 8px;
    left: 8px;
    color: white;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.6); /* Fond semi-transparent pour une meilleure lisibilité */
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

/* Footer fixé */
.footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    background-color: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1); /* Ombre légère pour distinguer le footer */
    z-index: 1;
}

/* Icônes du footer */
.footer div {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px; /* Taille des icônes */
    color: #555; /* Couleur des icônes */
    transition: color 0.3s; /* Transition pour un effet au survol */
}

.footer div:hover {
    color: #000; /* Changement de couleur au survol */
}
