/* Style général */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    color: #333;
}

main {
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Titre */
header h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

/* Formulaire de recherche */
#search-section {
    text-align: center;
    margin-bottom: 30px;
}

#search-form input {
    padding: 10px;
    font-size: 1rem;
    width: 50%;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
    transition: border 0.3s ease;
}

#search-form input:focus {
    border-color: #007BFF;
    outline: none;
}

#search-form button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#search-form button:hover {
    background-color: #0056b3;
}

/* Résultats */
#results-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Grille de films */
#movie-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Grille fluide */
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#movie-list li {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#movie-list li:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#movie-list img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

#movie-list h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #007BFF;
}

#movie-list p {
    font-size: 0.9rem;
    color: #555;
}

/* Pagination */
#pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

#pagination button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#pagination button:hover {
    background-color: #218838;
}

#pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
