
.titre2{
    text-align: center;
    font-size: 3rem;
    color: #4371c8; /* bleu foncé */
    margin: 1rem 0;
    font-family: "Source Sans 3", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .titre2{
        font-size: 2.5rem;
    }
}
@media (max-width: 480px) {
    .titre2{
        font-size: 2rem;
    }
}

.description2 {
    font-size: 1.2rem;
    color: rgb(79, 77, 77);
    font-family: "Source Sans 3", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    padding-top: 20px;
    text-align: center;
    margin: 2rem auto; /* centrer et espacer en bas */
}
@media (max-width: 768px) {
    .description2{
        font-size: 1rem;
        padding: 10px;
    }
}
@media (max-width: 480px) {
    .description2{
        font-size: 1rem;
        padding: 5px;
    }
}


/* Container de la grille */
.container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* colonnes adaptatives */
    gap: 2rem;   /* espace entre les blocs */
    padding: 20px;
    background-color: rgb(232, 246, 250);
}

/* Chaque bloc "livre1" */
.livre1 {
    display: flex;
    flex-direction: column; /* image au-dessus du texte */
    align-items: center;    /* centrer le contenu horizontalement */
    background-color: #f9f9f9;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Image du livre */
.livre1 img.cover1 {
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;     /* empêche la déformation */
    margin-bottom: 1rem;  /* espace entre image et texte */
}

.livre1 h2 {
    font-size: 1.5rem;
    color: #377dee;
    font-weight: 600;
    text-align: center;
    margin: 0.5rem 0;
    font-family: "Source Sans 3", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.livre1 p {
    font-size: 1.2rem;
    color: #555;
    text-align: center;
    margin: 0.5rem 0 1rem 0;
    font-family: "Source Sans 3", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

/* Texte du livre */
.livre1 button {
    width: 30%;
    display: block;
    padding: 0.2rem 0.2rem;
    margin: 0.2rem auto;
    font-family: "Source Sans 3", sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #0077ff, #3d7af4);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.livre1 button:hover {
    background: linear-gradient(135deg, #005fcc, #00a2cc);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}


/* Effets au hover */
.livre1:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* Responsive pour petits écrans */
@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        grid-template-columns: 1fr; /* un seul bloc par ligne */
        gap: 1rem;
    }
}
