/* POC Référentiel MCT - Styles */

:root {
    --cae-blue: #003366;
    --cae-light: #e8f0fe;
}

body {
    font-size: 0.9rem;
}

.navbar {
    background-color: var(--cae-blue) !important;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Search hero */
.search-hero {
    background: linear-gradient(135deg, var(--cae-blue) 0%, #005599 100%);
    color: white;
    padding: 2.5rem 0;
}

.search-hero .form-control-lg {
    font-size: 1.1rem;
}

/* Badges statut */
.badge-valide { background-color: #198754; }
.badge-en_etude { background-color: #ffc107; color: #333; }
.badge-obsolete { background-color: #6c757d; }

/* Résultats */
.results-table th { cursor: pointer; user-select: none; white-space: nowrap; }
.results-table th:hover { background-color: #f8f9fa; }
.results-table tr { cursor: pointer; }
.results-table tbody tr:hover { background-color: var(--cae-light); }

/* Filtres avancés */
.advanced-filters {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.2rem;
}

/* Detail sections */
.detail-section {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.detail-section h5 {
    color: var(--cae-blue);
    border-bottom: 2px solid var(--cae-blue);
    padding-bottom: 0.4rem;
    margin-bottom: 0.8rem;
}

/* Historique timeline */
.histo-entry {
    border-left: 3px solid var(--cae-blue);
    padding-left: 1rem;
    margin-bottom: 0.8rem;
}

.histo-entry .source-badge {
    font-weight: 600;
}

/* Conflits */
#section-conflits h5 {
    color: #856404;
    border-bottom-color: #ffc107;
}

.conflit-entry .table {
    font-size: 0.85rem;
}

/* Pagination compacte */
.pagination-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem 0;
}

.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: #fff;
    color: var(--cae-blue);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
    padding: 0;
}

.pg-btn:hover:not(:disabled) {
    background-color: var(--cae-light);
    border-color: var(--cae-blue);
}

.pg-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pg-info {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.875rem;
    color: #495057;
    white-space: nowrap;
}

.pg-input {
    width: 3.2rem;
    height: 2rem;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    padding: 0 0.25rem;
    -moz-appearance: textfield;
}

.pg-input::-webkit-outer-spin-button,
.pg-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pg-input:focus {
    outline: none;
    border-color: var(--cae-blue);
    box-shadow: 0 0 0 0.15rem rgba(0, 51, 102, 0.2);
}

/* Edit page dynamic lists */
.dynamic-list .list-item {
    background-color: #f8f9fa;
    border-radius: 0.4rem;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
}
