/* ================== Conteneur global ================== */
#psm-results, .wrap-psm-front {
    margin: auto;
}

/* ================== Filtres + Bouton Proposer ================== */
.psm-filters-wrapper {
    display: flex;
    justify-content: flex-end; /* aligné à droite */
    align-items: center;       /* alignement vertical parfait */
    flex-wrap: wrap;           /* s'adapte aux petits écrans */
    margin-bottom: 15px;
}

.psm-filters-wrapper label {
    margin: 0; /* supprimer décalage */
}

#psm-status, #psm-cat {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    margin: 0; /* suppression margin-left */
}

#psm-open-modal {
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    transition: background 0.2s;
    margin: 0; /* supprimer tout décalage */
}

#psm-open-modal:hover {
    background-color: #2573b5;
}

/* ================== Ligne des posts ================== */
.psm-row {
    display: flex;
    padding: 10px;
    margin-bottom: 6px;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.psm-row div {
    padding: 2px 6px;
}

.psm-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Largeur des colonnes */
.psm-row div:nth-child(1), /* Problème */
.psm-row div:nth-child(2)  /* Solution */ {
    width: 40%;
}

.psm-row div:nth-child(3) { /* Statut */
    width: 20%;
    text-align: center;
}

/* ================== Header colonnes ================== */
.psm-columns-header {
    display: flex;
    font-weight: bold;
    border-bottom: 2px solid #ccc;
    padding: 8px;
}

.psm-columns-header div:nth-child(1),
.psm-columns-header div:nth-child(2) {
    width: 40%;
}

.psm-columns-header div:nth-child(3) {
    width: 20%;
    text-align: center;
}

/* ================== Popup Proposer ================== */
#psm-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#psm-modal div {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 400px;
}

#psm-modal textarea {
    width: 100%;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

#psm-modal button {
    padding: 6px 12px;
    margin-top: 10px;
    border-radius: 6px;
    cursor: pointer;
}

#psm-cancel {
    background: #ccc;
    border: none;
    margin-right: 10px;
}

#psm-submit {
    background: #3498db;
    color: #fff;
    border: none;
    font-weight: 600;
}

#psm-submit:hover {
    background: #2573b5;
}
