:root { --marque: #1f3a5f; --marque-clair: #e8eef6; }
body { background: #f5f7fa; }
.navbar-marque { background: var(--marque); }
.navbar-marque .nav-link, .navbar-marque .navbar-brand { color: #fff; }
.navbar-marque .nav-link.active, .navbar-marque .nav-link:hover { color: #fff; background: rgba(255,255,255,.12); border-radius: .375rem; }
.carte { background: #fff; border: 1px solid #dfe3ea; border-radius: .5rem; }
.carte-titre { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; }
.chiffre { font-size: 2rem; font-weight: 600; color: var(--marque); line-height: 1.1; }
.tag { display: inline-block; padding: .1rem .5rem; border-radius: 1rem; font-size: .75rem; color: #fff; margin: 0 .2rem .2rem 0; }
.statut-client { background: #198754; } .statut-prospect { background: #0d6efd; } .statut-partenaire { background: #6f42c1; }
.table-annuaire td, .table-annuaire th { vertical-align: middle; }
.table-annuaire tbody tr:hover { background: var(--marque-clair); }
.filtres label { font-size: .8rem; color: #6b7280; margin-bottom: .1rem; }
.filtres .form-label { font-size: .8rem; color: #6b7280; }
/* Cases à cocher d'un filtre (ex. Présence sur la page Contacts) */
.filtres .cases-filtre { max-height: 8.5rem; overflow-y: auto; border: 1px solid #dee2e6; border-radius: .375rem; padding: .25rem .5rem; background: #fff; }
.filtres .cases-filtre .form-check { margin-bottom: 0; min-height: 0; }
.filtres .cases-filtre .form-check-label { font-size: .875rem; color: inherit; margin-bottom: 0; }
.htmx-indicator { opacity: 0; transition: opacity .2s; } .htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
.chronologie { border-left: 2px solid #dfe3ea; padding-left: 1rem; }
.chronologie .element { position: relative; margin-bottom: 1rem; }
.chronologie .element::before { content: ""; position: absolute; left: -1.38rem; top: .35rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--marque); }
.qr svg { width: 220px; height: 220px; }
dl.fiche dt { font-weight: 500; color: #6b7280; font-size: .85rem; }
dl.fiche dd { margin-bottom: .6rem; }
.logo-portail { height: 36px; width: auto; max-width: 160px; object-fit: contain; }

/* Recherche SIRENE */
.sirene { background: #f6f9fd; }
.sirene-liste { max-height: 22rem; overflow-y: auto; }
.sirene-rempli { background-color: #fff8db !important; }

/* Menu Outils : sous-menus Fiabilisation et Doublons, ouverts à droite (survol ou clic) ; dépliés sur petit écran. */
.menu-outils .sous-menu { position: relative; }
.menu-outils .sous-menu-titre { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.menu-outils .sous-menu-titre::after { content: "›"; font-size: 1.1em; line-height: 1; }
@media (min-width: 992px) {
  .menu-outils .sous-menu > .dropdown-menu { top: -.5rem; left: 100%; margin-left: -1px; }
  .menu-outils .sous-menu:hover > .dropdown-menu,
  .menu-outils .sous-menu.ouvert > .dropdown-menu { display: block; }
}
@media (max-width: 991.98px) {
  .menu-outils .sous-menu-titre::after { content: ""; }
  .menu-outils .sous-menu-titre { font-weight: 600; pointer-events: none; }
  .menu-outils .sous-menu > .dropdown-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 1rem; }
}
/* Liste déroulante à choix multiples sur une ligne (ex. Taille INSEE, page Contacts ; voir menu.js) */
.liste-multiple .form-select { background-color: #fff; }
.liste-multiple-menu { max-height: 20rem; overflow-y: auto; font-size: .875rem; }
.liste-multiple-menu .coche { display: inline-block; width: 1em; color: #198754; font-weight: 700; }
.liste-multiple-menu .dropdown-item.choisi { font-weight: 600; }
