/* =========================================================
   HIRELLO SEO — Custom styles (Orbiter theme override)
   ========================================================= */

/* ---- Avatar initiales ---- */
.hirello-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(76, 132, 255, 0.15);
    color: #4c84ff;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ---- Navigation — items directs sans sous-menu ---- */
.vertical-menu > li.active > a {
    background-color: rgba(76, 132, 255, 0.1);
    color: #4c84ff !important;
    border-radius: 4px;
}

.vertical-menu > li.active > a img {
    filter: invert(39%) sepia(84%) saturate(649%) hue-rotate(201deg) brightness(100%) contrast(101%);
}

/* Items désactivés dans la nav (phases futures) */
.vertical-menu > li.disabled > a {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* ---- Boutons icon ---- */
.btn-icon {
    padding: 0.25rem 0.45rem;
    line-height: 1.4;
}

.btn-icon .feather {
    font-size: 14px;
}

/* ---- DataTables — intégration Orbiter ---- */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.35rem 0.65rem;
    margin-left: 0.5rem;
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin: 0 0.5rem;
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #4c84ff !important;
    color: #fff !important;
    border-color: #4c84ff !important;
    border-radius: 4px;
}

table.dataTable tbody td {
    vertical-align: middle;
}

/* ---- Toasts ---- */
.toast {
    min-width: 300px;
    font-size: 0.875rem;
}

/* ---- Formulaires ---- */
.form-label.required::after {
    content: " *";
    color: #ff4d4d;
}

/* ---- Badges Orbiter manquants ---- */
.badge-info-inverse {
    background-color: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
}

/* ---- HTMX loading indicator ---- */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { display: inline-block; }

.htmx-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(0,0,0,.1);
    border-top-color: #4c84ff;
    border-radius: 50%;
    animation: htmx-spin .7s linear infinite;
    display: inline-block;
    vertical-align: middle;
}
@keyframes htmx-spin { to { transform: rotate(360deg); } }

/* ---- Contenu éditeur SEO ---- */
.content-body {
    font-size: 1rem;
    line-height: 1.75;
    max-width: 72ch;
}
.content-body h1, .content-body h2, .content-body h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}
.content-body p { margin-bottom: 1rem; }

.annotated-section {
    border-left: 3px solid #ffc107;
    padding-left: 0.75rem;
    background: rgba(255, 193, 7, 0.05);
    border-radius: 0 4px 4px 0;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .card[style*="sticky"] {
        position: relative !important;
        top: 0 !important;
    }
}
.dataTables_wrapper .dataTables_length select {
    padding: 0.25rem 1.35rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(212, 216, 222, 0.01)!important;
}