/* Import police sportive */
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

body {
    margin: 0;
    font-family: 'Anton', sans-serif;
    background-color: #1e1e1e;
    color: #f5f5f5;
    background-image: url('../images/background.jpg'); /* à personnaliser */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Barre de navigation */
nav {
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

nav a {
    color: #f5f5f5;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: bold;
}

nav a:hover {
    color: #e60000;
}

/* Logo */
.logo {
    height: 40px;
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(30, 30, 30, 0.9);
    border-radius: 10px;
}

/* Cartes de combattants */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.03);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1rem;
}

.card-content h3 {
    color: #e60000;
}

/* Boutons */
button, input[type="submit"] {
    background-color: #e60000;
    border: none;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Anton', sans-serif;
}

button:hover, input[type="submit"]:hover {
    background-color: #cc0000;
}

/* Formulaire de recherche */
.search-box {
    text-align: center;
    margin-bottom: 2rem;
}

input[type="text"] {
    padding: 0.5rem;
    width: 300px;
    border-radius: 5px;
    border: none;
}
