/* content.css */

html, body {
    overflow-x: hidden;
    touch-action: pan-y;
}

body {
    background-color: #121212;
    color: #eee;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0 auto 2rem;
}

li {
    background-color: #0c4f4a;
    border-radius: 4px;
    transition: background-color 0.2s;
    margin: 0.5rem 15px;
}

a {
    display: block;
    padding: 0.5rem 1rem;
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h2, h3 {
    text-align: center;
}

.search-form {
    width: 70%;
    max-width: 800px;
    margin: 0 auto;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-wrapper input[type="text"] {
    width: 100%;
    padding: 1rem 2rem 1rem 1.5rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 25px;
    box-sizing: border-box;
    height: 2.8rem;
}

/* Responsive mobile */
@media (max-width: 768px) {
    body {
        align-items: stretch;
    }

    .search-form {
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* Autocomplete */
.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-top: none;
    border-radius: 0 0 20px 20px;
    max-height: 250px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 10;

    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.suggestions-list.show {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
}

.suggestions-list li {
    padding: 10px 15px;
    cursor: pointer;
    background-color: #f9f9f9;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.suggestions-list li:last-child {
    border-bottom: none;
}

.suggestions-list li:hover {
    background-color: #e0e0e0;
}

.input-wrapper input[type="text"]:focus {
    outline: none;       /* supprime le contour bleu */
    box-shadow: none;    /* supprime l’ombre de focus éventuelle */
}
