/* STR Articles Filter v2.2 */

.str-articles-wrap { width: 100%; font-family: inherit; }

/* === FILTRES === */
.str-filter-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.str-filter-btn {
    background: transparent;
    border: 1px solid #DA6250;
    color: #DA6250;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.str-filter-btn:hover,
.str-filter-btn.active {
    background: #DA6250;
    color: #fff;
}

/* === LOADER === */
.str-loader { text-align: center; padding: 20px 0; }
.str-loader span {
    display: inline-block;
    width: 28px; height: 28px;
    border: 2px solid #eee;
    border-top-color: #DA6250;
    border-radius: 50%;
    animation: str-spin 0.7s linear infinite;
}
@keyframes str-spin { to { transform: rotate(360deg); } }

/* === GRILLE === */
.str-posts-grid {
    display: grid;
    gap: 32px 28px;
}
.str-cols-3 { grid-template-columns: repeat(3, 1fr); }
.str-cols-2 { grid-template-columns: repeat(2, 1fr); }
.str-cols-1 { grid-template-columns: 1fr; }

@media (max-width: 1024px) { .str-cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .str-cols-3, .str-cols-2 { grid-template-columns: 1fr; } }

/* === CARD === */
.str-post-card { display: flex; flex-direction: column; }

.str-post-image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
    text-decoration: none;
    margin-bottom: 14px;
}

.str-post-image {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.3s;
}

.str-post-no-image {
    width: 100%; height: 100%;
    background: #f0ede8; display: block;
}

.str-post-image-wrap:hover .str-post-image { transform: scale(1.03); }

/* Badges catégories sur l'image */
.str-post-cats {
    position: absolute;
    top: 10px; right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
}

.str-post-cat {
    background: #DA6250;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 20px;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* === CORPS === */
.str-post-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 0 0 8px !important;
    line-height: 1.4 !important;
    text-transform: none !important;
}

.str-post-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
    font-size: 16px !important;
    text-transform: none !important;
}

.str-post-title a:hover {
    color: #1a1a1a !important;
    text-decoration: none !important;
}

.str-post-excerpt {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px;
    line-height: 1.6;
}

.str-post-readmore {
    color: #DA6250;
    font-style: italic;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 14px;
}

.str-post-readmore:hover { text-decoration: underline; }

.str-post-separator {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 0 0 10px;
}

.str-post-date {
    font-size: 11px;
    color: #aaa;
    letter-spacing: 0.07em;
    margin: 0;
    font-style: italic;
}

/* === PAGINATION === */
.str-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.str-page-btn {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    border-radius: 2px;
    transition: all 0.15s;
}

.str-page-btn:hover,
.str-page-btn.active {
    background: #DA6250;
    color: #fff;
    border-color: #DA6250;
}

/* Override Elementor kit styles sur les titres */
.str-articles-wrap .str-post-title,
.str-articles-wrap .str-post-title a,
.str-articles-wrap h3.str-post-title,
.str-articles-wrap h3.str-post-title a,
.elementor .str-post-title a,
.elementor-widget-container .str-post-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
    text-transform: none !important;
    font-size: 16px !important;
    font-style: normal !important;
    box-shadow: none !important;
}

.str-articles-wrap .str-post-title a:hover,
.elementor .str-post-title a:hover {
    color: #1a1a1a !important;
    text-decoration: none !important;
}
