/* ---------------------------------------------------------
   EXPO 2026 — Styles principaux
   Tous les styles de l’exposition sont centralisés ici.
--------------------------------------------------------- */

/* ---------------------------------------------------------
   LAYOUT GÉNÉRAL
--------------------------------------------------------- */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* ---------------------------------------------------------
   BARRE DE RECHERCHE
--------------------------------------------------------- */

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 20px auto;    /* Center horizontal + espace vertical */
    max-width: 500px;            /* Limite la largeur totale */
    width: 100%;                 /* Respecte la max-width */
}

.search-bar input[type="text"] {
    flex: 1;
    min-width: 0;                /* ⚠️ Empêche overflow flexbox */
    padding: 8px 10px;
    font-size: 16px;
    border: 1px solid #aaa;
    border-radius: 4px;
}

/* Bouton effacer */
.clear-btn {
    padding: 6px 12px;
    cursor: pointer;
    font-size: 16px;
    background: #eee;
    border: 1px solid #888;
    border-radius: 4px;
    transition: background 0.2s;
}

.clear-btn:hover {
    background: #ddd;
}

/* ---------------------------------------------------------
   GRILLE DES RÉSULTATS — EXPO 2026
--------------------------------------------------------- */

#results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 25px;
    padding-bottom: 40px;
}

.result {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result img {
    width: 100%;
    height: auto;
    aspect-ratio: 300 / 212; /* ratio exact des vignettes */
    object-fit: contain;     /* aucune coupe */
    border-radius: 6px;
    background: #f8f8f8;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.result div {
    margin-top: 6px;
    font-size: 0.9rem;
    text-align: center;
    color: #333;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 600px) {
    #results {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }

    .result img {
        padding: 3px;
        border-radius: 4px;
    }
}

/* issu de proton pour centrer un objet (select) */
.page-center {
    display: grid;
    /*place-items: center;         Centre horizontal ET vertical */
	justify-items: center;      /*⚠️ Seulement horizontal */
	/*justify-items: start;       ⚠️ Items alignés à gauche */
	/*justify-items: end;        /* ⚠️ Items alignés à droite */
    /* min-height: 100vh; */
    width: 100%;
}