/* Thème « verre » (branche design-verre, 08/11/2026).
 *
 * Alessandro voulait une app « vraiment différente des autres » sans que ça fasse
 * trop : le verre habille ce qui entoure le travail (barre latérale, barre du haut,
 * cartes de l'accueil, filtres, boutons), les TABLEAUX restent sur fond presque
 * opaque pour se lire comme avant. Sans flou (backdrop-filter) : le fond est fixe,
 * le flou n'apportait presque rien et coûtait au défilement (08/11). Tout est sous html.theme-verre : retirer la
 * classe rend l'app d'origine, rien d'autre n'est modifié. Pas de mode sombre. */

html.theme-verre {
  --verre: rgba(255, 255, 255, .72);
  --verre-fort: rgba(255, 255, 255, .82);
  --verre-bord: rgba(255, 255, 255, .95);
  --verre-ombre: 0 1px 2px rgba(120, 60, 20, .06), 0 10px 30px rgba(120, 60, 20, .10), inset 0 1px 0 #fff;
  --tableau: rgba(255, 255, 255, .9);
}

/* Fond chaud : des taches de lumière fixes, posées SOUS tout l'écran de l'app
   (un calque fixe, car le fond du body est réécrit par d'autres règles) */
html.theme-verre #recruteur-search { position: relative; isolation: isolate; }
html.theme-verre #recruteur-search::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  /* Fond pêche retiré le 10/11 (« ça fait too much ») : le fond neutre d'origine. */
  background: #F4F2EE;
}
html.theme-verre .rec-main { background: transparent !important; }
html.theme-verre .app-view { background: transparent !important; }

/* Barre latérale */
html.theme-verre .rec-sidebar-inner,
html.theme-verre .rec-sidebar-top,
html.theme-verre .rec-sidebar-footer { background: transparent !important; }
html.theme-verre .rec-sidebar {
  background: var(--verre) !important;
  border-right: 1px solid var(--verre-bord) !important;
  box-shadow: 4px 0 30px rgba(120, 60, 20, .06);
}

/* Barre du haut et recherche */
/* Barre du haut flottante (09/11, Alessandro : « elle n'est plus rattachée à la
   barre latérale, elle est carrée à gauche, c'est moche ») : même verre, même
   arrondi et mêmes marges de 10 px que la barre latérale, alignée sur son haut. */
html.theme-verre .topbar {
  top: 10px !important; margin: 10px 10px 0 0 !important; padding: 8px 10px 8px 12px !important;
  border-radius: 22px !important; border: 1px solid var(--verre-bord) !important;
  background: rgba(253, 248, 243, .96) !important;
  box-shadow: 0 1px 2px rgba(120, 60, 20, .06), 0 10px 30px -12px rgba(120, 60, 20, .18), inset 0 1px 0 #fff !important;
}
html.theme-verre .topbar-search,
html.theme-verre #topbar-search-wrap {
  background: var(--verre-fort) !important;
  border: 1px solid var(--verre-bord) !important;
  border-radius: 14px !important;
}

/* Cartes de l'accueil et blocs en général */
html.theme-verre #view-dashboard .app-card,
html.theme-verre #view-dashboard .wg-card,
html.theme-verre #view-dashboard .grid-stack-item-content,
html.theme-verre .app-card,
html.theme-verre .stat-card,
html.theme-verre .kpi-card,
html.theme-verre .dem-carte {
  background: var(--verre) !important;
  border: 1px solid var(--verre-bord) !important;
  box-shadow: var(--verre-ombre) !important;
  border-radius: 22px !important;
}

/* Filtres rapides (puces) et onglets */
html.theme-verre .cand-sv-chip {
  background: var(--verre-fort) !important;
  border: 1px solid var(--verre-bord) !important;
}
html.theme-verre .cand-sv-chip.active {
  background: #FF6B35 !important; border-color: #FF6B35 !important; color: #fff !important;
  box-shadow: 0 8px 22px rgba(255, 107, 53, .3);
}
html.theme-verre .ats-tab.active { background: var(--verre-fort) !important; border-radius: 12px 12px 0 0; }

/* Boutons secondaires */
html.theme-verre .btn-secondary {
  background: var(--verre-fort) !important;
  border: 1px solid var(--verre-bord) !important;
}

/* Barre de recherche des listes */
html.theme-verre .app-view input[type="search"],
html.theme-verre .app-view input[type="text"][placeholder*="poste"],
html.theme-verre .app-view input[placeholder*="Nom"] {
  background: var(--verre-fort) !important;
  border: 1px solid var(--verre-bord) !important;
}

/* TABLEAUX : fond presque opaque, lecture inchangée */
html.theme-verre .data-table,
html.theme-verre #candidats-liste,
html.theme-verre .app-view table {
  background: var(--tableau) !important;
}
html.theme-verre #candidats-liste,
html.theme-verre .app-view .table-wrap,
html.theme-verre .app-view [class*="table-container"] {
  border-radius: 20px !important;
  border: 1px solid #fff !important;
  box-shadow: 0 10px 34px rgba(120, 60, 20, .08) !important;
  overflow: hidden;
}
html.theme-verre .data-table thead th,
html.theme-verre .app-view table thead th {
  background: rgba(251, 243, 234, .85) !important;
}

/* Les blocs internes d'une carte ne remettent pas un second fond blanc */
html.theme-verre #view-dashboard .app-card [class*="head"],
html.theme-verre #view-dashboard .app-card [class*="titre"],
html.theme-verre #view-dashboard .app-card [class*="liste"] > *,
html.theme-verre #view-dashboard .grid-stack-item-content > * { background: transparent !important; }

/* ── Tout le reste de l'app en verre (08/11, « tout ce qui n'est pas liste ») ──
   Les fonds de surface communs deviennent translucides : fiches, fenêtres,
   panneaux, pipeline, messagerie, paramètres, KPI héritent du verre d'un coup.
   Les listes et tableaux sont reforcés en opaque plus bas. */
html.theme-verre {
  --surface-solid: #FFFCF9; /* opaque : fond des fenêtres et menus construits en JS (09/11, fenêtre « Partager la fiche » transparente) */
  --surface: rgba(255, 255, 255, .64);
}
/* Fenêtres et panneaux latéraux : un peu plus opaques, ils passent au-dessus du contenu */
html.theme-verre .modal,
html.theme-verre .modal-content,
html.theme-verre .modal-box,
html.theme-verre [class*="modal-dialog"],
html.theme-verre [class*="drawer"],
html.theme-verre [class*="panneau"],
html.theme-verre [class*="-panel"]:not(table):not(tbody) {
  border-color: var(--verre-bord) !important;
}
html.theme-verre .modal-content,
html.theme-verre .modal-box,
html.theme-verre [class*="modal-dialog"] {
  background: rgba(253, 248, 243, .9) !important;
  box-shadow: 0 30px 80px rgba(90, 45, 15, .22), inset 0 1px 0 #fff !important;
}
/* Menus déroulants et listes de suggestions : presque opaques pour rester lisibles */
html.theme-verre .topbar-dropdown,
html.theme-verre [class*="dropdown-menu"],
html.theme-verre [class*="-menu"]:not(.rec-nav):not(nav),
html.theme-verre [role="menu"],
html.theme-verre [role="listbox"] {
  background: rgba(255, 252, 249, .96) !important;
}
/* Champs de saisie : fond blanc net */
html.theme-verre input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html.theme-verre select,
html.theme-verre textarea {
  background-color: rgba(255, 255, 255, .85);
}
/* LISTES : on reforce l'opaque, quel que soit l'écran */
html.theme-verre table,
html.theme-verre .data-table,
html.theme-verre #candidats-liste,
html.theme-verre .app-view table tbody tr,
html.theme-verre .app-view table tbody td {
  background-color: rgba(255, 255, 255, .92);
}

/* ── Oublis relevés à l'audit écran par écran (08/11) ── */
/* Le fond chaud aussi derrière les fenêtres (fiches, job), qui vivent hors de l'écran app */
html.theme-verre,
html.theme-verre body {
  background: #F4F2EE !important;
}
html.theme-verre .v2-light-view { background: transparent !important; }
/* Fiche candidat */
html.theme-verre .fc-col-g { background: rgba(255, 250, 245, .55) !important; }
html.theme-verre .fc-card {
  background: var(--verre) !important; border: 1px solid var(--verre-bord) !important;
  box-shadow: var(--verre-ombre) !important; border-radius: 18px !important;
}
/* Fiche job */
html.theme-verre .dossier-detail-panel { background: rgba(253, 248, 243, .9) !important; }
html.theme-verre .dossier-detail-header { background: rgba(255, 255, 255, .5) !important; border-bottom: 1px solid var(--verre-bord) !important; }
html.theme-verre .dossier-detail-panel [style*="background:#FAFAFA"],
html.theme-verre .dossier-detail-panel [style*="background: #FAFAFA"],
html.theme-verre .brief-drop-zone { background: rgba(255, 255, 255, .55) !important; }
/* Liste des jobs : le panneau autour du tableau */
html.theme-verre .jobsv2-panel { background: var(--verre) !important; border: 1px solid var(--verre-bord) !important; }
/* KPI et KPI équipe */
html.theme-verre .kpi-panel,
html.theme-verre .wg-card,
html.theme-verre .hz-section,
html.theme-verre .kpio-mini {
  background: var(--verre) !important; border: 1px solid var(--verre-bord) !important;
  box-shadow: var(--verre-ombre) !important;
}
html.theme-verre .hz-carte { background: rgba(255, 255, 255, .55) !important; }
/* Messagerie interne (dock en bas à droite) */
html.theme-verre #chat-dock { background: rgba(253, 248, 243, .94) !important; border: 1px solid var(--verre-bord) !important; }
html.theme-verre .cd-convs { background: rgba(255, 255, 255, .45) !important; }
html.theme-verre .cd-boite { background: rgba(255, 255, 255, .7) !important; }
/* Aperçu de CV */
html.theme-verre #cv-peek-panel { background: rgba(253, 248, 243, .96) !important; }
/* Bandeau « deals », carte WhatsApp */
html.theme-verre .deal-prompt,
html.theme-verre #thomas-wa-card { background: var(--verre) !important; border-color: var(--verre-bord) !important; }
/* Règles d'origine plus spécifiques (.v2-light-view …) : on monte d'un cran */
html.theme-verre .app-view.v2-light-view { background: transparent !important; }
html.theme-verre .v2-light-view .jobsv2-panel { background: var(--verre) !important; border: 1px solid var(--verre-bord) !important; }
html.theme-verre #view-parametres .app-card,
html.theme-verre #thomas-wa-card.app-card { background: var(--verre) !important; border: 1px solid var(--verre-bord) !important; }
/* Voile de transition (fondu entre pages) : couleur du fond chaud */
html.theme-verre #pl-fondu { background: #FBF0E6 !important; }
html.theme-verre #view-dossiers.app-view,
html.theme-verre #view-clients.app-view,
html.theme-verre #recruteur-search { background: transparent !important; }
html.theme-verre #view-dossiers .jobsv2-panel,
html.theme-verre #view-clients .jobsv2-panel { background: var(--verre) !important; border: 1px solid var(--verre-bord) !important; }

/* Analyse UI/UX du 09/11 : liens orange plus foncés (contraste ≥ 4,5:1 sur le fond
   chaud), l'orange vif reste aux boutons pleins et aux accents. */
html.theme-verre .rec-main a:not([class*="btn"]):not([class*="pill"]),
html.theme-verre .btn-link,
html.theme-verre .dem-carte a,
html.theme-verre .dem-ligne [class*="action"],
html.theme-verre .dem-ligne button:not([class*="btn-primary"]) { color: #C2410C !important; }
/* Petits libellés posés directement sur le fond : un cran plus foncés */
html.theme-verre .app-view > .app-header .app-subtitle,
html.theme-verre .app-view [class*="eyebrow"],
html.theme-verre .app-view [class*="-count"]:not(.cand-sv-chip-count):not(.ats-bulk-count) { color: #4A4542 !important; }

/* Barre latérale FLOTTANTE (09/11, Alessandro : « flottante, avec des arrondis et
   pas collée à la fenêtre », « enlève le liseré orange »). Le panneau visible est
   .rec-sidebar-inner (64 px, 220 px dépliée) ; les raccourcis du bas (#chat-tabs)
   font partie du même panneau. La colonne réserve 10 px de marge autour. */
html.theme-verre { --sb-marge: 10px; }
html.theme-verre .rec-sidebar { width: calc(64px + 2 * var(--sb-marge)) !important; background: transparent !important; border: none !important; box-shadow: none !important; }
html.theme-verre body.sidebar-etendue .rec-sidebar { width: calc(220px + 2 * var(--sb-marge)) !important; }
html.theme-verre .rec-sidebar-inner {
  top: var(--sb-marge) !important; left: var(--sb-marge) !important;
  height: calc(100vh - 2 * var(--sb-marge)) !important;
  border: 1px solid rgba(255, 255, 255, .95) !important;
  border-left: 1px solid rgba(255, 255, 255, .95) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 249, 243, .62)) !important;
  box-shadow: 0 1px 2px rgba(120, 60, 20, .06), 0 14px 36px rgba(120, 60, 20, .13), inset 0 1px 0 #fff !important;
  overflow: hidden;
}
/* Raccourcis du bas : posés au pied du panneau, mêmes arrondis */
html.theme-verre #chat-tabs {
  left: var(--sb-marge) !important; bottom: var(--sb-marge) !important;
  background: transparent !important;
  border-top: 1px solid rgba(120, 60, 20, .08) !important;
  border-radius: 0 0 22px 22px !important;
}
html.theme-verre body:not(.sidebar-etendue) #chat-tabs { width: 64px !important; }
html.theme-verre body.sidebar-etendue #chat-tabs { width: 220px !important; }

/* Logos sur fond blanc : traités à l'affichage par js/theme-verre.js (le blanc qui
   touche les bords devient transparent). On retire juste le fond blanc posé en CSS. */
html.theme-verre #sidebar-org-logo,
html.theme-verre .cp-logo,
html.theme-verre .pm-logo,
html.theme-verre .dem-logo img { background: transparent !important; }

/* Identité du cabinet (09/11, Alessandro) : barre REPLIÉE = le logo seul ;
   barre DÉPLIÉE = le logo ET le nom en toutes lettres (« Alteo »). */
/* Dépliée : logo à gauche, nom à droite, sur une ligne ; la cloche en dessous */
html.theme-verre body.sidebar-etendue .rec-sidebar .rec-sidebar-top {
  display: grid !important; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; row-gap: 10px;
}
html.theme-verre body.sidebar-etendue .rec-sidebar #sidebar-org-logo { grid-column: 1; grid-row: 1; width: 40px !important; height: 40px !important; }
html.theme-verre body.sidebar-etendue .rec-sidebar #notifications-bell { grid-column: 1 / -1; }
html.theme-verre body.sidebar-etendue .rec-sidebar #sidebar-raccord-brand { grid-column: 1 / -1; }
html.theme-verre body.sidebar-etendue .rec-sidebar #sidebar-org-nom {
  display: block !important; grid-column: 2; grid-row: 1; text-align: left !important; text-transform: none !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 18px !important; font-weight: 800 !important; letter-spacing: -.3px; color: #1D1A17 !important;
  padding: 2px 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Nom du cabinet retiré de la barre latérale (18/11, Alessandro : « on garde juste Profilio »). */
html.theme-verre body:not(.sidebar-etendue) .rec-sidebar #sidebar-org-nom { display: none !important; }

/* ── Candidats : en-tête compact (09/11, Alessandro : « le haut prend bcp de place ») ──
   Les actions (⋯, + Nouveau candidat, Importer CV) remontent sur la ligne des
   onglets ; le compteur « 579 CANDIDATS » disparaît (la pastille « Tous 579 » le
   donne déjà). Seulement sur écran large : en dessous, onglets et actions ne
   tiennent pas sur une ligne et l'en-tête reste comme avant.
   13/11/2026 : « Importer un fichier » s'ajoute aux actions (~520 px) ; à 1 440 px,
   « Mes relations 1er degré » passait dessous. Seuil relevé et place réservée
   à la vraie largeur des actions. */
@media (min-width: 1640px) {
  html.theme-verre #view-candidats > .app-header { margin: 0 !important; padding: 0 !important; min-height: 0 !important; height: 0; position: relative; z-index: 3; }
  html.theme-verre #view-candidats > .app-header > div:first-child { display: none !important; }
  html.theme-verre #view-candidats > .app-header > div:last-child { position: absolute; top: 1px; right: 0; }
  html.theme-verre #view-candidats > .app-header + div { padding-right: 560px; }
}
html.theme-verre #view-candidats > .app-header + div { margin-bottom: 12px !important; }
html.theme-verre #view-candidats #cand-saved-views { margin: 0 0 6px !important; }
html.theme-verre #ats-panel-candidats > .app-card { margin: 2px 0 6px !important; }

/* Contacts et Jobs : même principe que Candidats, les actions montent sur la ligne
   des pastilles (Tous / Avec jobs ouverts… ; Tous / Ouvert / En cours…) et le
   compteur en capitales disparaît (la pastille « Tous N » le donne). */
@media (min-width: 1400px) {
  html.theme-verre #view-contacts > .app-header,
  html.theme-verre #view-dossiers > div:first-child { margin: 0 !important; padding: 0 !important; min-height: 0 !important; height: 0; position: relative; z-index: 3; }
  html.theme-verre #view-contacts > .app-header > div:first-child,
  html.theme-verre #view-dossiers > div:first-child > div:first-child { display: none !important; }
  html.theme-verre #view-contacts > .app-header > div:last-child,
  html.theme-verre #view-dossiers > div:first-child > div:last-child { position: absolute; top: -5px; right: 0; }
  html.theme-verre #contacts-vues, html.theme-verre #jobs-status-chips { padding-right: 300px; min-height: 27px; }
}
html.theme-verre #contacts-vues { margin: 0 0 8px !important; }
html.theme-verre #jobs-status-chips { margin-bottom: 10px !important; }
/* Autres pages : en-tête resserré (le titre en capitales reste, rien à fusionner). */
html.theme-verre .app-view > .app-header { margin-bottom: 10px !important; }
html.theme-verre #view-clients > div:first-child { margin-bottom: 10px !important; }
html.theme-verre #view-clients > .jobsv2-panel:first-of-type { margin-bottom: 12px !important; }

/* Boutons harmonisés sur toutes les pages (09/11, Alessandro : « harmoniser les
   tailles et les rendus des boutons ») : 36 px de haut, arrondi 10 px, même verre,
   même typo. Les boutons pleins (noir / orange) gardent leur couleur : un seul par
   page, l'action principale. */
html.theme-verre .app-view > .app-header .btn-secondary,
html.theme-verre .app-view > .app-header .btn-primary,
html.theme-verre .app-view .cand-plus > summary,
html.theme-verre .app-view .select-filter,
html.theme-verre .app-view .jobsv2-btn-pill,
html.theme-verre .app-view .jobsv2-btn-black,
html.theme-verre .app-view .jobsv2-cols-btn,
html.theme-verre .app-view .jobsv2-select {
  height: 36px !important; min-height: 36px !important; box-sizing: border-box !important;
  display: inline-flex !important; align-items: center !important; gap: 6px !important;
  padding: 0 14px !important; border-radius: 10px !important;
  font: 500 13px/1 'Inter', system-ui, sans-serif !important; letter-spacing: 0 !important;
  box-shadow: 0 1px 2px rgba(60, 30, 10, .05) !important;
}
html.theme-verre .app-view select.select-filter,
html.theme-verre .app-view .jobsv2-select { display: inline-block !important; padding: 0 30px 0 12px !important; line-height: 34px !important; }
html.theme-verre .app-view > .app-header .btn-secondary,
html.theme-verre .app-view .cand-plus > summary,
html.theme-verre .app-view .select-filter,
html.theme-verre .app-view .jobsv2-btn-pill,
html.theme-verre .app-view .jobsv2-cols-btn,
html.theme-verre .app-view .jobsv2-select {
  background-color: var(--verre) !important;
  border: 1px solid rgba(120, 60, 20, .12) !important; color: #2A2622 !important;
}
html.theme-verre .app-view > .app-header .btn-secondary:hover,
html.theme-verre .app-view .cand-plus > summary:hover,
html.theme-verre .app-view .select-filter:hover,
html.theme-verre .app-view .jobsv2-btn-pill:hover,
html.theme-verre .app-view .jobsv2-cols-btn:hover,
html.theme-verre .app-view .jobsv2-select:hover {
  background-color: #fff !important; border-color: rgba(120, 60, 20, .22) !important;
}
html.theme-verre .app-view .cand-plus > summary { width: 36px !important; padding: 0 !important; justify-content: center !important; }
html.theme-verre .app-view .select-filter svg,
html.theme-verre .app-view .jobsv2-btn-pill svg,
html.theme-verre .app-view .jobsv2-btn-black svg,
html.theme-verre .app-view .jobsv2-cols-btn svg,
html.theme-verre .app-view > .app-header .btn-secondary svg,
html.theme-verre .app-view > .app-header .btn-primary svg { width: 15px !important; height: 15px !important; margin: 0 !important; flex-shrink: 0; }
/* Recherche et bascules segmentées à la même hauteur que les boutons voisins */
html.theme-verre .app-view .jobsv2-search-wrap { height: 36px !important; box-sizing: border-box !important; border-radius: 10px !important; }
html.theme-verre .app-view .jobsv2-seg,
html.theme-verre .app-view .search-mode-seg { height: 36px !important; box-sizing: border-box !important; padding: 3px !important; border-radius: 10px !important; align-items: stretch !important;
  background: var(--verre) !important; border: 1px solid rgba(120, 60, 20, .12) !important; }
html.theme-verre .app-view .jobsv2-seg > *,
html.theme-verre .app-view .search-mode-seg .search-mode-btn { border-radius: 7px !important; padding: 0 12px !important; font: 500 13px/1 'Inter', system-ui, sans-serif !important; display: inline-flex !important; align-items: center !important; gap: 5px; height: auto !important; }

/* En-têtes de tableaux identiques d'une page à l'autre (09/11, Alessandro :
   « le tableau est différent des autres ») : même fond, même hauteur. */
html.theme-verre .app-view table.data-table thead th {
  background: #FBF4EC !important; height: 45px; box-sizing: border-box;
  font-size: 12.5px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important; color: #1D1D1F !important;
}

/* Placements : cartes du haut ramenées à une ligne (09/11, Alessandro : « les cartes
   en haut trop grosses »). Libellé, montant et détail côte à côte, à la hauteur
   des boutons (36 px) ; la couleur d'alerte reste sur le bord gauche. */
html.theme-verre .pl-kpis { gap: 8px !important; margin: 0 0 8px !important; }
html.theme-verre .pl-kpi {
  display: inline-flex !important; align-items: center !important; gap: 8px !important;
  height: 36px !important; box-sizing: border-box !important; min-width: 0 !important;
  padding: 0 14px 0 12px !important; border-radius: 10px !important;
  background: var(--verre) !important; border-top: 1px solid rgba(120, 60, 20, .12) !important; border-right: 1px solid rgba(120, 60, 20, .12) !important; border-bottom: 1px solid rgba(120, 60, 20, .12) !important; border-left-width: 3px !important; border-left-style: solid !important;
  box-shadow: 0 1px 2px rgba(60, 30, 10, .05) !important;
}
html.theme-verre .pl-kpi-l { font-size: 12px !important; font-weight: 500 !important; color: #6B6762 !important; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
html.theme-verre .pl-kpi-v { margin: 0 !important; font-size: 14px !important; font-weight: 700 !important; white-space: nowrap; }
html.theme-verre .pl-kpi-v span { font-size: 12px !important; margin-left: 4px; }
html.theme-verre .pl-kpi.actif { box-shadow: 0 0 0 2px rgba(255, 107, 53, .35) !important; }

/* Panneau de notifications en verre (09/11, Alessandro). Il flotte au-dessus des
   listes : un flou d'arrière-plan garde le texte lisible. Même arrondi et mêmes
   marges que la barre latérale flottante, à côté de laquelle il s'ouvre. */
html.theme-verre #notif-panel {
  background: rgba(253, 248, 243, .97) !important;
  border: 1px solid var(--verre-bord) !important; border-radius: 22px !important;
  top: 10px !important; bottom: 10px !important; left: calc(64px + var(--sb-marge, 10px) + 8px) !important;
  box-shadow: 0 1px 2px rgba(120, 60, 20, .06), 0 18px 50px -12px rgba(120, 60, 20, .25), inset 0 1px 0 #fff !important;
  --np-trait: rgba(120, 60, 20, .10); --np-trait-fort: rgba(120, 60, 20, .18);
  --np-survol: rgba(255, 255, 255, .6); --np-actif: rgba(255, 255, 255, .75);
}
html.theme-verre body.sidebar-etendue #notif-panel { left: calc(220px + var(--sb-marge, 10px) + 8px) !important; }
html.theme-verre #notif-panel .np-chip { background: rgba(255, 255, 255, .7) !important; }
html.theme-verre #notif-panel .np-chip[aria-pressed="true"] { background: var(--np-texte) !important; }
html.theme-verre #notif-panel .np-pied { background: rgba(255, 255, 255, .35) !important; }

/* Barres de recherche refaites (09/11, Alessandro : « faut refaire la barre de
   recherche aussi »). Un seul dessin partout : verre, contour fin, loupe à gauche,
   contour orange à la saisie. Celles des pages font 36 px comme les boutons voisins ;
   la recherche globale du haut, 42 px. */
html.theme-verre { --rech-loupe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A8075' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  --rech-repere: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A8075' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.6-6.5-11a6.5 6.5 0 0 1 13 0c0 5.4-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E"); }

/* Champs des pages (Candidats, Contacts, Placements, Job Leads) */
html.theme-verre .app-view input.search-input,
html.theme-verre .app-view input.jobsv2-loc {
  height: 36px !important; box-sizing: border-box !important; margin: 0 !important;
  padding: 0 32px 0 36px !important; border-radius: 10px !important;
  background: var(--verre) var(--rech-loupe) no-repeat 12px 50% !important;
  border: 1px solid rgba(120, 60, 20, .12) !important; box-shadow: 0 1px 2px rgba(60, 30, 10, .05) !important;
  font: 400 13.5px/1 'Inter', system-ui, sans-serif !important; color: #1D1D1F !important; outline: none !important;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
html.theme-verre .app-view input.jobsv2-loc { background-image: var(--rech-repere) !important; background-repeat: no-repeat !important; background-position: 12px 50% !important; background-size: 16px 16px !important; }
/* Entreprises / Jobs : la loupe est déjà dans le libellé, c'est lui qui prend le cadre */
html.theme-verre .app-view .jobsv2-search-wrap {
  height: 36px !important; box-sizing: border-box !important; padding: 0 12px !important; gap: 8px !important; border-radius: 10px !important;
  background: var(--verre) !important;
  border: 1px solid rgba(120, 60, 20, .12) !important; box-shadow: 0 1px 2px rgba(60, 30, 10, .05) !important;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
html.theme-verre .app-view .jobsv2-search-wrap svg { stroke: #8A8075 !important; }
html.theme-verre .app-view .jobsv2-search-wrap input { background: transparent !important; border: none !important; box-shadow: none !important; height: 100% !important; font: 400 13.5px/1 'Inter', system-ui, sans-serif !important; color: #1D1D1F !important; }
html.theme-verre .app-view input.search-input::placeholder,
html.theme-verre .app-view input.jobsv2-loc::placeholder,
html.theme-verre .app-view .jobsv2-search-wrap input::placeholder { color: #8A8075 !important; opacity: 1; }
html.theme-verre .app-view input.search-input:hover,
html.theme-verre .app-view input.jobsv2-loc:hover,
html.theme-verre .app-view .jobsv2-search-wrap:hover { border-color: rgba(120, 60, 20, .22) !important; }
html.theme-verre .app-view input.search-input:focus,
html.theme-verre .app-view input.jobsv2-loc:focus,
html.theme-verre .app-view .jobsv2-search-wrap:focus-within {
  background-color: #fff !important; border-color: rgba(232, 84, 14, .55) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, .14) !important;
}

/* Recherche globale du haut */
html.theme-verre .topbar-search {
  height: 42px !important; box-sizing: border-box !important; padding: 0 10px 0 14px !important; border-radius: 12px !important;
  background: var(--verre) !important;
  border: 1px solid rgba(120, 60, 20, .12) !important; box-shadow: 0 1px 2px rgba(60, 30, 10, .05) !important; color: #8A8075 !important;
}
/* La recherche occupe toute la largeur jusqu'au bouton Déconnexion (10/11/2026) ;
   elle s'arrêtait à 720 px et laissait un grand vide à droite. La liste de
   résultats, elle, garde une largeur lisible. */
html.theme-verre #app-topbar .topbar-search { max-width: none !important; }
html.theme-verre #app-topbar .topbar-dropdown { right: auto !important; width: min(100%, 760px); }
html.theme-verre .topbar-search:hover { border-color: rgba(120, 60, 20, .22) !important; background: rgba(255, 255, 255, .85) !important; }
html.theme-verre .topbar-search:focus-within {
  background: #fff !important; border-color: rgba(232, 84, 14, .55) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, .14), 0 8px 24px -10px rgba(120, 60, 20, .25) !important;
}
html.theme-verre .topbar-search input { font: 400 14px/1 'Inter', system-ui, sans-serif !important; color: #1D1D1F !important; }
html.theme-verre .topbar-search input::placeholder { color: #8A8075 !important; opacity: 1; }
html.theme-verre .topbar-kbd { background: rgba(255, 255, 255, .8) !important; border: 1px solid rgba(120, 60, 20, .14) !important; border-radius: 6px !important; color: #8A8075 !important; }

/* Fenêtres au-dessus du contenu (fiche candidat, fiche job, toutes les modales) :
   presque opaques et floutées derrière (09/11, Alessandro : « ça laisse transparaître
   les textes derrière, c'est pas terrible »). Le verre reste dans les cartes
   intérieures ; la fenêtre elle-même ne laisse plus lire la liste en dessous. */
html.theme-verre .modal-content,
html.theme-verre .modal-box,
html.theme-verre [class*="modal-dialog"],
html.theme-verre #modal-candidat .modal-box,
html.theme-verre .dossier-detail-panel {
  background: rgba(252, 247, 242, .97) !important;
}

/* Défilement fluide sur les PC modestes (09/11, Alessandro : défilement « très lent
   et haché » dans Séquences et la fiche placement, sur Edge au bureau). Le flou
   d'arrière-plan se recalcule à chaque image du défilement, et un flou dans un
   flou (fenêtre floutée posée sur un voile flouté) coûte encore plus. Le thème
   n'en met plus aucun et retire ceux de base sous les fenêtres, la barre du haut
   et le panneau de notifications : les fonds sont assez opaques pour s'en passer. */
html.theme-verre .modal-overlay,
html.theme-verre .modal-box,
html.theme-verre .modal-content,
html.theme-verre [class*="modal-dialog"],
html.theme-verre .dossier-detail-panel,
html.theme-verre .topbar,
html.theme-verre #notif-panel { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* Barre ⌘K qui suit le défilement (09/11, Alessandro). Elle était déjà
   position: sticky, mais .rec-main portait overflow-y: auto : c'est la page qui
   défile, pas .rec-main, et le sticky restait accroché à un conteneur immobile.
   overflow-x: clip coupe les débordements latéraux sans créer de conteneur de
   défilement, donc la barre se colle au haut de la fenêtre. */
html.theme-verre .rec-main { overflow: visible !important; overflow-x: clip !important; min-width: 0 !important; }
html.theme-verre #app-topbar { position: sticky !important; top: 10px !important; z-index: 60 !important; }

/* Tableau de bord : le conteneur des cartes posait un voile blanc à 72 % sur le
   dégradé (09/11, Alessandro : « entre les carrés c'est une autre couleur que le
   fond, comme un blanc beige »). Seules les cartes gardent leur fond. */
html.theme-verre #view-dashboard #dash-cockpit { border-radius: 0 !important; background: transparent !important; box-shadow: none !important; border-color: transparent !important; }
/* ── Tableau de bord, passe « unslop » (09/11/2026, mode polissage validé) ──
   Direction : chaleureux, posé, précis. L'orange se garde pour
   l'agenda et l'action principale ; le reste se calme.
   Méthode : unslop by @heydamir (CC BY 4.0). */
/* Titres de cartes : une seule taille, une seule graisse */
html.theme-verre #view-dashboard .dem-carte-titre,
html.theme-verre #view-dashboard .cockpit-title,
html.theme-verre #view-dashboard .card-title { font-size: 17px !important; font-weight: 600 !important; letter-spacing: 0 !important; color: #1D1D1F !important; }
html.theme-verre #view-dashboard .dash-deals-head h2 { font-size: 15px !important; font-weight: 600 !important; }
/* Pastilles de titre : rien quand il n'y a rien à signaler */
html.theme-verre #view-dashboard #dash-followup-badge:empty,
html.theme-verre #view-dashboard #dash-interview-requests-badge:empty,
html.theme-verre #view-dashboard #dash-activity-badge:empty { display: none !important; }
/* Compteur de tâches : un chiffre discret, pas une pastille orange */
html.theme-verre #view-dashboard #cockpit-task-count {
  background: transparent !important; color: #8A8075 !important; box-shadow: none !important;
  font: 500 14px/1 'Inter', system-ui, sans-serif !important; font-variant-numeric: tabular-nums; min-width: 0 !important; width: auto !important; padding: 0 2px !important;
}
/* Démarrage : « Faire → » en texte secondaire, l'orange reste sur la barre de progression */
html.theme-verre #view-dashboard .dem-aller { color: #6E6259 !important; font-weight: 500 !important; }
html.theme-verre #view-dashboard .dem-aller:hover { color: #C2410C !important; }
/* Déconnexion : action rare, bouton discret ; plus d'orange en haut à droite */
html.theme-verre #app-topbar .topbar-deconnexion {
  background: transparent !important; color: #4A423C !important; border: 1px solid rgba(29, 29, 31, .10) !important; box-shadow: none !important;
}
html.theme-verre #app-topbar .topbar-deconnexion:hover { background: rgba(29, 29, 31, .05) !important; transform: none !important; }
/* Bouton micro : ombre neutre, plus de halo orange */
html.theme-verre #tv-bouton { box-shadow: 0 4px 14px rgba(29, 29, 31, .16) !important; }
/* Cartes du cockpit (tâches, à prospecter, agenda) : le même verre que les autres
   cartes. Elles gardaient un blanc plein ou un dégradé pêche et une bordure pêche
   à elles (09/11, Alessandro : « à prospecter et agenda sont restés blancs »). */
html.theme-verre #view-dashboard .cockpit-tasks,
html.theme-verre #view-dashboard .cockpit-prospects,
html.theme-verre #view-dashboard .cockpit-agenda {
  background: var(--verre) !important;
  border: 1px solid var(--verre-bord) !important;
  box-shadow: var(--verre-ombre) !important;
  border-radius: 22px !important;
}
/* Agenda : seul le cadre est en verre, la grille de la semaine reste blanche
   (09/11, Alessandro : « les quadrillages doivent rester blancs »). */
html.theme-verre #view-dashboard .cockpit-agenda .cockpit-week-wrap { background: #FFFFFF !important; border-radius: 12px; }
/* Barre latérale : plus de photo ni de nom de l'utilisateur en pied (10/11/2026,
   « pour gagner de la place ») ; la déconnexion reste dans la barre du haut. */
html.theme-verre .rec-sidebar-footer > div:first-child:has(#sidebar-avatar) { display: none !important; }
/* Menus déroulants (recherche ⌘K, listes, menus) : fond plein, le texte de la page
   ne transparaît plus derrière les résultats (10/11/2026). */
html.theme-verre .topbar-dropdown,
html.theme-verre #topbar-dropdown,
html.theme-verre [class*="-dropdown"],
html.theme-verre [class*="-menu"]:not(.rec-nav):not(nav),
html.theme-verre [role="menu"],
html.theme-verre [role="listbox"] {
  background: #FFFFFF !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  box-shadow: 0 16px 40px rgba(23, 20, 18, .16), 0 0 0 1px rgba(23, 20, 18, .06) !important;
}

/* ── Tableaux de liste : un seul modèle, celui de Candidats (10/11/2026) ──────
   Alessandro : « tableau candidat = base pour tout le reste, même taille de
   colonne, couleur, taille d'en-tête et position, pour que ça ne cloche pas en
   passant de l'un à l'autre ». Les règles d'origine visaient chaque tableau par
   son id (jusqu'à deux id) : les :not(#…) donnent à ce bloc la priorité
   nécessaire sans toucher aux règles des pages. */
/* Le cadre : arrondi 20 px, filet blanc, ombre chaude, bord à bord de la page. */
html.theme-verre .app-card:has(> #table-contacts),
html.theme-verre #view-placements .app-card:has(.data-table),
html.theme-verre #view-clients .jobsv2-panel:has(#table-clients),
html.theme-verre #view-dossiers .jobsv2-panel:has(#table-dossiers),
html.theme-verre #view-job-leads #job-leads-liste > .app-card,
html.theme-verre #missions-view-table > .app-card,
html.theme-verre #view-missions .deals-mois {
  margin: 8px -32px 0 !important;
  border: 1px solid #fff !important; border-radius: 20px !important;
  background: rgba(255, 255, 255, .9) !important;
  box-shadow: 0 10px 34px rgba(120, 60, 20, .08) !important;
  /* Défilement horizontal (16/11/2026, Alessandro : « aucun scroll horizontal sur toutes
     les tables ») : `hidden` coupait les colonnes au-delà de l'écran. `auto` garde
     l'arrondi et laisse défiler. */
  overflow-x: auto !important; overflow-y: hidden !important; padding: 0 !important;
}
/* Écrans à onglets de farde : le bord gauche reste contre les onglets. */
html.theme-verre #view-job-leads #job-leads-liste > .app-card,
html.theme-verre #missions-view-table > .app-card { margin-left: 0 !important; }
html.theme-verre #view-missions .deals-mois { margin: 0 -32px 16px 0 !important; }

/* L'en-tête : 45 px, Inter 12,5 px gras, crème, filet sous l'en-tête. */
html.theme-verre .app-view table:is(.data-table, .deals-table):not(#_t1):not(#_t2):not(#_t3) thead th,
html.theme-verre .app-view table.deals-table:not(#_t1):not(#_t2):not(#_t3) tr:first-child > th {
  font-family: 'Inter', system-ui, sans-serif !important; font-size: 12.5px !important; font-weight: 600 !important;
  color: #1D1D1F !important; background: #FBF4EC !important;
  text-transform: none !important; letter-spacing: 0 !important;
  height: 45px !important; box-sizing: border-box !important; padding: 8px 14px !important; vertical-align: middle !important;
  border-bottom: 1px solid rgba(0, 0, 0, .08) !important; border-right: 1px solid rgba(0, 0, 0, .024) !important;
}
/* Les cellules : Inter 12,5 px, mêmes marges, même filet, lignes de 49 px. */
html.theme-verre .app-view table:is(.data-table, .deals-table):not(#_t1):not(#_t2):not(#_t3) tbody td,
html.theme-verre .app-view table.deals-table:not(#_t1):not(#_t2):not(#_t3) tr + tr > td,
html.theme-verre .app-view table.deals-table:not(#_t1):not(#_t2):not(#_t3) td {
  font-family: 'Inter', system-ui, sans-serif !important; font-size: 12.5px !important;
  color: #1D1D1F;
  padding: 9px 14px !important; vertical-align: middle;
  border-bottom: 1px solid #F0EEEB !important; border-right: 1px solid rgba(0, 0, 0, .024) !important;
}
html.theme-verre .app-view table:is(.data-table, .deals-table):not(#_t1):not(#_t2):not(#_t3) :is(th, td):last-child { border-right: none !important; }
html.theme-verre .app-view table:is(.data-table, .deals-table):not(#_t1):not(#_t2):not(#_t3) tbody tr { height: 49px !important; }
html.theme-verre .app-view table:is(.data-table, .deals-table):not(#_t1):not(#_t2):not(#_t3) tbody tr:hover > td { background: #FAFAF9 !important; }
/* Cellules à deux lignes (nom + détail, Entreprises et Jobs) : interligne serré
   pour tenir dans les 49 px de Candidats. */
html.theme-verre .app-view table.data-table:not(#_t1):not(#_t2):not(#_t3) tbody td,
html.theme-verre .app-view table.data-table:not(#_t1):not(#_t2):not(#_t3) tbody td * { line-height: 1.3 !important; }
html.theme-verre .app-view table.data-table:not(#_t1):not(#_t2):not(#_t3) tbody td :is(button, .btn-icon, [class*="act"]) { line-height: 1 !important; }

/* Fenêtre blanche des écrans à onglets de farde (10/11/2026, « comme Séquences ») :
   Job Leads, Veille offres, Missions. L'onglet actif se fond dans la fenêtre au lieu
   de flotter dans le vide ; les listes à l'intérieur restent dans la fenêtre. */
html.theme-verre .app-view .onglets-fenetre {
  background: #FBFAF8 !important; border: 1px solid #ECE9E4 !important; border-radius: 16px !important;
  padding: 18px 20px !important; box-shadow: 0 1px 2px rgba(23, 20, 18, .04) !important;
  min-height: 60vh; box-sizing: border-box;
}
#view-job-leads > .jl-onglets .msg-onglet.actif,
#view-veille > .jl-onglets .msg-onglet.actif,
#view-missions > .ms-onglets .msg-onglet.actif { background: #FBFAF8 !important; }
html.theme-verre #view-job-leads .onglets-fenetre #job-leads-liste > .app-card,
html.theme-verre #view-missions .onglets-fenetre #missions-view-table > .app-card,
html.theme-verre #view-missions .onglets-fenetre .deals-mois {
  margin: 8px 0 16px !important; width: auto !important; border: 1px solid #ECE9E4 !important; box-shadow: none !important; border-radius: 14px !important;
}
html.theme-verre .onglets-fenetre .app-card, html.theme-verre .onglets-fenetre .mstat { box-shadow: none !important; }
#view-veille #veille-contenu > .app-header { margin-top: 0 !important; }
/* Tableau plus large que la fenêtre : il défile dedans au lieu d'être coupé. */
html.theme-verre #view-job-leads .onglets-fenetre #job-leads-liste > .app-card,
html.theme-verre #view-missions .onglets-fenetre #missions-view-table > .app-card { overflow-x: auto !important; }
/* Chevrons d'étapes (Job Leads, Candidats) : le chiffre de l'étape active reste
   blanc sur le fond noir ; la règle grise des compteurs l'éteignait (10/11/2026). */
html.theme-verre .app-view .cand-pipeline .cand-pipe-stage.active .cand-pipe-count { color: #FFFFFF !important; }
