/* Style global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif; /* Remplace Arial par une police plus jolie */
    background-color: #181818; /* Noir foncé pour l'arrière-plan */
    color: #F5F5F5; /* Blanc cassé pour le texte principal */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Logo réduit de 60% */
.site-logo {
    width: 20%; /* Réduit de 60% */
}

h1 {
    font-size: 48px;
    color: #C19A6B; /* Doré pour le titre */
    text-align: center;
    margin: 50px 0;
}

/* Champ de recherche */
.search-form {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75%; /* Ajuste la largeur */
    margin: 0 auto;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 35px; /* Loupe à l'intérieur du champ */
    width: 20px; /* Ajuste la taille de la loupe */
    height: 20px;
    background: url('loupe.png') no-repeat center;
    background-size: contain;
}

.search-form input {
    width: calc(100% - 150px); /* Ajuste la largeur pour le bouton et l'icône */
    padding: 10px 20px 10px 40px; /* Padding gauche pour laisser de l'espace à la loupe */
    border: none;
    border-radius: 25px 0 0 25px;
    color: #000;
    outline: none;
    font-size: 16px;
    height: 40px; /* Hauteur alignée avec le bouton */
}

.search-form input::placeholder {
    color: #999;
}

/* Bouton Rechercher */
.search-button {
    width: 100px; /* Largeur augmentée pour plus d'espace */
    background-color: #b99a45; /* Noir pour le bouton */
    color: #000000; /* Blanc cassé pour le texte du bouton */
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Roboto', sans-serif; /* Utilise une police plus jolie */
    font-weight: 600; /* Medium */
    height: 40px; /* Hauteur alignée avec le champ de recherche */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px; /* Plus d'espace à gauche et à droite */
}

/* Grille des sites */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.card {
    width: 150px;
    height: 150px;
    background-color: transparent;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: background-color 0.3s ease, border-radius 0.3s ease;
    cursor: pointer;
}

.card:hover {
    background-color: #363636; /* Gris foncé au survol */
    border-radius: 15px; /* Arrondir les angles au survol */
}

.card img {
    width: 60%;
    border-radius: 50%;
    background-color: #787F90; /* Gris moyen pour le fond du logo */
    margin: 0 auto;
    display: block;
}

.card h2 {
    font-size: 16px;
    margin-top: 10px;
    color: #F5F5F5; /* Blanc cassé pour le titre des cartes */
    text-align: center;
}

.card .tooltip {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    color: #F5F5F5; /* Blanc cassé pour le texte du tooltip */
    padding: 10px;
    cursor: pointer;
    background-color: #C19A6B; /* Fond doré pour le tooltip */
    border-radius: 50%;
    display: none; /* Initialement masqué */
}

.card:hover .tooltip {
    display: block; /* Affiche le tooltip au survol */
}

.card .description {
    display: none;
    color: #F5F5F5; /* Blanc cassé pour la description */
    font-size: 14px;
    text-align: center;
    margin-top: 30px; /* Décalage pour ne pas chevaucher le "?" */
    position: relative;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
