/* ===== PAGE FORUM - DESIGN MODERNE ===== */

/* Container principal */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.containerForum {
    margin-top: 3rem;
}

/* Titre principal */
.TextForum {
    color: #1e293b;
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: none;
    margin-top: 0;
    text-align: left;
}

/* Texte description */
.TexteForum {
    color: #475569;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.3px;
    text-transform: none;
    width: 100%;
    max-width: 550px;
}

/* Conteneur bouton */
.containerBouton {
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Bouton "Posez vos questions" */
.BoutonPVQ {
    width: auto;
    min-width: 260px;
    padding: 0.9rem 2rem;
    background: #10b981;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.BoutonPVQ:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

/* Section des thèmes */
.BlockTheme {
    margin-top: 3rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.TexteThemes {
    color: #1e293b;
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    text-decoration: none;
    border-bottom: 3px solid #10b981;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    margin-left: 0;
}

/* Grille des sujets */
.GroupeSujet {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Carte sujet */
.CarrerSujet {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
    width: calc(33.333% - 1.4rem);
    min-width: 280px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.CarrerSujet:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

/* Titre du sujet */
.TitreDuSujet {
    color: #1e293b;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.2px;
    margin: 0 0 1rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 3.5rem;
}

/* Icônes + compteurs */
.ImgComm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.ImgComm img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.ImgComm span {
    color: #64748b;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Description du sujet */
.DescriptionDuSujet {
    color: #475569;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    width: 100%;
    height: 100px;
    overflow-y: auto;
    margin-top: 0.5rem;
}

.DescriptionDuSujet::-webkit-scrollbar {
    width: 4px;
}

.DescriptionDuSujet::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 4px;
}

.DescriptionDuSujet::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Message aucun sujet */
.AucunSujet {
    text-align: center;
    color: #64748b;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: 2rem;
}

/* Tooltip personnalisé */
.custom-tooltip {
    position: absolute;
    background: #1e293b;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    z-index: 1000;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1200px) {
    .CarrerSujet {
        width: calc(50% - 1rem);
    }
}

@media screen and (max-width: 991px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .containerForum {
        margin-top: 1.5rem;
    }
    
    .containerBouton {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .BlockTheme {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .TextForum {
        text-align: center;
        margin-bottom: 1rem;
        font-size: 36px;
    }
    
    .TexteForum {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .TexteThemes {
        font-size: 1.5rem;
        text-align: center;
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }
    
    .GroupeSujet {
        justify-content: center;
    }
    
    .CarrerSujet {
        width: 320px;
    }
}

@media screen and (max-width: 768px) {
    .TexteForum {
        padding: 0 1rem;
    }
    
    .BoutonPVQ {
        min-width: 220px;
        padding: 0.7rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .GroupeSujet {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .CarrerSujet {
        padding: 1.2rem;
        width: 100%;
        max-width: 320px;
    }
    
    .TitreDuSujet {
        font-size: 1.1rem;
    }
    
    .TexteThemes {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 576px) {
    .TextForum {
        font-size: 1.8rem;
    }
    
    .TexteForum {
        font-size: 0.85rem;
    }
    
    .BoutonPVQ {
        width: 90%;
        min-width: auto;
        font-size: 0.75rem;
    }
    
    .CarrerSujet {
        width: 100%;
    }
    
    .TitreDuSujet {
        font-size: 1rem;
    }
    
    .DescriptionDuSujet {
        font-size: 0.75rem;
        height: 90px;
    }
    
    .TexteThemes {
        font-size: 1.2rem;
    }
}