/* ==================================================
   PAGE DOCUMENTS - CONSULTATION
================================================== */
/* ==================================================
   TABLEAU ADMIN - STYLE TYPE EXCEL
================================================== */

.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
}

.admin-table th,
.admin-table td {
    border: 1px solid #ccc;
    padding: 0.6rem 0.8rem;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    background: #f1f3f5;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #adb5bd;
}

/* Lignes alternées, comme dans un tableur */
.admin-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.admin-table tbody tr:hover {
    background: #eef4ff;
}

/* Petite bordure extérieure plus marquée pour délimiter tout le tableau */
.admin-table {
    border: 2px solid #adb5bd;
}

.admin-table td .btn-secondary,
.admin-table td .btn-danger {
    display: inline-block;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    margin: 0 0.2rem 0.2rem 0;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
}

.admin-table td .btn-secondary {
    background: #eee;
    color: #333;
    border: 1px solid #ccc;
}

.admin-table td .btn-secondary:hover {
    background: #e0e0e0;
}

.admin-table td .btn-danger {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.admin-table td .btn-danger:hover {
    background: #f8d7da;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.card h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: green;
}

.card>p em {
    color: #666;
    font-size: 0.9rem;
}

.card>p em a {
    color: #2f6fed;
    text-decoration: underline;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: green
}

/* ==================================================
   LISTE DES DOCUMENTS
================================================== */

.liste-documents {
    list-style: none;
    margin: 0;
    padding: 0;
}

.liste-documents li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.liste-documents li:last-child {
    border-bottom: none;
}

.liste-documents li a {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2f6fed;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.liste-documents li a:hover {
    text-decoration: underline;
}

.description-document {
    flex-basis: 100%;
    margin: 0.2rem 0 0 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}


/* ==================================================
   BADGE VISIBILITÉ
================================================== */

.badge-prive {
    display: inline-block;
    background: #fff3cd;
    color: #8a6d00;
    border: 1px solid #f0dfa0;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    white-space: nowrap;
}


/* ==================================================
   ÉTAT VIDE
================================================== */

.card p:only-child {
    color: #777;
    font-style: italic;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 600px) {

    .card {
        padding: 1.25rem;
    }

    .card h2 {
        font-size: 1.25rem;
    }

    .liste-documents li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}