/* Importation de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Réinitialisation des marges et paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Style général du body avec le background */
body {
    background: url('FD JAP.jpg') no-repeat center center fixed;
    background-size: cover;
    color: black;
    text-align: center;
    padding: 40px;
}

/* Conteneur principal */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Titre principal */
h1 {
    font-size: 40px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
}

h3 {
  font-size: 35px;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
}

/* Conteneur des cartes */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    padding: 20px;
}

/* Style des cartes */
.card {
    background: rgba(20, 20, 60, 0.8);
    border-radius: 12px;
    padding: 15px;
    width: 400px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgb(20, 20, 60);
    text-align: center;
    overflow: hidden;
}

/* Effet au survol */
.card:hover {
    transform: scale(1.05);
    background: rgb(20, 20, 60);
    
}

/* Image des cartes */
.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

/* Lien sous l’image */
.card a {
    display: block;
    color: rgb(255, 255, 255);
    font-size: 18px;
    font-weight: 600;
    margin-top: 10px;
    text-decoration: none;
    transition: color 0.3s;
    transition: all 0.3s ease-in-out;
}

.card a:hover {
    color: #00f7ff;
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
}

/* Responsivité */
@media screen and (max-width: 768px) {
    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }
}
