/* Conteneur g�n�ral */

.recent-pages {
    padding: 40px;
    background: linear-gradient(135deg, #ffefd5, #ffcccc);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

/* Grille pour les pages */
.recent-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Largeur minimale augment�e */
    gap: 30px;
    margin-top: 30px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
}

/* �l�ments individuels */
.recent-page-item {
    background: linear-gradient(145deg, #fff, #f8f8f8);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: center;
    padding: 20px;
    position: relative;
}

/* Animation au survol */
.recent-page-item:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, #f8f8f8, #fff);
}

/* Images */
.recent-page-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.recent-page-item img:hover {
    filter: brightness(1.1);
}

/* Titres */
.recent-page-item h3 {
    margin: 15px 0;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Liens */
.recent-page-item h3 a {
    text-decoration: none;
    color: #e63946;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.recent-page-item h3 a:hover {
    color: #ff5a5f;
    text-shadow: 0 3px 6px rgba(230, 57, 70, 0.5);
}

/* Extraits */
.recent-page-item .excerpt {
    font-size: 16px;
    color: #555;
    margin-top: 12px;
    line-height: 1.8;
    font-style: italic;
    text-align: justify;
}

/* Bordure color�e sur les c�t�s */
.recent-page-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #ff5a5f, #f37121);
    border-radius: 20px 0 0 20px;
}

/* Boutons */
.recent-page-item .cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: #ff5a5f;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.recent-page-item .cta-button:hover {
    background: #f37121;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* M�dias queries pour la responsivit� */
/* �crans moyens (tablettes) */
@media (max-width: 768px) {
    .recent-pages-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* R�duire la largeur minimale */
    }
}

/* �crans petits (mobiles) */
@media (max-width: 480px) {
    .recent-pages-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
    }

    .recent-page-item {
        padding: 15px;
    }

    .recent-page-item img {
        height: 150px;
    }

    .recent-page-item h3 {
        font-size: 20px;
    }

    .recent-page-item .excerpt {
        font-size: 14px;
    }
}
