/* Import de la police Poppins avec le Light (300) et le Bold (700) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,600;0,700;0,900&display=swap');

.inwt-module-container {
    font-family: 'Poppins', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* ================== RECHERCHE ET FILTRES ================== */
.inwt-filtres-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.inwt-recherche-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #5598C0;
    border-radius: 30px;
    padding: 5px 5px 5px 15px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.inwt-recherche-box input[type="text"] {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 10px;
    flex-grow: 1;
    font-family: 'Poppins', sans-serif;
    background: transparent;
    color: #555;
    -webkit-appearance: none;
}

/* NOUVEAU : Style de la croix pour effacer la recherche */
.inwt-clear-search {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f3f4f6;
    transition: all 0.3s ease;
}

.inwt-clear-search:hover {
    color: #fff;
    background: #ef4444; /* Rouge doux au survol */
}

.inwt-recherche-box button {
    background: linear-gradient(135deg, #5598C0, #39579C);
    color: white;
    border: none !important;
    outline: none !important;
    border-radius: 25px;
    padding: 10px 25px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    transition: 0.3s;
    -webkit-appearance: none;
}

.inwt-recherche-box button:hover {
    background: linear-gradient(135deg, #E0A564, #c98c4a);
}

.inwt-boutons-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.inwt-btn-cat {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #555;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.inwt-btn-cat:hover, .inwt-btn-cat.actif {
    background: #E0A564;
    color: #fff;
    border-color: #E0A564;
    transform: translateY(-2px);
}

.inwt-btn-cat strong {
    font-weight: 700;
}

/* Texte de résultats de recherche */
.inwt-resultats-recherche {
    text-align: center;
    margin-bottom: 40px;
    font-size: 16px;
    color: #39579C;
    font-weight: 300;
    background: #f9fbfd;
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid #e0eaf3;
}
.inwt-resultats-recherche strong {
    font-weight: 700;
}

/* ================== LA GRILLE RESPONSIVE ================== */
.inwt-grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* ================== LA CARTE ARTICLE ================== */
.inwt-carte {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.inwt-carte:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(57, 87, 156, 0.12);
}

/* Image et bouton au survol */
.inwt-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.inwt-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.inwt-carte:hover .inwt-image-wrapper img {
    transform: scale(1.05);
}

/* Bouton Lire la suite */
.inwt-hover-btn {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #5598C0, #39579C);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: bottom 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: none !important;
    white-space: nowrap;
}

.inwt-hover-btn:hover {
    background: linear-gradient(135deg, #E0A564, #c98c4a);
}

.inwt-carte:hover .inwt-hover-btn {
    bottom: 20px;
}

/* Contenu de la carte */
.inwt-contenu {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Titre : Bold normal (700) */
.inwt-titre {
    font-size: 18px;
    font-weight: 700; 
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.inwt-titre a {
    color: #4A5568; 
    text-decoration: none;
    transition: color 0.2s;
}

.inwt-titre a:hover {
    color: #39579C;
}

/* Extrait : Light (300) et épuré */
.inwt-extrait {
    font-weight: 300;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Badges Auteur et Date */
.inwt-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.inwt-badge {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
}

.inwt-badge-author {
    background: linear-gradient(135deg, #E0A564, #c98c4a);
}

/* Bouton Date */
.inwt-badge-date {
    background: linear-gradient(135deg, #5598C0, #39579C); 
}

/* ================== PAGINATION ================== */
.inwt-pagination {
    margin-top: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.inwt-pagination a, .inwt-pagination span {
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #39579C;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.inwt-pagination .current {
    background: linear-gradient(135deg, #5598C0, #39579C);
    color: #fff;
    border-color: transparent;
}

.inwt-pagination a:hover {
    background: linear-gradient(135deg, #E0A564, #c98c4a);
    color: #fff;
    border-color: transparent;
}

/* Media Queries pour Mobile */
@media (max-width: 768px) {
    .inwt-recherche-box {
        flex-direction: column;
        border-radius: 15px;
        padding: 10px;
        gap: 10px;
    }
    .inwt-recherche-box span.inwt-emoji {
        display: none;
    }
    .inwt-recherche-box button {
        width: 100%;
        border-radius: 10px;
    }
    .inwt-clear-search {
        position: absolute;
        right: 20px;
        top: 20px;
    }
}