/* Topics - Hero + Cartes */

/* ANCIEN STYLE HERO DÉSACTIVÉ - Remplacé par .design-v2-hero dans bbpress-cards.css
.ids-forum-hero {
    position: relative;
    width: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    border-radius: 0;
}

.ids-forum-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 145, 0.9) 0%,
        rgba(0, 0, 112, 0.85) 100%
    );
}

.ids-forum-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 40px 20px;
}

.ids-forum-hero-title {
    font-size: 50px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ids-forum-hero-description {
    font-size: 24px;
    line-height: 1.6;
    margin: 0;
    color: #ffffff;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .ids-forum-hero {
        min-height: 300px;
        margin-bottom: 40px;
    }
    
    .ids-forum-hero-title {
        font-size: 32px;
    }
    
    .ids-forum-hero-description {
        font-size: 18px;
    }
}
*/

.ids-forum-topics-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ids-forum-topics-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 10px 0;
    color: #020617;
}

.ids-forum-topics-subtitle {
    font-size: 18px;
    color: #64748B;
    margin: 0;
}

.ids-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.ids-button-primary {
    background: #000091;
    color: #ffffff;
}

.ids-button-primary:hover {
    background: #000070;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 145, 0.3);
}

@media (max-width: 768px) {
    .ids-forum-topics-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .ids-forum-topics-title {
        font-size: 32px;
    }
    
    .ids-button {
        width: 100%;
        justify-content: center;
    }
}

.ids-topics-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #FFFFFF;
}

/* Centrer la liste des topics dans la page */
body.bbpress .ids-topics-list {
    padding: 64px 40px;
}

@media (max-width: 768px) {
    .ids-topics-list,
    body.bbpress .ids-topics-list {
        padding: 40px 24px;
    }
}

.ids-topic-card {
    display: flex;
    gap: 24px;
    background: #ffffff;
    border: 2px dashed #E5E7EB;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    font-family: 'Afacad', sans-serif;
}

.ids-topic-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #CBD5E1;
    border-style: solid;
}

.ids-topic-card-image {
    flex-shrink: 0;
    width: 320px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ids-topic-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ids-topic-card:hover .ids-topic-card-image img {
    transform: scale(1.05);
}

.ids-topic-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ids-topic-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 15px;
    color: #64748B;
    margin-bottom: 8px;
}

.ids-topic-category {
    display: inline-block;
    background: #EFF6FF;
    color: #000091;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ids-topic-category:hover {
    background: #000091;
    color: #FFFFFF;
}

.ids-topic-separator {
    color: #CBD5E1;
    font-weight: 300;
}

.ids-topic-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ids-topic-author img {
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.ids-topic-author-name {
    font-weight: 500;
    color: #020617;
}

.ids-topic-date {
    color: #64748B;
}

.ids-topic-card-title {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    font-family: 'Afacad', sans-serif;
}

.ids-topic-card-title a {
    color: #020617;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ids-topic-card-title a:hover {
    color: #000091;
}

.ids-topic-card-excerpt {
    color: #64748B;
    font-size: 15px;
    line-height: 1.7;
    flex-grow: 1;
    font-family: 'Afacad', sans-serif;
}

.ids-topic-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 4px;
    border-top: 1px solid #E5E7EB;
}

.ids-topic-card-actions {
    display: flex;
    gap: 20px;
}

.ids-topic-link,
.ids-topic-comment-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000091;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Afacad', sans-serif;
    transition: all 0.2s ease;
}

.ids-topic-link:hover,
.ids-topic-comment-link:hover {
    color: #000070;
    transform: translateX(2px);
}

.ids-topic-link svg,
.ids-topic-comment-link svg {
    width: 18px;
    height: 18px;
}

.ids-topic-card-likes {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748B;
    font-size: 14px;
    font-family: 'Afacad', sans-serif;
}

.ids-topic-card-likes svg {
    width: 20px;
    height: 20px;
    color: #000091;
}

@media (max-width: 768px) {
    .ids-topic-card {
        flex-direction: column;
        padding: 16px;
    }
    
    .ids-topic-card-image {
        width: 100%;
        height: 180px;
    }
    
    .ids-topic-card-title {
        font-size: 20px;
    }
    
    .ids-topic-card-footer {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .ids-topic-card-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.bbp-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.bbp-pagination .page-numbers {
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bbp-pagination .page-numbers:hover,
.bbp-pagination .page-numbers.current {
    background: #000091;
    color: #ffffff;
    border-color: #000091;
}

.page-v2 .ids-forum-hero,
.page-v2 .ids-topic-card,
.page-v2 .ids-forum-topics-header {
    font-family: 'Afacad', sans-serif;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ids-topic-card {
    animation: fadeInUp 0.5s ease backwards;
}

.ids-topic-card:nth-child(1) { animation-delay: 0.05s; }
.ids-topic-card:nth-child(2) { animation-delay: 0.1s; }
.ids-topic-card:nth-child(3) { animation-delay: 0.15s; }
.ids-topic-card:nth-child(4) { animation-delay: 0.2s; }
.ids-topic-card:nth-child(5) { animation-delay: 0.25s; }
