/* ================== PAGE FOND GRIS ================== */
.page-publications-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background-color: #f0f0f0;
    min-height: 80vh;
}

/* ================== TITRES DES SECTIONS ================== */
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 1rem;
    border-bottom: 2px solid #2e7d32;
    padding-bottom: 0.5rem;
}

/* ================== COLONNE PUBLICATIONS ================== */
.colonne-publications {
    width: 65%;
    background-color: #fff;
    border-right: 2px solid #ccc;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.publication-item {
    border-bottom: 1px solid #ddd;
    padding: 1.2rem 0;
}

.publication-item:last-child {
    border-bottom: none;
}

.type-title {
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.pub-title {
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}

.pub-title a {
    color: #333;
    text-decoration: none;
}

.pub-title a:hover {
    text-decoration: underline;
}

/* ================== COLONNE THEMATIQUES ================== */
.colonne-thematiques {
    width: 30%;
    background-color: #fff;
    border-left: 2px solid #ccc;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.colonne-thematiques ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.colonne-thematiques li {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #ddd;
    font-size: 0.95rem;
}

.colonne-thematiques li:last-child {
    border-bottom: none;
}

.colonne-thematiques .badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

/* ================== SEARCH & FILTER ================== */
.search-section {
    background-color: #f8f9fa;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.filter-input,
.filter-select,
.submit-button {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.submit-button {
    background-color: #23b15a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 28px;
    transition: background 0.2s ease;
    width: auto; 
}

.submit-button:hover {
    background: #1e9c4f;
}


/* Style de pagination — proportion simple, sobre */

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 0;
    gap: 4px;
}

.pagination li {
    display: inline-block;
}

.pagination li a,
.pagination li span {
    display: block;
    padding: 8px 14px;
    color: white;
    background-color: #4CAF50; 
    border: 1px solid #4CAF50;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}

.pagination li a:hover {
    background-color: #388E3C; 
    border-color: #388E3C;
    color: #fff;
}

.pagination li.active span {
    background-color: #999;
    border-color: #999;
    color: #fff;
}

.pagination li.disabled span,
.pagination li.disabled a {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

/* Centrage global */
.pagination-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

/* ================== SECTION PUBLICATIONS - RECHERCHE ================== */
.enseignants-section {
    padding: 24px 0;
    background: #ffffff;
}

.enseignants-section .page-title h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #212121;
}

.enseignants-section .page-title .strong {
    color: #1e1e1e;
    letter-spacing: 0.5px;
}

.enseignants-section .page-title .underline {
    width: 140px;
    height: 6px;
    background: #23b15a;
    margin: 6px 0 16px 0;
}

.enseignants-section .status-bar {
    margin: 8px 0 12px;
}

.enseignants-section .status-button {
    background: #23b15a;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.enseignants-section .status-button .caret {
    font-weight: 900;
    margin-left: 6px;
}

/* ================== FORMULAIRE DE RECHERCHE ================== */
.enseignants-section .filters {
    border: 1px solid #23b15a;
    padding: 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    background-color: #fdfdfd;
}

.enseignants-section .filters form {
    display: grid;
    grid-template-columns: 1fr 1fr auto; 
    gap: 10px;
    align-items: center;
}


.enseignants-section .filter-input,
.enseignants-section .filter-select {
    height: 46px;
    border-radius: 6px;
    padding: 0 14px;
    font-size: 14px;
    border: 1px solid #d0d0d0;
    background-color: #fff;
}

.enseignants-section .submit-button {
    height: 50px;
    background: #23b15a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.enseignants-section .submit-button:hover {
    background: #1e9c4f;
}


/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
    .enseignants-section .filters form {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .enseignants-section .filters form {
        grid-template-columns: 1fr;
    }
    .enseignants-section .page-title h1 {
        font-size: 20px;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .form-recherche-progres {
    flex-direction: column; 
    align-items: stretch;
    gap: 0.8rem;
  }

  .champ-recherche-progres,
  .select-progres,
  .btn-recherche-progres {
    width: 100%;
  }
}


/* Version mobile — réduire marges/padding */
@media (max-width: 576px) {
    .pagination .page-link {
        padding: 4px 8px;
        font-size: 0.85rem;
    }
}

/* Bouton Lire plus uniforme rouge */
.publication-item .btn-lireplus {
    background-color: #dc3545; 
    border-color: #dc3545;
    color: #fff;
    padding: 6px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.publication-item .btn-lireplus:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

/* Alignement mobile optionnel */
@media (max-width: 576px) {
    .publication-item .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start;
    }
    .publication-item .btn-lireplus {
        margin-top: 8px;
    }
}



