/* ===== TABLEAU ===== */
table.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
th, td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: left;
}
th {
    background: #eee;
    cursor: pointer;
    position: relative;
}

/* Flèches de tri */
.sort-arrow {
    text-decoration: none;
    font-size: 10px;
    margin-left: 2px;
    color: #666; /* neutre */
}

.sort-arrow.active {
    color: red; /* flèche active */
}


/* Lignes alternées */
tr:nth-child(even) { background: #f9f9f9; }
tr:hover { background: #f1f1f1; }


/* ========================
   MENU DE NAVIGATION
======================== */
.nav {
    margin-bottom: 20px;
}
.nav a {
    padding: 8px 14px;
    margin-right: 5px;
    text-decoration: none;
    border-radius: 4px;
    background: #e0e0e0;
    color: #000;
    transition: background 0.3s, color 0.3s;
}
.nav a.active {
    background: #007BFF;
    color: #fff;
}

/* ========================
   BADGES POST / REVISION
======================== */
.badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 3px;
    color: #fff;
    margin-left: 5px;
    vertical-align: middle;
}
.badge.post {
    background: #28a745; /* vert pour post normal */
}
.badge.revision {
    background: #ffc107; /* jaune pour révision */
}

/* ========================
   TOOLTIP
======================== */
.tooltip {
    position: relative;
    cursor: pointer;
}
.tooltip:hover::after {
    content: attrdata-tooltip;
    position: absolute;
    top: -25px;
    left: 0;
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
}

/* ========================
   PAGINATION
======================== */
.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a, .pagination span {
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #007BFF;
}
.pagination span {
    background: #F80206;
    color: #fff;
}

/* ===== COMPTEUR DE MODIFICATIONS ===== */
td {
    vertical-align: middle;
}
td:nth-child(6) { /* Nb modifs */
    text-align: center;
    font-weight: bold;
    color: #007BFF;
}
td:nth-child(7) { /* Dernière modif */
    font-style: italic;
    color: #555;
}

