.card, .howto-card {
    border-radius: 8px;
    background-color: white;
    box-sizing: border-box;
    margin: 10px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    overflow: hidden; 
}

.card {
    width: 85%;
    max-width: 200px;
}

.card:hover {
    transform: scale(1.05);
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 0.5em;
    white-space: normal;
}

.card-text {
    font-size: 1rem;
    color: #555;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image couvre l'espace sans déformation */
    /* transform: scale(1.1); Mise à l'échelle permanente à 110% de sa taille d'origine */
    transition: transform 0.3s ease-in-out; /* Transition fluide pour un effet d'agrandissement/diminution */
}

.card-body {
    padding: 15px;
    text-align: center;
}

.card .btn {
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    font-size: large;
    border-radius: 5px;
}

.card .btn:hover {
    background-color: #2980b9;
}

.card-date{
    font-size: normal;
    color: black;
    font-weight:lighter;
    margin-top: 1em;
    margin-bottom: -1em;
}

.howto-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ddd;
    overflow-x: auto;
    background-color: #e7a0a0a6;
    padding: 15px;
    width: 100%;
    max-width: 300px;
    min-height: 350px;
    border-radius: 10px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background-color: lightblue; 
    white-space: nowrap; 
}

/* .scroll-container : pour que les cartes défilent horizontalement */
.scroll-container {
    display: flex;            /* Affiche les éléments en ligne */
    overflow-x: auto;         /* Active le défilement horizontal */
    gap: 1em;                /* Espacement entre les cartes */
    align-items: left;
    padding-bottom: 1rem;     /* Pour ne pas que la scrollbar chevauche */
    scroll-snap-type: x mandatory;
    min-width: 50%;           /* Éviter que la largeur du container soit trop petite */
    max-width: 100%;
    width: 100%;              /* Prend toute la largeur de son parent */
    padding: 20px 20px;
    border-radius: 8px;
    background-color: white;
    box-sizing: border-box;
    margin: 10px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}