h2 {
    padding-top: 10px;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.card {
    position: relative;
    flex: 1 1 32%;
    max-width: 400px;
    margin: 15px;
    border-radius: 10px;
    box-shadow: 1px 4px 6px rgba(0,0,0,0.675);
    background: #eaeaea;
    overflow: hidden;
    transition: transform 0.4s;
}

.card img {
    margin: 20px auto 0 auto;
    min-height: 200px;
    max-width: 300px;
    max-height: 300px;
    display: block;
    border: 1px solid #656565;
    border-radius: 3%;
}

.card .content {
    text-align: center;
    font-size: 1.3rem;
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.card .title, .title {
    font-size: 2rem;
    margin: 10px 0;
    text-align: center;
    font-weight: bold;
    font-family: "Jersey 15", cursive;
}

.card .button, .button {
    display: inline-block;
    margin: 20px auto 30px auto;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border-radius: 5px;
    font-size: 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: transform 0.5s;
}

.button:hover, .card .button:hover {
    background: #ffcc00;
    color: #000;
    transform: scale(1.05);
}

.strong {
    font-weight: bold;
}

.card .genre, .genre-index {
    position: absolute;
    background: #f6f6f6;
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #000;
    font-size: 1rem;
    z-index: 10;
}
.card .genre { 
    top: 50px; 
    left: 60px; 
}
.genre-index { 
    top: 10px; 
    left: 40px; 
}

.card:hover {
    transform: translateY(-10px);
    animation: bounce 0.8s ease-in-out infinite;
}

.saillant {
    font-family: "Jersey 15", cursive;
    font-size: 1.9rem;
    color: #000000;
}

.welcome-box {
    background: linear-gradient(90deg, #232526 0%, #414345 100%);
    color: #fff;
    border-bottom: 2px solid #ffcc00;
    text-align: center;
    padding: 25px;
    font-family: 'Segoe UI', Verdana, Arial, sans-serif;
}

.welcome-box h1,
.welcome-box h2 {
    font-size: 1.7rem;
    margin-bottom: 18px;
    color: #ffcc00;
    font-family: "Press Start 2P", cursive;
}

.welcome-box p {
    font-size: 1.2rem;
    color: #f6f6f6;
    margin: 10px;
    line-height: 1.6;
}

/* --- FORMULAIRE --- */
.form-add {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 3px;
}

.form-group {
    margin-bottom: 15px;
}

label,
.form-add label {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 10px 0 5px 0;
    display: block;
    text-align: center;
}

.filter-nav label{
    text-align: left;
    padding-left:10px;
}

.form-add input[type="text"],
.form-add input[type="date"],
.form-add input[type="url"],
.form-add textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.button-container{
    text-align:center;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-group div {
    display: flex;
    align-items: center;
}

.form-add button[type="submit"] {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #0fc044;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.3rem;
    margin: 30px auto 0 auto;
    font-family: 'Jersey 15', cursive, Arial, sans-serif;
    font-weight: bold;
}

.form-add button[type="submit"]:hover {
    background: #ffcc00;
    color: #232526;
    transform: scale(1.05);
}

fieldset {
    width: 70%;
    margin: auto;
    text-align: center;
    border: 2px solid #ffcc00;
    border-radius: 8px;
    padding: 20px 25px 15px 25px;
}

legend {
    font-family: 'Jersey 15', cursive, Arial, sans-serif;
    font-size: 1.1rem;
    color: #ffcc00;
    padding: 0 10px;
    font-weight: bold;
    letter-spacing: 1px;
    background: #232526;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.08);
}

details {
    display: flex;
    margin-bottom: 20px;
    list-style: none;
    cursor: pointer;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-style: none;
    transition: all 0.3s;
}

details a {
    text-decoration: none;
    color: black;
    padding-left: 20px;
    transition: all 0.3s;
}

details a:hover {
    text-decoration: underline;
}

details[open] .detail-filter {
    display: flex;
    border: 1px solid #000;
    margin: 10px;
    transition: all 0.3s;
}

details[open] a {
    margin: 10px;
    transition: all 0.3s;
}

details summary {
    list-style: none;
}


.error {
    color: red;
    text-align: center;
    margin-bottom: 15px;
}

.success {
    color: green;
    text-align: center;
    margin-bottom: 15px;
}



select {
    padding: 10px;
    margin: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1.1rem;
    background: #f9f9f9;
    color: #333;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
}

select:hover {
    background: #e6e6e6;
    border-color: #888;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

select:focus {
    outline: 2px solid #0fc044;
    border-color: #0fc044;
    box-shadow: 0 0 5px rgba(15,192,68,0.5);
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 700px) {
    .card { flex: 1 1 48%; }
    .button { font-size: 1.3rem; }
    .welcome-box { padding: 18px 8px; font-size: 1rem; }
    .welcome-box h1 { font-size: 1.3rem; }
}