/**
 * Robots.txt Checker : styles de l'outil public.
 *
 * Le theme ne charge pas Bootstrap : ce fichier fournit le sous-ensemble
 * necessaire (grille, card, boutons, formulaires, onglets, collapse, table,
 * badges, spinner, utilitaires) + les composants specifiques de l'outil,
 * tout scope sous .rtc pour ne pas interferer avec le reste du theme.
 * Les couleurs utilisent les variables de charte (style.css) et s'adaptent
 * donc au theme clair/sombre.
 */

/* Variables d'appoint non definies globalement par le theme. */
.rtc {
    --rtc-text-primary: var(--brand-anthracite, #0f172a);
    --rtc-score-high: var(--color-good, #22c55e);
    --rtc-score-mid: var(--brand-gold, #f97316);
    --rtc-score-low: #ef4444;
}

/* ------------------------------------------------------------------ */
/* Base : sous-ensemble Bootstrap reimplemente (scope .rtc)           */
/* ------------------------------------------------------------------ */
.rtc *,
.rtc *::before,
.rtc *::after {
    box-sizing: border-box;
}

.rtc .row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.rtc .row.g-2 { gap: 0.5rem; }
.rtc .row.g-3 { gap: 1rem; }
.rtc .col { flex: 1 1 0; min-width: 0; }
.rtc .col-auto { flex: 0 0 auto; }
.rtc .align-items-end { align-items: flex-end; }

/* Cartes */
.rtc .card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 76, 76, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}
.rtc .card-header {
    background: linear-gradient(135deg, rgba(102, 178, 178, 0.04) 0%, transparent 60%);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}
.rtc .card-header h6 { color: var(--brand-dark); margin: 0; font-size: 1rem; }
.rtc .card-body { padding: 1.25rem; }
.rtc .card-body.p-0 { padding: 0; }

/* Onglets */
.rtc .nav-tabs {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid var(--border-color);
}
.rtc .nav-item { list-style: none; }
.rtc .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    border-radius: 6px 6px 0 0;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s, border-color 0.2s;
}
.rtc .nav-link:hover { color: var(--brand-dark); border-bottom-color: var(--brand-teal-light); }
.rtc .nav-link.active {
    color: var(--brand-dark);
    font-weight: 600;
    border-bottom-color: var(--brand-teal);
}

/* Onglets / collapse : visibilite */
.rtc .tab-pane { display: none; }
.rtc .tab-pane.active { display: block; }
.rtc .collapse { display: none; }
.rtc .collapse.show { display: block; }

/* Formulaires */
.rtc .form-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}
.rtc .form-label-sm { font-size: 0.8rem; }
.rtc .form-control,
.rtc .form-select {
    display: block;
    width: 100%;
    padding: 0.4rem 0.75rem;
    font-size: 14px;
    line-height: 1.5;
    color: var(--brand-anthracite);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.rtc .form-control-sm,
.rtc .form-select-sm { padding: 0.25rem 0.5rem; font-size: 13px; }
.rtc .form-control:focus,
.rtc .form-select:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 0.2rem rgba(102, 178, 178, 0.25);
}
.rtc textarea.form-control { resize: vertical; min-height: 80px; }
.rtc .font-monospace {
    font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
}

/* Boutons */
.rtc .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 0.5rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.rtc .btn:disabled { opacity: 0.6; cursor: default; }
.rtc .btn-sm { padding: 0.3rem 0.7rem; font-size: 0.82rem; }
.rtc .btn-primary { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.rtc .btn-primary:hover,
.rtc .btn-primary:focus { background: #006666; border-color: #006666; box-shadow: 0 2px 6px rgba(0, 76, 76, 0.2); }
.rtc .btn-outline-secondary { background: #fff; border-color: var(--border-color); color: var(--text-secondary); }
.rtc .btn-outline-secondary:hover { border-color: var(--brand-dark); color: var(--brand-dark); }
.rtc .btn-outline-danger { background: #fff; border-color: #fecaca; color: #b91c1c; }
.rtc .btn-outline-danger:hover { background: #fee2e2; }
.rtc .btn-success { background: var(--color-good, #16a34a); border-color: var(--color-good, #16a34a); color: #fff; }

/* Badges */
.rtc .badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 4px;
    vertical-align: middle;
}
.rtc .bg-secondary { background: #64748b; color: #fff; }
.rtc .bg-warning { background: var(--brand-gold); }
.rtc .bg-teal { background: var(--brand-teal); color: #fff; }
.rtc .text-dark { color: var(--brand-anthracite); }

/* Table */
.rtc .table-responsive { overflow-x: auto; }
.rtc .table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 0; }
.rtc .table thead th {
    background: var(--bg-card-alt);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    white-space: nowrap;
}
.rtc .table tbody td {
    padding: 0.65rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}
.rtc .table.table-hover tbody tr:hover { background: var(--bg-card-alt); }
.rtc .table tbody tr:last-child td { border-bottom: none; }

/* Alert */
.rtc .alert { padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.9rem; }
.rtc .alert-danger { background: #fee2e2; border: 1px solid #fecaca; color: #991b1b; }

/* Spinner */
.rtc .spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: rtc-spin 0.7s linear infinite;
    vertical-align: -0.125em;
}
.rtc .spinner-border-sm { width: 0.85rem; height: 0.85rem; border-width: 2px; }
@keyframes rtc-spin { to { transform: rotate(360deg); } }

/* Utilitaires */
.rtc .d-flex { display: flex; }
.rtc .justify-content-between { justify-content: space-between; }
.rtc .align-items-center { align-items: center; }
.rtc .gap-2 { gap: 0.5rem; }
.rtc .fw-bold { font-weight: 700; }
.rtc .text-muted { color: var(--text-muted); }
.rtc .small { font-size: 0.85em; }
.rtc .bg-transparent { background: transparent; }
.rtc .border-warning { border-color: var(--brand-gold) !important; }
.rtc .position-relative { position: relative; }
.rtc .mb-0 { margin-bottom: 0; }
.rtc .mb-1 { margin-bottom: 0.25rem; }
.rtc .mb-2 { margin-bottom: 0.5rem; }
.rtc .mb-3 { margin-bottom: 1rem; }
.rtc .mb-4 { margin-bottom: 1.5rem; }
.rtc .mt-1 { margin-top: 0.25rem; }
.rtc .mt-2 { margin-top: 0.5rem; }
.rtc .mt-3 { margin-top: 1rem; }
.rtc .me-1 { margin-right: 0.25rem; }
.rtc .me-2 { margin-right: 0.5rem; }
.rtc .ms-1 { margin-left: 0.25rem; }
.rtc .ms-2 { margin-left: 0.5rem; }
.rtc .ms-auto { margin-left: auto; }

/* ------------------------------------------------------------------ */
/* Layout specifique de l'outil                                       */
/* ------------------------------------------------------------------ */
.rtc-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 992px) {
    .rtc-layout { grid-template-columns: 1fr; }
}

.rtc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.rtc-kpi-grid > .col-md-3 { min-width: 0; }
@media (max-width: 768px) {
    .rtc-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Intertitres soulignes d'or (meme style que les outils JSON-LD / robots.txt IA) */
.rtc .rtc-section-titre {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 2rem 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2.5px solid var(--brand-gold);
    scroll-margin-top: calc(var(--navbar-height, 110px) + 1rem);
}
.rtc .rtc-section-titre > .bi:first-child { color: var(--brand-teal); }
.rtc .rtc-section-titre .rtc-titre-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: var(--brand-teal);
    border-radius: 2rem;
    padding: 0.1em 0.6em;
}
.rtc .rtc-section-collapsible { cursor: pointer; }
.rtc .rtc-section-chevron {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.rtc .rtc-section-titre[aria-expanded="true"] .rtc-section-chevron { transform: rotate(180deg); }

/* Barre d'outils du bloc resultats (badge + copier/csv + filtres) */
.rtc .rtc-resultats-barre {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.rtc .rtc-resultats-barre .rtc-barre-actions { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; }

/* Bloc d'intro (comment ca marche + fonctionnalites) */
.rtc .rtc-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
@media (max-width: 768px) { .rtc .rtc-intro-grid { grid-template-columns: 1fr; } }
.rtc .rtc-intro-titre { font-weight: 700; color: var(--brand-dark); font-size: 0.95rem; margin: 0 0 0.5rem; }
.rtc .rtc-intro-grid ul { padding-left: 1.2rem; margin: 0; font-size: 0.88rem; line-height: 1.6; color: var(--text-secondary); }
.rtc .rtc-intro-grid li { margin-bottom: 0.35rem; }

/* Config : bouton de repli (legacy) */
.rtc .config-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}

/* ------------------------------------------------------------------ */
/* Composants specifiques                                             */
/* ------------------------------------------------------------------ */
/* KPI */
.rtc .kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 76, 76, 0.06);
    height: 100%;
}
.rtc .kpi-card .kpi-value { font-size: 2rem; font-weight: 700; color: var(--brand-anthracite); line-height: 1.2; }
.rtc .kpi-card .kpi-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}
.rtc .kpi-card.kpi-green .kpi-value { color: var(--rtc-score-high); }
.rtc .kpi-card.kpi-red .kpi-value { color: var(--rtc-score-low); }
.rtc .kpi-card.kpi-teal .kpi-value { color: var(--brand-teal); }
.rtc .kpi-card.kpi-clickable { cursor: pointer; transition: box-shadow 0.2s, border-color 0.2s; }
.rtc .kpi-card.kpi-clickable:hover { border-color: var(--brand-teal); box-shadow: 0 2px 12px rgba(102, 178, 178, 0.2); }

/* Tableau : cellules URL + copie */
.rtc .url-cell { max-width: 350px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; }
.rtc .url-cell code { color: var(--brand-dark); font-size: 12.5px; background: none; }
.rtc .btn-copier-url {
    display: none;
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    font-size: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: color 0.15s;
}
.rtc .btn-copier-url:hover { color: var(--brand-dark); }
.rtc .url-cell:hover .btn-copier-url { display: inline-block; }

/* Colonnes triables */
.rtc .sortable { cursor: pointer; user-select: none; transition: background 0.15s; }
.rtc .sortable:hover { background: rgba(102, 178, 178, 0.08); }
.rtc .sortable .sort-icon { font-size: 0.65rem; opacity: 0.3; transition: opacity 0.15s; }
.rtc .sortable:hover .sort-icon { opacity: 0.6; }
.rtc .sortable.sort-asc .sort-icon,
.rtc .sortable.sort-desc .sort-icon { opacity: 1; }
.rtc .sortable.sort-asc .sort-icon::before { content: "\F128"; }
.rtc .sortable.sort-desc .sort-icon::before { content: "\F120"; }

/* Badges statut */
.rtc .badge-autorise { background: #d1fae5; color: #065f46; font-weight: 600; font-size: 0.75rem; padding: 0.35em 0.75em; border-radius: 4px; }
.rtc .badge-bloque { background: #fee2e2; color: #991b1b; font-weight: 600; font-size: 0.75rem; padding: 0.35em 0.75em; border-radius: 4px; }
.rtc .regle-code { color: #1e293b; background: #f1f5f9; padding: 0.15em 0.4em; border-radius: 3px; font-size: 12px; }

/* Lisibilite du tableau (fond clair force, y compris dark mode) */
.rtc #tableResultats code { color: #1e293b; background: #f1f5f9; padding: 0.15em 0.4em; border-radius: 3px; }
.rtc #tableResultats td { color: #334155; }
.rtc #tableResultats .text-muted { color: #64748b; }

/* Collapse indicateur */
.rtc .collapse-indicator { font-size: 0.85rem; color: var(--text-muted); transition: transform 0.2s; display: inline-block; }
.rtc [aria-expanded="true"] .collapse-indicator { transform: rotate(180deg); }

/* Parsing */
.rtc .groupe-parse { background: var(--bg-card-alt); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.rtc .groupe-header { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border-color); background: rgba(102, 178, 178, 0.04); font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.rtc .badge-ua { background: var(--brand-teal-light); color: var(--brand-dark); font-weight: 600; font-size: 0.72rem; padding: 0.25em 0.6em; border-radius: 4px; font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace; }
.rtc .groupe-regles { padding: 0.5rem 0; }
.rtc .regle-ligne { padding: 0.3rem 1rem; font-size: 0.82rem; display: flex; align-items: center; gap: 0.5rem; }
.rtc .regle-ligne:hover { background: rgba(0, 0, 0, 0.02); }
.rtc .regle-ligne code { font-size: 0.78rem; color: var(--brand-anthracite); }
.rtc .regle-type { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.15em 0.5em; border-radius: 3px; min-width: 70px; text-align: center; flex-shrink: 0; }
.rtc .type-allow { background: #d1fae5; color: #065f46; }
.rtc .type-disallow { background: #fee2e2; color: #991b1b; }
.rtc .type-sitemap { background: var(--brand-gold-light); color: #92400e; }
.rtc .type-non-standard { background: #e8e8e8; color: #555; }

/* Fetch status */
.rtc #fetchStatus { padding: 0.4rem 0.75rem; border-radius: 4px; font-size: 0.82rem; }
.rtc #fetchStatus.status-loading { background: var(--brand-teal-light); color: var(--brand-dark); }
.rtc #fetchStatus.status-success { background: #d1fae5; color: #065f46; }
.rtc #fetchStatus.status-error { background: #fee2e2; color: #991b1b; }
.rtc #fetchStatus.status-warning { background: var(--brand-gold-light); color: #92400e; }

/* Anomalies */
.rtc .anomalie-item { padding: 0.65rem 1rem; border-radius: 6px; margin-bottom: 0.5rem; font-size: 0.85rem; display: flex; align-items: flex-start; gap: 0.25rem; }
.rtc .anomalie-item:last-child { margin-bottom: 0; }
.rtc .anomalie-critique { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.rtc .anomalie-attention { background: var(--brand-gold-light); color: #92400e; border-left: 4px solid var(--brand-gold); }
.rtc .anomalie-info { background: var(--brand-teal-light); color: var(--brand-dark); border-left: 4px solid var(--brand-teal); }
.rtc .badge-niveau { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2em 0.5em; border-radius: 3px; flex-shrink: 0; }
.rtc .badge-critique { background: #ef4444; color: #fff; }
.rtc .badge-attention { background: var(--brand-gold); color: #fff; }
.rtc .badge-info { background: var(--brand-teal); color: #fff; }

/* Panneau d'aide */
.rtc .config-help-panel { background: var(--brand-teal-light); border-left: 3px solid var(--brand-gold); border-radius: 0.75rem; padding: 1.25rem; font-size: 0.85rem; line-height: 1.6; }
.rtc .config-help-panel ul { padding-left: 1.25rem; margin: 0 0 0.5rem; }
.rtc .config-help-panel li { margin-bottom: 0.35rem; }
.rtc .config-help-panel hr { border: none; border-top: 1px solid rgba(0, 76, 76, 0.1); margin: 0.75rem 0; }
.rtc .help-title { font-weight: 600; color: var(--brand-dark); font-size: 0.9rem; }
.rtc .help-title[role="button"] { cursor: pointer; }
.rtc .help-title[role="button"]:hover { color: var(--brand-teal); }
.rtc .help-chevron { font-size: 0.7rem; transition: transform 0.3s; display: inline-block; }
.rtc .help-title[aria-expanded="true"] .help-chevron { transform: rotate(180deg); }

/* Optimisations */
.rtc .card-optimisations { border-color: var(--brand-teal); }
.rtc .card-optimisations .card-header { background: linear-gradient(135deg, rgba(102, 178, 178, 0.08) 0%, transparent 60%); border-bottom-color: var(--brand-teal); }
.rtc .optimisation-item { background: var(--bg-card-alt); border: 1px solid var(--border-color); border-left: 4px solid var(--brand-teal); border-radius: 6px; padding: 0.75rem 1rem; margin-bottom: 0.75rem; }
.rtc .optimisation-item:last-of-type { margin-bottom: 0; }
.rtc .optimisation-header { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.rtc .optimisation-message { font-size: 0.85rem; color: var(--brand-anthracite); }
.rtc .badge-opt { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.2em 0.55em; border-radius: 3px; flex-shrink: 0; color: #fff; }
.rtc .badge-opt-regroupement { background: var(--brand-teal); }
.rtc .badge-opt-wildcard { background: var(--brand-gold); }
.rtc .badge-opt-englobee { background: #94a3b8; }
.rtc .badge-opt-vide { background: #f97316; }
.rtc .badge-opt-ancre { background: #a855f7; }
.rtc .badge-opt-sans-effet { background: #ef4444; }
.rtc .badge-opt-default { background: var(--brand-teal); }
.rtc .optimisation-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.65rem; }
.rtc .code-avant, .rtc .code-apres { border-radius: 6px; overflow: hidden; }
.rtc .code-avant { background: #fef2f2; border: 1px solid #fecaca; }
.rtc .code-apres { background: #f0fdf4; border: 1px solid #bbf7d0; }
.rtc .code-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.25rem 0.65rem; }
.rtc .code-avant .code-label { background: #fecaca; color: #991b1b; }
.rtc .code-apres .code-label { background: #bbf7d0; color: #166534; }
.rtc .code-avant pre, .rtc .code-apres pre { margin: 0; padding: 0.5rem 0.65rem; font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace; font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; color: #1e293b; }
.rtc .robots-optimise-wrapper { border-top: 1px solid var(--border-color); padding-top: 1rem; }
.rtc .robots-optimise { background: var(--bg-card-alt); border: 1px solid var(--border-color); border-radius: 8px; padding: 1rem; margin: 0; font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace; font-size: 12.5px; line-height: 1.6; max-height: 400px; overflow-y: auto; white-space: pre-wrap; word-wrap: break-word; color: var(--brand-anthracite); }
@media (max-width: 768px) { .rtc .optimisation-diff { grid-template-columns: 1fr; } }

/* Coloration syntaxique (fond clair force pour la lisibilite en dark) */
.rtc .textarea-wrapper { position: relative; overflow: hidden; border-radius: 4px; background: #fff; color-scheme: light; }
.rtc .textarea-wrapper textarea { position: relative; z-index: 2; background: transparent !important; color: transparent !important; caret-color: #333 !important; resize: vertical; border-color: #e2e8f0 !important; color-scheme: light; }
.rtc .coloration-syntaxique { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none; margin: 0; padding: 0.4rem 0.75rem; font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace; font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; overflow: hidden; border: 1px solid transparent; background: #fff; color: #333; color-scheme: light; }
.rtc .hl-commentaire { color: #94a3b8; font-style: italic; }
.rtc .hl-user-agent { color: #0e7490; font-weight: 600; }
.rtc .hl-allow { color: #16a34a; font-weight: 600; }
.rtc .hl-disallow { color: #dc2626; font-weight: 600; }
.rtc .hl-sitemap { color: #d97706; font-weight: 600; }

/* Drag & drop */
.rtc .textarea-dragover { outline: 3px dashed var(--brand-teal); outline-offset: -3px; background: var(--brand-teal-light); }
.rtc .textarea-dragover textarea { pointer-events: none; }

/* Filtres + divers */
.rtc #barreFiltre { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border-color); }
.rtc #filtreRecherche { min-width: 200px; }
.rtc #raccourciHint { font-size: 0.75rem; color: var(--text-muted); }
.rtc .ua-supp-row { display: flex; gap: 0.25rem; align-items: center; }
.rtc .ua-supp-row .ua-supp-select { flex: 1 1 auto; }

@media (max-width: 768px) {
    .rtc .url-cell { max-width: 200px; }
    .rtc .kpi-card .kpi-value { font-size: 1.5rem; }
    .rtc .table { font-size: 13px; }
    .rtc .regle-ligne { flex-wrap: wrap; }
    .rtc #raccourciHint { display: none; }
}
