.section_projet_explique {
    width: 100%;
    min-height: 100%;
    padding-top: 64px;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container_projet {
    width: 1010px;
    height: 100%;

}



.box_projet_explique {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: transparent;
    margin: 0 auto;
    margin-bottom: 46px;
}

.info_compl_projet {
    width: 1010px;
    min-height: 110px;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.type_etiquette_projet,
.advertisor_decline_projet {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.type_etiquette_projet {
    width: 450px;
    height: 100%;
}

.advertisor_decline_projet {
    width: 560px;
    height: 100%;
}

.categories_projet,
.etiquettes_projet {
    width: 100%;
    display: grid;
    grid-template-columns: max-content 1fr;
    justify-content: start;
    align-items: center;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    gap: 18px;
    margin-bottom: 25px;
}




.cat_projet {
    width: 100%;
    height: 100%;
    padding: 4px 14px;
    background-color: var(--color-btn);
    border-radius: 360px;
    color: #f2f2f2;
    cursor: pointer;
    transition: all 0.3s;
}

.cat_projet:hover {
    background-color: var(--color-btn-hover);
}


.etiquette_projet {
    width: 100%;
    height: 100%;
    padding: 4px;
    color: var(--color-btn);
    text-decoration: underline;
}

.etiquette_projet:hover {
    color: var(--color-btn-hover);
}



.advertisor_decline_projet {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: end;
    gap: 8px;
}



.advertisor {
    width: 100%;
    width: 115px;
    height: 40px;
}

.advertisor_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.decline_minecraft {
    text-align: right;
    width: 100%;
    font-size: 16px;
    font-weight: 400;
    color: #000;
}






/* troiseme partie commentaire */
.container_commentaire {
    height: 100%;
    width: 1280px;
}

.container_ajout_commentaire {
    width: 100%;
    height: 100%;
    gap: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 50px;
}

.formulaire_ajout_commentaire {
    position: relative;
    width: 770px;
    height: 100%;
    gap: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.box_input_form_commentaire {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.input_form_commentaire {
    height: 34px;
    width: 250px;
    padding: 0 28px;
    border: none;
    border-radius: 12px;
    background-color: #f2f2f2;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.textarea_form_commentaire {
    height: 134px;
    width: 100%;
    padding: 18px 28px;
    border: none;
    border-radius: 12px;
    background-color: #f2f2f2;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.4);
    resize: none;
}

.box_label_check {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 15px;
    padding-left: 15px;
    z-index: 1000;
}


.btn_check {
    opacity: 0;
    position: absolute;
}

.box_btn_check {
    position: absolute;
    width: 15px;
    height: 15px;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    cursor: pointer;
}

.box_btn_check.clicked {
    background-color: var(--color-btn);
}


.label_commentaire {
    font-size: 16px;
    font-weight: 500;
    color: #757582;
    margin-left: 25px;
}


.link_politique_confidentialite:link,
.link_politique_confidentialite:visited {
    color: var(--color-btn);
    text-decoration: underline;
}

.btn_submit_commentaire {
    width: 220px;
    height: 35px;
    padding: 8px 24px;
    background-color: var(--color-btn);
    color: #f2f2f2;
    border: none;
    border-radius: 360px;
    font-size: 16px;
    margin-left: calc(100% - 220px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn_submit_commentaire:hover {
    background-color: var(--color-btn-hover);
    transform: scale(1.01);
}





/* -----------------------------------   deuxieme partie commentaire ----------------------------------- */


.container_voir_commentaires {
    width: 100%;
    height: 100%;
    gap: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.container_commentaire_envoie {
    position: relative;
    width: 770px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container_commentaire_envoie_reponse {
    position: relative;
    width: 100%;
    height: 100%;
}

.container_commentaire_envoie_reponse:last-child {
    margin-bottom: 30px;
}

.box_commentaire {
    margin: 10px 0;
}

.nom_date_commentaire {
    transform: translateX(-5px);
    margin-bottom: 2px;
}

.nom_commentaire {
    font-size: 16px;
    font-weight: 400;
    color: black;
    font-family: "Roboto Slab", serif;
    font-weight: bold;
    margin-bottom: 2px;
    padding-right: 5px;
}

.date_commentaire {
    font-size: 12px;
    font-weight: 400;
    color: #404040;
    font-family: "Roboto", serif;
    font-weight: 400;
}

.box_commentaire_text_icon {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 70px;
    background-color: #e9eaeb;
    padding: 8px 5px 8px 16px;
    border-left: #404040 1px solid;
}

.text_commentaire {
    height: min-content;
    grid-column: 1 / 2;
    font-size: 16px;
    font-weight: 400;
    color: #404040;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.action_commentaire {
    grid-column: 2 / 3;
    position: relative;
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;


}

.box_icon_commentaire {
    position: absolute;
    left: 100%;
    transform: translateX(-100%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.icon_com {
    cursor: pointer;
    transition: all .3s;
}

.num_reponse_com {
    color: var(--color-btn);
    font-size: 16px;
    font-weight: 400
}

.container_commentaire_reponse {
    width: 100%;
    height: 0;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: end;
    flex-direction: column;
    opacity: 0;
    overflow: hidden;
    transition: height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform-origin: top;
    padding: 0;
    visibility: hidden;
}

.container_commentaire_reponse.visible {
    height: auto;
    opacity: 1;
    visibility: visible;
    padding: 10px 0;
}

.box_commentaire_reponse {
    width: 90%;
    height: 100%;
    grid-template-columns: 1fr 70px;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
    will-change: transform;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.container_commentaire_reponse.visible .box_commentaire_reponse {
    opacity: 1;
}

.box_commentaire_reponse:last-child {
    margin-bottom: 20px;
}

.container_commentaire_reponse:not(.visible) .box_commentaire_reponse {
    transform: translateY(-20px);
    pointer-events: none;
}

/* Styles pour le bouton d'affichage des réponses */
.afficher_reponse_commentaire {
    color: var(--color-btn);
    font-size: 12px;
    font-weight: 400;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.afficher_reponse_commentaire:hover {
    color: var(--color-btn-hover);
}

/* ----------------------------------- AUTRES PROJETS ----------------------------------- */
.container_autres_projets {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 64px;
    padding-top: 64px;
    background-color: #eaeaea;
}

.box_autres_projets {
    width: 1280px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.box_cartes_projets {
    margin-top: 65px;
    width: 100%;
    height: 100%;
    padding: 40px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.cartes_projets {
    width: 300px;
    height: 360px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.4);
}

.box_img_carte_projet {
    height: 70%;
    width: 100%;
}

.img_carte_projet {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.box_info_carte_projet {
    height: 30%;
    width: 100%;
    background-color: #f2f2f2;
    padding: 0 15px;
    gap: 10%;
}

.box_title_type_carte_projet {
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title_carte_projet {
    font-size: 16px;
    font-weight: bold;
    color: black;
}

.type_carte_projet {
    background-color: var(--color-btn);
    color: #f2f2f2;
    padding: 4px 8px;
    border-radius: 360px;
    font-size: 12px;
    font-weight: 600;
}

.box_tag_carte_projet {
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 8px;
}

.tag_carte_projet {
    background-color: var(--color-btn);
    color: #f2f2f2;
    padding: 4px 8px;
    border-radius: 360px;
    font-size: 12px;
    font-weight: 500;
}

/* Styles pour l'icône reply */
.icon_reply {
    width: 23px;
    height: 23px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.icon_reply:hover {
    opacity: 0.8;
}

/* Styles pour le formulaire de réponse */
.container_reply_form {
    margin: 20px 0;
    padding: 15px;
    background-color: #f2f2f2;
    border-radius: 8px;
}

.formulaire_reply_commentaire {
    position: relative;
    width: 100%;
    height: 100%;
    gap: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.formulaire_reply_commentaire .box_input_form_commentaire {
    width: 100%;
}

.formulaire_reply_commentaire .input_form_commentaire {
    width: 100%;
}

.formulaire_reply_commentaire .textarea_form_commentaire {
    width: 100%;
}



.formulaire_reply_commentaire .box_label_check {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 15px;
}

.formulaire_reply_commentaire .label_commentaire {
    font-size: 16px;
    font-weight: 500;
    color: #757582;
}

.message-response {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.no_comments {
    text-align: center;
    padding: 2rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin: 1rem 0;
}

.no_comments p {
    color: #666;
    font-size: 1.1rem;
    font-style: italic;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
}

.kpi-item {
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 12px 18px;
}

.kpi-img {
    width: 40px;
    height: 40px;
    margin-right: 16px;
    object-fit: contain;
}

.kpi-info {
    display: flex;
    flex-direction: column;
}

.kpi-name {
    font-weight: bold;
    font-size: 1.1em;
}

.kpi-value {
    color: #333;
    font-size: 1em;
}

/* =================================== RESPONSIVE 1280px =================================== */
@media screen and (max-width: 1280px) {
    .container_projet {
        width: 95%;
        max-width: 1010px;
    }

    .info_compl_projet {
        width: 100%;
        flex-direction: column;
        gap: 30px;
    }

    .type_etiquette_projet {
        width: 100%;
    }

    .advertisor_decline_projet {
        width: 100%;
        align-items: center;
    }

    .container_commentaire {
        width: 100%;
        max-width: 1280px;
    }

    .formulaire_ajout_commentaire {
        width: 95%;
        max-width: 770px;
    }

    .container_commentaire_envoie {
        width: 95%;
        max-width: 770px;
    }

    .box_input_form_commentaire {
        flex-direction: column;
        gap: 15px;
    }

    .input_form_commentaire {
        width: 100%;
    }

    .box_autres_projets {
        width: 95%;
        max-width: 1280px;
    }

    .box_cartes_projets {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    .cartes_projets {
        width: 100%;
        max-width: 400px;
    }

    .box_commentaire_text_icon {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .action_commentaire {
        position: static;
        justify-content: flex-end;
        margin-top: 10px;
    }

    .box_icon_commentaire {
        position: static;
        transform: none;
    }

    .container_commentaire_reponse {
        width: 100%;
    }

    .box_commentaire_reponse {
        width: 100%;
    }

    .formulaire_reply_commentaire {
        width: 100%;
    }

    .formulaire_reply_commentaire .box_input_form_commentaire {
        flex-direction: column;
        gap: 15px;
    }

    .formulaire_reply_commentaire .input_form_commentaire {
        width: 100%;
    }

    .btn_submit_commentaire {
        margin-left: 0;
        width: 100%;
        max-width: 220px;
    }

    .categories_projet,
    .etiquettes_projet {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .box_categories_projet,
    .box_etiquettes_projet {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .cat_projet,
    .etiquette_projet {
        white-space: nowrap;
    }

    .advertisor {
        width: 80px;
        height: 30px;
    }

    .decline_minecraft {
        text-align: center;
        font-size: 14px;
    }
}