/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffedbe; /* Fond du body */
    color: #333; /* Couleur générale du texte */
}

h1 {
    color: #fff;
}

h2, h3  {
    color : #333;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    text-decoration: underline;
}

/* En-tête */
header {
    background-color: #d44848; /* Couleur du fond du header */
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

/* Conteneur principal */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
}

/* Filtres de recherche */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: space-between; /* Espacement entre les éléments */
}

.filters label {
    font-weight: bold;
    color: #333;
    font-size: 1rem;
    margin-bottom: 5px;
    display: block;
}

.filters select,
.filters input {
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 5px;
    width: 200px; /* Largeur uniforme pour les éléments */
    transition: border 0.3s ease;
}

.filters select:focus,
.filters input:focus {
    border-color: #d44848; /* Couleur de focus correspondant au header/footer */
}

.filters button {
    padding: 12px 20px;
    background-color: #d44848;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filters button:hover {
    background-color: #a73f3f; /* Légère variation sur hover */
}

/* Section des clowns */
#clowns-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.clown {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.clown:hover {
    transform: translateY(-5px); /* Effet au survol */
}

.clown img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.clown h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.clown p {
    margin: 5px 0;
    color: #555;
}

.clown p strong {
    font-weight: bold;
}

.clown .rating {
    margin-top: 10px;
}

/* Pied de page */
footer {
    background-color: #d44848; /* Couleur du fond du footer */
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
}

/* Message "aucun clown trouvé" */
#clowns-container p {
    text-align: center;
    font-size: 1.2rem;
    color: #777;
}

/* Ajout de styles modernes pour les filtres */
.filters select,
.filters input {
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 1rem;
}

.filters select:focus,
.filters input:focus {
    outline: none;
    border-color: #d44848; /* Couleur de focus */
}

.filters button {
    background-color: #d44848;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.filters button:hover {
    background-color: #a73f3f;
}

.filters button:active {
    background-color: #812828;
}
