/* ============================================================
   EXTRANET SBG — FEUILLE DE STYLE UNIQUE (3.8)
   Remplace style.css, theme-sbg.css, look-v2.css et mobile.css, ainsi que les styles intégrés au menu.
   Bootstrap 5 est utilisé tel quel ; ses variables reçoivent les couleurs SBG.
   Grand écran (≥ 992 px) : menu en barre latérale. En dessous (téléphone, petite tablette) : barre du haut + menu en tiroir.
   Sommaire : 1 couleurs  2 base  3 structure  4 menu  5 en-tête de page  6 cadres et fiches  7 tableaux
              8 formulaires et boutons  9 petits éléments  10 téléphone  11 modules des pages  12 impression
   ============================================================ */

/* ================= 1. COULEURS, POLICE, VARIABLES BOOTSTRAP ================= */
:root {
  --sbg-bleu: #235576;          /* bleu des ronds du logo SBG */
  --sbg-bleu-fonce: #1b4560;
  --sbg-nuit: #12324a;          /* menu */
  --sbg-nuit-clair: #1d4a66;
  --sbg-encre: #15232d;         /* texte */
  --sbg-gris: #5b6b76;          /* texte secondaire */
  --sbg-brume: #eef3f6;         /* fond des pages */
  --sbg-brume-2: #f6f9fb;
  --sbg-trait: #cdd9e0;
  --sbg-trait-doux: #e3eaee;
  --sbg-survol: #f3f7fa;
  --sbg-ligne-paire: var(--sbg-brume); /* une ligne sur deux, listes sur téléphone et sur ordinateur */
  --sbg-entete-tableau: var(--sbg-bleu); /* barre des titres des listes, texte blanc (3.10.10) */
  --sbg-erreur: #b42318;
  --sbg-halo: 0 0 0 3px rgba(35, 85, 118, .2);
  --sbg-ombre: 0 1px 2px rgba(21, 35, 45, .04), 0 8px 24px rgba(21, 35, 45, .05);
  --sbg-police: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --menu-largeur: 16.25rem;
  --menu-largeur-replie: 4.75rem;

  /* noms encore utilisés par quelques pages */
  --extranet-blue: var(--sbg-bleu);
  --extranet-text: var(--sbg-encre);
  --extranet-muted: var(--sbg-gris);
  --extranet-hover: #e9f2f7;
  --extranet-font: var(--sbg-police);

  /* Bootstrap aux couleurs SBG */
  --bs-primary: var(--sbg-bleu);
  --bs-primary-rgb: 35, 85, 118;
  --bs-link-color: var(--sbg-bleu);
  --bs-link-color-rgb: 35, 85, 118;
  --bs-link-hover-color: var(--sbg-bleu-fonce);
  --bs-body-font-family: var(--sbg-police);
  --bs-body-color: var(--sbg-encre);
  --bs-body-bg: var(--sbg-brume);
  --bs-border-color: var(--sbg-trait);
  --bs-secondary-color: var(--sbg-gris);
  --bs-border-radius: 8px;
  --bs-focus-ring-color: rgba(35, 85, 118, .25);
}
/* Serveur de test : menu bordeaux, pour ne pas le confondre avec la production */
html.site-test { --sbg-nuit: #5a1426; --sbg-nuit-clair: #7d2238; }

/* ================= 2. BASE ================= */
body {
  font-family: var(--sbg-police);
  color: var(--sbg-encre);
  background: var(--sbg-brume);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { color: var(--sbg-encre); }
h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 .75rem; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 .5rem; }
p { margin: 0 0 .75rem; }
a { color: var(--sbg-bleu); text-decoration: none; }
a:hover { color: var(--sbg-bleu-fonce); text-decoration: underline; text-underline-offset: 3px; }
.text-muted { color: var(--sbg-gris) !important; }
.text-primary { color: var(--sbg-bleu) !important; }
.text-bg-primary { background-color: var(--sbg-bleu) !important; color: #fff !important; }
:focus-visible { outline: 2px solid var(--sbg-bleu); outline-offset: 2px; }

/* ================= 3. STRUCTURE ================= */
.app { display: flex; min-height: 100vh; min-height: 100dvh; }
.app-principal { flex: 1 1 auto; min-width: 0; position: relative; z-index: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
/* Pied de page commun : « Créé par… / Modifié par… » en bas de l'écran, à gauche (rempli par @section('historique')) */
.app-principal > .extranet-page { flex: 1 0 auto; }
.app-pied { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; padding: 0.625rem 2rem 0.875rem; font-size: .9rem; color: var(--sbg-gris); }
.app-pied i { margin-right: 0.375rem; font-size: .85em; color: #9aaab4; }
/* Créé par / Modifié par dans une carte (fiche client, carte Situation) */
.v2-historique { display: flex; flex-direction: column; gap: 0.125rem; margin-top: 0.625rem; padding-top: 0.625rem; border-top: 1px dashed #edf1f4; font-size: .85rem; color: var(--sbg-gris); }
.v2-historique i { margin-right: 0.375rem; font-size: .85em; color: #9aaab4; }
.v2-historique[hidden], .v2-historique [hidden] { display: none; }
@media (max-width: 991.98px) { .app-pied { padding: 0.5rem 0.875rem 0.875rem; flex-direction: column; } }
/* courbes du lac derrière les pages et dans le menu (même dessin que la page de connexion) :
   les deux calques ont la même taille et la même place à l'écran, les lignes se suivent du menu à la page */
.app-principal::before,
.app-menu::before {
  content: ""; z-index: -1; pointer-events: none;
  left: -6vw; top: -6vh; width: 112vw; height: 112vh;
  background: center / cover no-repeat;
  transform-origin: 55% 60%;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .35) 0%, #000 45%);
          mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .35) 0%, #000 45%);
}
.app-principal::before { position: fixed; background-image: url("lac-ecran-clair.svg"); } /* reste derrière les cadres blancs quand la page défile */
.app-menu { isolation: isolate; overflow: hidden; }
.app-menu::before { position: absolute; background-image: url("lac-ecran.svg"); opacity: .7; } /* le menu est collé en haut à gauche de l'écran */
/* houle seulement si l'ordinateur ne demande pas moins d'animations (choix de Pascal, 28.10.2026) */
@media (prefers-reduced-motion: no-preference) {
  .app-principal::before, .app-menu::before { animation: lac-houle 14s ease-in-out infinite alternate; }
  @keyframes lac-houle {
    0%   { transform: scale(1) translate(0, 0) rotate(0deg); }
    50%  { transform: scale(1.04) translate(-1.2vw, -1vh) rotate(-1deg); }
    100% { transform: scale(1.08) translate(-2.4vw, -2vh) rotate(-2deg); }
  }
}
.extranet-page { padding: 1.5rem 2rem 2.5rem; }

/* Barre du haut : seulement quand le menu est en tiroir (< 992 px) */
.app-barre {
  position: sticky; top: 0; z-index: 1030;
  display: flex; align-items: center; gap: 0.5rem;
  height: 3.5rem; padding: 0 0.5rem 0 0.25rem;
  background: var(--sbg-nuit); color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.app-barre-btn {
  flex: 0 0 auto; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 0.625rem;
  display: inline-grid; place-items: center; background: transparent; color: #fff; font-size: 1.15rem;
}
.app-barre-btn:hover, .app-barre-btn:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; }
/* Retour : visible seulement dans l'application installée sur le téléphone (mode standalone), s'il y a une page précédente */
.app-retour { display: none; }
@media (display-mode: standalone) { .app-retour:not(.sans-retour) { display: inline-grid; } }
.app-barre-titre {
  flex: 1 1 auto; min-width: 0; margin: 0; font-size: 1.1rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ================= 4. MENU ================= */
.app-menu {
  --bs-offcanvas-width: min(86vw, 320px);
  --bs-offcanvas-bg: var(--sbg-nuit);
  --bs-offcanvas-color: #fff;
  color: #fff;
  background: radial-gradient(130% 70% at 80% 0%, var(--sbg-nuit-clair) 0%, var(--sbg-nuit) 70%);
}
.app-menu .offcanvas-body { display: flex; flex-direction: column; padding: 0; min-height: 0; }
.app-menu-tete { display: flex; align-items: center; gap: 0.625rem; padding: 0.875rem 0.875rem 0.625rem; }
.app-menu-logo { height: 2.75rem; width: auto; } /* logo-blanc.svg : ronds blancs, lettres découpées (couleur du menu) */
.app-menu-version { display: block; margin-bottom: 0.5rem; font-size: .78rem; color: rgba(207, 230, 242, .75); text-decoration: none; white-space: nowrap; }
.app-menu-version:hover { color: #fff; }
.app-menu-replier {
  width: 2.25rem; height: 2.25rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 0.625rem;
  background: rgba(255, 255, 255, .08); color: #fff; display: inline-grid; place-items: center; flex: 0 0 auto;
}
.app-menu-replier:hover { background: rgba(255, 255, 255, .16); }
.app-menu-liens { flex: 1 1 auto; overflow-y: auto; padding: 0.375rem 0.625rem 0.75rem; scrollbar-width: thin; }
.app-menu-lien {
  display: flex; align-items: center; gap: 0.75rem; width: 100%;
  min-height: 2.75rem; padding: 0.375rem 0.625rem; margin: 0.125rem 0; border: 0; border-radius: 0.625rem;
  background: transparent; color: rgba(255, 255, 255, .92); text-align: left; text-decoration: none;
  font-size: .98rem; font-weight: 500; white-space: nowrap;
}
.app-menu-lien:hover, .app-menu-lien:focus-visible { background: rgba(255, 255, 255, .09); color: #fff; text-decoration: none; }
.app-menu-lien.active { background: rgba(255, 255, 255, .15); color: #fff; }
.app-menu-ico {
  position: relative; flex: 0 0 auto; width: 2.125rem; height: 2.125rem; border-radius: 0.5625rem; display: inline-grid; place-items: center;
  background: rgba(255, 255, 255, .08); font-size: .95rem;
}
.app-menu-texte { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* 3.30.3 : entrée avec compteur : seul le libellé est coupé, le compteur reste visible */
.app-menu-texte:has(> .app-menu-libelle) { display: flex; align-items: center; }
.app-menu-libelle { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.app-menu-libelle + .assist-badge { flex: 0 0 auto; }
.app-menu-fleche { font-size: .75rem; opacity: .7; transition: transform .2s; }
.app-menu-lien[aria-expanded="true"] .app-menu-fleche { transform: rotate(90deg); }
.app-menu-sous { margin: 0 0 0.25rem 2.875rem; padding-left: 0.5rem; border-left: 1px solid rgba(255, 255, 255, .14); }
.app-menu-sous .app-menu-lien { min-height: 2.375rem; font-size: .92rem; font-weight: 400; padding: 0.25rem 0.625rem; }
.assist-badge {
  display: inline-block; min-width: 1.4em; padding: 0 .4em; margin-left: .4em; border-radius: 62.4375rem;
  background: #ffd43b; color: #3b2b00; font-size: .75rem; font-weight: 700; text-align: center; line-height: 1.5;
}
.app-menu-pied { flex: 0 0 auto; padding: 0.625rem 0.75rem 0.75rem; border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .14); }
.app-menu-taille { display: flex; align-items: center; gap: 0.25rem; margin-bottom: 0.625rem; font-size: .88rem; }
.app-menu-taille > span { margin-right: auto; display: flex; align-items: center; gap: 0.5rem; }
.taille-btn {
  min-width: 2rem; padding: 0.125rem 0.5rem; border-radius: 0.375rem; border: 1px solid rgba(255, 255, 255, .25);
  background: transparent; color: rgba(255, 255, 255, .85); font-size: .8rem; font-weight: 600;
}
.taille-btn:hover { background: rgba(255, 255, 255, .10); color: #fff; }
.taille-btn.is-active { background: #fff; border-color: #fff; color: var(--sbg-nuit); }
.app-menu-user { display: flex; align-items: center; gap: 0.625rem; }
.app-menu-user-nom { flex: 1 1 auto; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-menu-user .app-menu-ico { background: rgba(255, 255, 255, .12); }
.app-menu-sortie {
  flex: 0 0 auto; width: 2.25rem; height: 2.25rem; border-radius: 0.5625rem; display: inline-grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .16); color: #fff;
}
.app-menu-sortie:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* Bas du menu (3.8.22) : taille S/M/L en sélecteur segmenté, utilisateur avec rond, bouton de déconnexion discret */
.app-menu-pied { padding: 0.75rem 1.25rem 0.875rem; background: rgba(0, 0, 0, .2); border-top: 1px solid rgba(255, 255, 255, .08); } /* 20 px : même bord que les icônes des liens du menu */
.app-menu-taille { gap: 0; margin-bottom: 0.75rem; font-size: .82rem; color: rgba(255, 255, 255, .7); }
.app-menu-taille > span { gap: 0.4375rem; }
.app-menu-taille > span i { font-size: .9em; opacity: .75; }
.app-menu-taille .taille-btn {
  min-width: 2rem; height: 1.625rem; padding: 0 0.5rem; border: 0; border-radius: 0; margin: 0;
  background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .75); font-size: .75rem; font-weight: 600; line-height: 1.625rem;
  transition: background .15s, color .15s;
}
.app-menu-taille > span + .taille-btn { border-radius: 0.4375rem 0 0 0.4375rem; }
.app-menu-taille .taille-btn:last-child { border-radius: 0 0.4375rem 0.4375rem 0; }
.app-menu-taille .taille-btn + .taille-btn { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .08); }
.app-menu-taille .taille-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.app-menu-taille .taille-btn.is-active { background: #fff; color: var(--sbg-nuit); box-shadow: none; }
.app-menu-user { gap: 0.625rem; padding-top: 0.75rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.app-menu-user .app-menu-ico { width: 2.125rem; height: 2.125rem; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: .85rem; }
.app-menu-user-nom { font-size: .92rem; font-weight: 600; }
.app-menu-sortie { width: 2.125rem; height: 2.125rem; border: 0; border-radius: 0.5rem; background: transparent; color: rgba(255, 255, 255, .7); font-size: .95rem; }
.app-menu-sortie:hover, .app-menu-sortie:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; }

/* Grand écran : barre latérale fixe pleine hauteur, repliable */
@media (min-width: 992px) {
  .app-menu {
    position: sticky; top: 0; flex: 0 0 var(--menu-largeur); width: var(--menu-largeur);
    height: 100vh; height: 100dvh; display: flex; flex-direction: column;
  }
  .app-menu .offcanvas-body { flex: 1 1 auto; overflow: hidden; }
  html.menu-replie .app-menu { flex-basis: var(--menu-largeur-replie); width: var(--menu-largeur-replie); }
  html.menu-replie .app-menu-texte, html.menu-replie .app-menu-fleche, html.menu-replie .app-menu-version,
  html.menu-replie .app-menu-logo, html.menu-replie .app-menu-sous, html.menu-replie .app-menu-taille,
  html.menu-replie .app-menu-user-nom, html.menu-replie .assist-badge:not(.assist-badge-ico) { display: none !important; }
  html.menu-replie .app-menu-lien { justify-content: center; padding: 0.375rem 0; }
  html.menu-replie .app-menu-tete { justify-content: center; }
  html.menu-replie .app-menu-user { flex-direction: column; }
}
.assist-badge-ico { display: none; }
html.menu-replie .assist-badge-ico { display: inline-block; position: absolute; top: -0.375rem; right: -0.5rem; margin: 0; }

/* ================= 5. EN-TÊTE DE PAGE (titre + boutons d'action) ================= */
.v2-entete {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.25rem;
  background: #fff; border: 1px solid var(--sbg-trait-doux); border-radius: 0.75rem;
  padding: 1.5rem 1.75rem; box-shadow: var(--sbg-ombre);
}
.v2-entete-page { margin-bottom: 1.125rem; align-items: center; }
.v2-identite { display: flex; gap: 1.25rem; align-items: center; min-width: 0; }
.v2-entete-page .v2-identite { gap: 1rem; }
.v2-titre { min-width: 0; }
.v2-titre h1 { font-size: 2rem; line-height: 1.1; margin: 0 0 0.25rem; }
.v2-entete-page .v2-titre h1 { font-size: 1.75rem; margin: 0; }
.v2-sous-titre { color: var(--sbg-gris); margin: 0 0 0.625rem; }
.v2-entete-page .v2-sous-titre { margin-top: 0.375rem; }
.v2-sep::before { content: ""; display: inline-block; width: 0.25rem; height: 0.25rem; border-radius: 50%; background: currentColor; opacity: .5; margin: 0 .6em .2em; vertical-align: middle; }
.v2-puces { display: flex; flex-wrap: wrap; gap: 0.375rem; list-style: none; margin: 0; padding: 0; }
.v2-puces li { background: var(--sbg-brume); color: var(--sbg-encre); border: 1px solid var(--sbg-trait-doux); border-radius: 62.4375rem; padding: 0.1875rem 0.6875rem; font-size: .875rem; }
.v2-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.v2-entete-page .v2-action { margin: 0; }
.v2-action { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; margin: 0 .5rem .5rem 0; }
.v2-action i { font-size: .9em; }
.v2-action .v2-compte { margin-left: 0; }
.v2-action.btn-primary .v2-compte { background: rgba(255, 255, 255, .22); color: #fff; }
.v2-action-neutre { background: #fff; border: 1px solid var(--sbg-trait); color: var(--sbg-encre) !important; }
.v2-action-neutre i { color: var(--sbg-bleu); }
.v2-action-neutre:hover { background: var(--sbg-brume); border-color: #a9bcc8; }
.v2-action-danger { background: #fff; border: 1px solid #f3c6c1; color: var(--sbg-erreur) !important; }
.v2-action-danger:hover { background: #fdf0ef; color: #8f1b13 !important; }
/* « Envoyer par » (détail d'un document) : un bouton neutre avec deux petites icônes ronds, imprimante et e-mail */
.v2-envoyer-par { cursor: default; gap: .4rem; padding-right: .4rem; }
.v2-envoyer-par:hover { background: #fff; border-color: var(--sbg-trait); }
.v2-envoyer-par a { width: 1.75rem; height: 1.75rem; display: inline-grid; place-items: center; border-radius: 50%; background: var(--sbg-brume); color: var(--sbg-bleu); text-decoration: none; }
.v2-envoyer-par a:hover { background: var(--sbg-bleu); color: #fff; }
.v2-envoyer-par a i { color: inherit; font-size: .85rem; margin: 0; }
.v2-btn-icone { width: 2.5rem; height: 2.375rem; padding: 0 !important; display: inline-grid; place-items: center; border: 1px solid var(--sbg-trait); background: #fff; color: var(--sbg-bleu); }
.v2-btn-icone:hover { background: var(--sbg-brume); color: var(--sbg-nuit); }
.v2-btn-danger { color: var(--sbg-erreur); }
.v2-btn-danger:hover { background: #fdf0ef; color: #8f1b13; border-color: #f3c6c1; }
.v2-compte { display: inline-block; min-width: 1.6em; padding: 1px 0.4375rem; margin-left: 0.25rem; border-radius: 62.4375rem; background: #e4edf2; color: var(--sbg-bleu); font-size: .8rem; font-weight: 600; text-align: center; }
.v2-entete-page .cols-toggle .btn { padding: .375rem .8rem; }
.extranet-step > header:first-child:empty { display: none; }

/* Boutons 1 / 2 colonnes (3.8.31) : les autres boutons alignés à gauche, seul le groupe 1 / 2 poussé tout à droite de l'en-tête */
.v2-entete-page .v2-actions:has(> .cols-toggle) { flex: 1 1 auto; justify-content: flex-start; }
.v2-entete-page .v2-actions > .cols-toggle { order: 99; margin-left: auto; }

/* Rond du contact (initiales, photo, logo, nombre) */
.v2-avatar {
  flex: 0 0 auto; width: 4.5rem; height: 4.5rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--sbg-bleu); color: #fff; font-weight: 700; font-size: 1.6rem; letter-spacing: .02em;
  box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--sbg-trait);
}
.v2-avatar-petit { width: 3.25rem; height: 3.25rem; font-size: 1.15rem; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--sbg-trait); }
.v2-avatar-nombre { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.v2-avatar-logo { background: #fff; overflow: hidden; }
.v2-avatar-logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.v2-avatar-logo img[src*="/image/icone"] { max-width: none; max-height: none; width: 100%; height: 100%; }
.v2-avatar-form { margin: 0; flex: 0 0 auto; }
.v2-avatar-clic { position: relative; cursor: pointer; overflow: hidden; margin: 0; }
.v2-avatar-photo { background: #fff; }
.v2-avatar-photo img { width: 100%; height: 100%; object-fit: cover; }
.v2-avatar-camera { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 35, 60, .55); color: #fff; font-size: 1.1rem; opacity: 0; transition: opacity .15s; }
.v2-avatar-clic:hover .v2-avatar-camera, .v2-avatar-clic:focus-within .v2-avatar-camera { opacity: 1; }
/* 3.46.5 : photo du contact agrandie au clic ; pas de menu « Enregistrer l'image » à l'appui long (téléphone) */
.v2-avatar-photo, .v2-avatar-photo img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.v2-photo-grande { position: relative; background: transparent; border: 0; box-shadow: none; }
.v2-photo-grande img { display: block; width: 100%; height: auto; max-height: 85vh; object-fit: contain; border-radius: .75rem; cursor: zoom-out; }
.v2-photo-grande .btn-close { position: absolute; top: .6rem; right: .6rem; z-index: 1; background-color: #fff; border-radius: 50%; padding: .55rem; opacity: .9; }
#v2PhotoModal .v2-photo-zone { height: min(60vh, 28.75rem); background: var(--sbg-brume); }
#v2PhotoModal .v2-photo-zone img { display: block; max-width: 100%; }

/* Onglets du contact (Fiche, Contrats, Commissions, Documents…) */
.v2-onglets { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 1.125rem 0; border-bottom: 1px solid var(--sbg-trait); }
.v2-onglets a { padding: 0.625rem 1rem; margin-bottom: -1px; color: var(--sbg-gris); font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.v2-onglets a:hover { color: var(--sbg-bleu); text-decoration: none; }
.v2-onglets a.actif { color: var(--sbg-encre); font-weight: 600; border-bottom-color: var(--sbg-bleu); }
.v2-contexte { margin: 0 0 0.875rem; }
.v2-contexte .v2-onglets { margin: 0.375rem 0 0; }
.v2-entete-page + .v2-contexte, .v2-entete-page + .v2-contexte .v2-onglets { margin-top: 0; }

/* ================= 6. CADRES ET FICHES ================= */
.extranet-step, .extranet-card {
  background: #fff; border: 1px solid var(--sbg-trait-doux); border-radius: 0.75rem;
  padding: 1.5rem 1.75rem; box-shadow: var(--sbg-ombre);
}
.extranet-step h1, .extranet-card h1 { font-size: 1.75rem; }
.extranet-step ~ .extranet-step { margin-top: 1.125rem; } /* aussi quand une fenêtre (modal) est placée entre deux cartes (3.9.26) */
.card { --bs-card-border-color: var(--sbg-trait-doux); --bs-card-border-radius: 12px; }

.v2-page { max-width: none; }
.v2-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21.25rem), 1fr)); gap: 1.125rem; }
.v2-bloc { background: #fff; border: 1px solid var(--sbg-trait-doux); border-radius: 0.75rem; padding: 1.125rem 1.375rem 0.75rem; }
.v2-bloc h2 { font-size: 1rem; font-weight: 600; margin: 0 0 0.625rem; padding-bottom: 0.625rem; border-bottom: 1px solid var(--sbg-trait-doux); }
.v2-bloc dl { margin: 0; }
.v2-bloc-notes { grid-column: 1 / -1; }
.v2-champ { display: grid; grid-template-columns: minmax(6.5rem, 9rem) 1fr; gap: 0.75rem; padding: 0.375rem 0; }
.v2-champ + .v2-champ { border-top: 1px dashed #edf1f4; }
.v2-champ dt { font-weight: 400; color: var(--sbg-gris); font-size: .9rem; }
.v2-champ dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.v2-tel { white-space: nowrap; }
.v2-notes { white-space: normal; line-height: 1.5; padding: 0.25rem 0 0.5rem; }
.v2-vide { color: var(--sbg-gris); margin: 0 0 0.5rem; }
.v2-historique { display: flex; flex-wrap: wrap; gap: 0.375rem 1.5rem; margin-top: 1rem; color: var(--sbg-gris); font-size: .85rem; }
.v2-itineraire { display: flex; gap: .4rem; margin-top: .45rem; }
.v2-itineraire .btn.v2-btn-mini { width: 2rem; height: 1.875rem; padding: 0 !important; font-size: .85rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }

/* Fiche contact (3.8.13) : 2 cartes (Client, Dossier) côte à côte sur grand écran, l'une sous l'autre sur téléphone */
.v2-deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26.25rem), 1fr)); gap: 1.125rem; align-items: start; }
.v2-carte { padding: 1.25rem 1.5rem 1.125rem; }
.v2-pile { display: flex; flex-direction: column; gap: 1.125rem; min-width: 0; }
.v2-carte > h2 { display: flex; align-items: center; gap: 0.625rem; font-size: 1.1rem; margin: 0 0 0.875rem; padding-bottom: 0.75rem; }
.v2-carte > h2 > i { width: 2rem; height: 2rem; border-radius: 0.5625rem; display: inline-grid; place-items: center; background: #e4edf2; color: var(--sbg-bleu); font-size: .9rem; }
.v2-carte dl { margin: 0; }
.v2-carte dl + dl > .v2-champ:first-child, .v2-adresse-bloc + dl > .v2-champ:first-child { border-top: 1px dashed #edf1f4; }
.v2-adresse-bloc { margin-bottom: 0.375rem; }
.v2-carte .v2-notes, .v2-carte .v2-vide { padding: 0; margin: 0; font-weight: 400; }
.v2-groupe-titre { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--sbg-gris); margin: 1.125rem 0 0.25rem; }
.v2-carte .v2-champ { grid-template-columns: minmax(8rem, 11rem) 1fr; padding: 0.3125rem 0; }
.v2-adresse-bloc { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; padding: 0 0 0.625rem; }
.v2-adresse { margin: 0; font-style: normal; line-height: 1.45; display: flex; flex-direction: column; }
.v2-adresse strong { font-size: 1.5rem; line-height: 1.25; margin: .1rem 0 .35rem; }
.v2-adresse-titre, .v2-adresse-canton { color: var(--sbg-gris); font-size: .92rem; }
.v2-adresse-lien { display: flex; flex-direction: column; color: var(--sbg-bleu); text-decoration: none; }
.v2-adresse-lien:hover, .v2-adresse-lien:focus-visible { color: var(--sbg-bleu-fonce); text-decoration: underline; text-underline-offset: 3px; }
.v2-adresse-bloc .v2-itineraire { margin: 0; flex: 0 0 auto; }
.v2-adresse-bloc .v2-itineraire .btn.v2-btn-mini { width: 2rem; height: 2rem; border-radius: 0.5625rem; background: #e4edf2; border-color: #e4edf2; color: var(--sbg-bleu); font-size: .9rem; }
.v2-adresse-bloc .v2-itineraire .btn.v2-btn-mini:hover { background: var(--sbg-bleu); border-color: var(--sbg-bleu); color: #fff; }
.v2-adresse-bloc .v2-itineraire .btn.v2-btn-mini:hover > :is(i, b) { color: #fff; }
.v2-carte .v2-historique { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px dashed var(--sbg-trait-doux); flex-direction: column; gap: 0.25rem; }
.v2-historique i { width: 1.2em; margin-right: 0.375rem; color: #9aaab4; font-size: .8em; }
@media (max-width: 767.98px) {
  .v2-carte { padding: 0.875rem 0.875rem 0.75rem; }
  .v2-carte .v2-champ { grid-template-columns: 9rem 1fr; gap: 0.5rem; }
}

/* Statuts des contrats */
.v2-statut { display: inline-block; padding: 0.125rem 0.625rem; border-radius: 62.4375rem; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.v2-statut-grand { font-size: .9rem; padding: 0.25rem 0.75rem; }
.v2-st-actif { background: #e4edf2; color: var(--sbg-bleu); }
.v2-st-fin { background: #fff3dc; color: #8a5300; }
.v2-st-traitement { background: #fff7e6; color: #8a5300; border: 1px dashed #f2d9a6; }
.v2-st-archive { background: #eef0f2; color: var(--sbg-gris); }
.v2-ech-passee { color: var(--sbg-erreur); }
#liste_contrats .v2-num { text-align: right; white-space: nowrap; }
#liste_contrats .v2-col-date { width: 10.5rem; min-width: 10.5rem; white-space: nowrap; }

/* Cadres : CLAIR = informations ; cadre MODIFIABLE = fond blanc, filet bleu SBG en haut, contour bleu léger, titre bleu, champs blancs.
   La classe cadre-modif est posée automatiquement par le script du gabarit sur le cadre le plus proche de chaque champ modifiable
   (les recherches et filtres de liste, les cases à cocher seules et les dépôts de fichier ne comptent pas). */
.cadre-modif {
  background: #e8f0f6 !important; border: 1px solid rgba(35, 85, 118, .35) !important; /* bleu SBG très clair : les champs blancs se détachent */
  box-shadow: var(--sbg-ombre) !important; /* même ombre légère que les autres cartes */
}
.cadre-modif > :is(h2, h3, h4, header, .dp-groupe-titre):first-child,
.cadre-modif > header:first-child :is(h1, h2, h3),
.cadre-modif > .card-body > :is(h2, h3, h4, h5, .card-title):first-child { color: var(--sbg-bleu) !important; }
.cadre-modif :is(.form-control, .form-select):not(:disabled):not([readonly]) { background-color: #fff; border-color: #c3d4df; }

/* ================= 7. TABLEAUX ================= */
.table {
  --bs-table-color: var(--sbg-encre); --bs-table-bg: transparent; --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: var(--sbg-survol); --bs-table-border-color: var(--sbg-trait-doux);
  width: 100%;
}
.table > :not(caption) > * > * { background-color: transparent; border-bottom-color: var(--sbg-trait-doux); }
.table > thead th {
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: #fff; background: var(--sbg-entete-tableau); border-bottom: 1px solid var(--sbg-bleu-fonce);
  padding: .65rem .75rem; white-space: nowrap;
}
.table > tbody > tr > td, .table > tbody > tr > th { padding: .3rem .75rem; vertical-align: middle; }
/* Listes (tableaux à en-tête) : une ligne sur deux en gris-bleu clair, comme sur téléphone (3.10.9).
   Pas sur les fiches libellé / valeur (detail-part) ni sur la comparaison des doublons. Le survol reste prioritaire. */
.table:has(> thead):not(.detail-part):not([data-pas-fiches]:not(.table-contacts)) > tbody > tr:nth-child(even) > :is(td, th) { background-color: var(--sbg-ligne-paire); }
.table tbody tr:hover > td, .table tbody tr:hover > th,
.table:has(> thead):not(.detail-part):not([data-pas-fiches]:not(.table-contacts)) > tbody > tr:hover > :is(td, th) { background-color: var(--sbg-survol); }
.table tbody td:first-child:has(> .d-flex > a .extranet-icon-small),
.table tbody td:first-child:has(> a .extranet-icon-small) { width: 1%; white-space: nowrap; }
.table tbody tr.row-clickable { cursor: pointer; }
.table th a.th-tri { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; }
.table th a.th-tri:hover { text-decoration: underline; }
.table th a.th-tri .th-tri-fleche { font-size: .7em; opacity: .8; }
.table.com-lignes th a.th-tri .th-tri-double { display: inline-flex; flex-direction: column; justify-content: center; line-height: .8; font-size: .6rem; opacity: 1; margin-left: .15rem; }
.table.com-lignes th a.th-tri .th-tri-double span { opacity: .4; }
.table.com-lignes th a.th-tri .th-tri-double span.actif { opacity: 1; }
/* Fiches (tableaux libellé / valeur) */
.table.detail-part { border-collapse: separate; border-spacing: 0; border: 1px solid var(--sbg-trait-doux); border-radius: 0.75rem; overflow: hidden; background: #fff; }
.table.detail-part > tbody > tr > th { width: 40%; font-size: .9rem; font-weight: 400; color: var(--sbg-gris); padding: .55rem 1rem; white-space: normal; }
.table.detail-part > tbody > tr > td { font-weight: 500; padding: .3rem 1rem; }
.table.detail-part > tbody > tr > * { border-bottom: 1px dashed #e7edf1; }
.table.detail-part > tbody > tr:last-child > * { border-bottom: 0; }
.table.detail-part tbody tr:hover > * { background-color: transparent; }
.table:not(:has(thead)) > tbody > tr > th { width: 38%; min-width: 9rem; font-size: .9rem; font-weight: 400; color: var(--sbg-gris); white-space: normal; }
.table:not(:has(thead)) > tbody > tr > td { font-weight: 500; }
.table:not(:has(thead)) > tbody > tr > * { border-bottom: 1px dashed #e7edf1; }

/* ================= 8. FORMULAIRES ET BOUTONS ================= */
.form-control, .form-select { border: 1px solid var(--sbg-trait); border-radius: 0.5rem; min-height: 2.4rem; color: var(--sbg-encre); }
textarea.form-control { min-height: 0; }
.form-control:hover, .form-select:hover { border-color: #a9bcc8; }
.form-control:focus, .form-select:focus { border-color: var(--sbg-bleu); box-shadow: var(--sbg-halo); }
.form-control:disabled, .form-control[readonly], .form-select:disabled { background-color: var(--sbg-brume); color: var(--sbg-gris); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--sbg-erreur); }
.form-control.is-invalid + .invalid-feedback, .form-select.is-invalid + .invalid-feedback { display: block; }
.form-check-input:checked { background-color: var(--sbg-bleu); border-color: var(--sbg-bleu); }
.form-check-input:focus { border-color: var(--sbg-bleu); box-shadow: var(--sbg-halo); }
.form-label, label.col-form-label { color: var(--sbg-gris); font-weight: 500; font-size: .92rem; }
.form-compact .form-control, .form-compact .form-select { padding-top: .3rem; padding-bottom: .3rem; }
/* Champ de recherche principal (recherche contacts) : bien visible */
.recherche-principale { position: relative; }
.recherche-principale > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--sbg-bleu); font-size: 1.05rem; pointer-events: none; }
.recherche-principale .form-control { height: 3.125rem; padding-left: 2.875rem; font-size: 1.08rem; background-color: #fff; border: 2px solid #8fb1c7; border-radius: 0.625rem; box-shadow: 0 2px 6px rgba(18, 50, 74, .06); }
.recherche-principale .form-control::placeholder { color: #8a99a6; }
.recherche-principale .form-control:focus { border-color: var(--sbg-bleu); box-shadow: 0 0 0 4px rgba(35, 85, 118, .15); }
.extranet-step .form-group.row, .extranet-step form > .row.mb-3 { padding-bottom: .75rem; margin-bottom: .75rem !important; border-bottom: 1px dashed #edf1f4; }
.extranet-textarea { width: 100%; display: block; resize: vertical; }

.btn { font-weight: 600; border-radius: 0.5rem; padding-left: 1rem; padding-right: 1rem; }
/* 4 sortes de boutons : PRINCIPAL bleu plein (btn-primary, une action principale par zone) · CRÉER bleu au contour (btn-outline-primary : nouveau, ajouter)
   · NEUTRE blanc, bord gris, icône bleue (btn-secondary, btn-outline-secondary, btn-light : aller ailleurs, télécharger, annuler…) · SUPPRIMER rouge (btn-danger, btn-outline-danger, v2-btn-danger).
   Une seule taille : btn-sm et btn-lg ramenés à la taille normale, sauf dans les lignes de tableau et les listes, et les gros boutons du Scan IA. */
.extranet-page .btn-sm, .extranet-page .btn-lg { --bs-btn-padding-y: .375rem; --bs-btn-font-size: 1rem; --bs-btn-border-radius: 8px; }
.extranet-page :is(td, li) .btn-sm { --bs-btn-padding-y: .25rem; --bs-btn-font-size: .875rem; padding-left: .6rem; padding-right: .6rem; }
#outils_depot .btn-lg { --bs-btn-padding-y: .6rem; --bs-btn-font-size: 1.15rem; }
.btn:focus-visible { box-shadow: var(--sbg-halo); }
a.btn { color: var(--bs-btn-color); }
a.btn:hover { color: var(--bs-btn-hover-color); text-decoration: none; }
.btn-primary, .btn-success {
  --bs-btn-bg: var(--sbg-bleu); --bs-btn-border-color: var(--sbg-bleu);
  --bs-btn-hover-bg: var(--sbg-bleu-fonce); --bs-btn-hover-border-color: var(--sbg-bleu-fonce);
  --bs-btn-active-bg: var(--sbg-nuit); --bs-btn-active-border-color: var(--sbg-nuit);
  --bs-btn-disabled-bg: var(--sbg-bleu); --bs-btn-disabled-border-color: var(--sbg-bleu);
}
.btn-outline-primary, .btn-outline-success {
  --bs-btn-color: var(--sbg-bleu); --bs-btn-border-color: var(--sbg-bleu);
  --bs-btn-hover-bg: var(--sbg-bleu); --bs-btn-hover-border-color: var(--sbg-bleu);
  --bs-btn-active-bg: var(--sbg-nuit); --bs-btn-active-border-color: var(--sbg-nuit);
}
.btn-secondary, .btn-outline-secondary, .btn-light {
  --bs-btn-color: var(--sbg-encre); --bs-btn-bg: #fff; --bs-btn-border-color: var(--sbg-trait);
  --bs-btn-hover-color: var(--sbg-encre); --bs-btn-hover-bg: var(--sbg-brume); --bs-btn-hover-border-color: #a9bcc8;
  --bs-btn-active-color: var(--sbg-encre); --bs-btn-active-bg: var(--sbg-brume); --bs-btn-active-border-color: #a9bcc8;
}
.btn:is(.btn-secondary, .btn-outline-secondary, .btn-light):not(.v2-btn-danger) > i { color: var(--sbg-bleu); }
.btn-danger { --bs-btn-bg: var(--sbg-erreur); --bs-btn-border-color: var(--sbg-erreur); --bs-btn-hover-bg: #8f1b13; --bs-btn-hover-border-color: #8f1b13; }
.btn-outline-danger {
  --bs-btn-color: var(--sbg-erreur); --bs-btn-bg: #fff; --bs-btn-border-color: #f3c6c1;
  --bs-btn-hover-color: #8f1b13; --bs-btn-hover-bg: #fdf0ef; --bs-btn-hover-border-color: #f3c6c1;
  --bs-btn-active-color: #8f1b13; --bs-btn-active-bg: #fdf0ef; --bs-btn-active-border-color: #f3c6c1;
}
.btn-check:checked + .btn-outline-secondary { background: #8a99a3; border-color: #8a99a3; color: #fff; }
.btn-group > .btn { border-radius: 0; }
.btn-group > .btn:first-child, .btn-group > .btn-check:first-child + .btn { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.btn-group > .btn:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.cols-toggle .btn { padding: .25rem .75rem; font-size: .9rem; }

/* Grandes icônes d'action encore présentes dans quelques pages : boutons carrés blancs */
.extranet-icon-wrap {
  position: relative; width: 2.625rem; height: 2.625rem; border-radius: 0.625rem; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--sbg-trait); box-shadow: 0 1px 2px rgba(21, 35, 45, .05);
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.extranet-icon-wrap i { color: var(--sbg-bleu); font-size: 1.0625rem !important; line-height: 1; }
.extranet-icon-wrap:hover { background: var(--sbg-brume); border-color: #a9bcc8; box-shadow: 0 0 0 3px rgba(35, 85, 118, .12); }
.extranet-icon-wrap.extranet-icon-delete i { color: var(--sbg-erreur); }
.extranet-icon-wrap.extranet-icon-delete:hover { background: #fdf0ef; border-color: #f3c6c1; }
.extranet-badge {
  position: absolute; top: -0.5rem; right: -0.5rem; min-width: 1.25rem; height: 1.25rem; padding: 0 0.3125rem; border-radius: 62.4375rem;
  display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; line-height: 1;
  background: var(--sbg-bleu); color: #fff; border: 2px solid #fff;
}
/* Petites icônes rondes des tableaux */
.extranet-icon-small {
  width: 1.625rem; height: 1.625rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #e4edf2; transition: background .15s, transform .15s;
}
.extranet-icon-small i { color: var(--sbg-bleu); font-size: 0.6875rem; line-height: 1; }
.extranet-icon-small:hover { background: var(--sbg-bleu); transform: scale(1.1); }
.extranet-icon-small:hover i { color: #fff; }
.extranet-icon-small i.extranetticon-danger { color: var(--sbg-erreur); }
.extranet-icon-small:hover i.extranetticon-danger { color: #fff; }

/* ================= 9. PETITS ÉLÉMENTS ================= */
/* Infobulles */
.extranet-tooltip { position: relative; display: inline-block; }
.extranet-tooltip .extranet-tooltip-box {
  position: absolute; top: calc(100% + 0.5rem); left: 50%; transform: translateX(-50%); z-index: 1080;
  background: var(--sbg-nuit); color: #fff; padding: 0.3125rem 0.625rem; border-radius: 0.3125rem; font-size: .75rem; font-weight: 500;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; box-shadow: 0 6px 16px rgba(18, 50, 74, .2);
}
.extranet-tooltip:hover .extranet-tooltip-box { opacity: 1; }
/* Oui / Non : rond vert coché (oui), rond rouge avec croix (non) */
.etat-oui, .etat-non { font-size: 1.15rem; vertical-align: -0.15em; }
.etat-oui { color: #198754; }
.etat-non { color: #dc3545; }
.badge { border-radius: 62.4375rem; font-weight: 600; padding: .35em .7em; }
.badge-oui { background: var(--sbg-bleu); color: #fff; }
.badge-non { background: #e4e9ec; color: var(--sbg-gris); }
/* Liens externes en pastille (site web, primes…) */
a.lien-rond { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 0.625rem; background: rgba(35, 85, 118, .09); color: var(--sbg-bleu); font-size: 1.05rem; text-decoration: none; transition: background .15s, color .15s; }
a.lien-rond:hover { background: var(--sbg-bleu); color: #fff; }
/* Fournisseurs */
.col-ouinon { width: 8.5rem; min-width: 8.5rem; text-align: center; white-space: nowrap; }
.logo-fournisseur { display: block; max-height: 4rem; max-width: 15rem; width: auto; height: auto; object-fit: contain; }
/* Onglets Bootstrap (Actifs / Archives…) : soulignés */
.nav-tabs { border-bottom: 1px solid var(--sbg-trait); gap: 0.25rem; }
.nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; border-radius: 0; margin-bottom: -1px; padding: 0.625rem 1rem; color: var(--sbg-gris); font-weight: 500; }
.nav-tabs .nav-link:hover { color: var(--sbg-bleu); border-bottom-color: var(--sbg-trait); }
.nav-tabs .nav-link.active { background: transparent; color: var(--sbg-encre); font-weight: 600; border-bottom-color: var(--sbg-bleu); }
/* Onglets en forme de dossiers (liste des contrats, 3.10.4) : le dossier ouvert est blanc, relevé, et s'ouvre sur son contenu (.dossier-contenu) */
.onglets-dossiers { display: flex; align-items: flex-end; gap: 0.25rem; padding: 0.5rem 0.75rem 0; position: relative; z-index: 1; margin-bottom: -1px; }
.onglets-dossiers .dossier { position: relative; display: inline-flex; align-items: center; gap: 0.625rem; flex: 0 0 auto; height: 2.625rem; padding: 0 1rem; border: 1px solid var(--sbg-trait-doux); border-bottom: 0; border-radius: 0.75rem 0.75rem 0 0; background: linear-gradient(180deg, var(--sbg-brume-2), var(--sbg-brume)); color: var(--sbg-gris); font-size: .95rem; font-weight: 500; white-space: nowrap; transition: background-color .15s, color .15s; }
.onglets-dossiers .dossier:hover { background: #fff; color: var(--sbg-encre); text-decoration: none; }
.onglets-dossiers .dossier i { font-size: .9em; opacity: .7; }
.onglets-dossiers .dossier.vide { color: #8d9ba4; }
.onglets-dossiers .dossier.ouvert { height: 3rem; padding: 0 1.25rem; background: #fff; color: var(--sbg-encre); font-weight: 600; box-shadow: 0 -6px 14px -8px rgba(21, 35, 45, .25); }
.onglets-dossiers .dossier.ouvert::before { content: ""; position: absolute; top: -1px; left: 0.75rem; right: 0.75rem; height: 0.1875rem; border-radius: 0 0 0.1875rem 0.1875rem; background: var(--sbg-bleu); }
.onglets-dossiers .dossier.ouvert i { color: var(--sbg-bleu); opacity: 1; }
.onglets-dossiers .compte { min-width: 1.6rem; padding: 0.125rem 0.4375rem; border-radius: 62.4375rem; background: rgba(91, 107, 118, .12); font-size: .75rem; font-weight: 600; line-height: 1.3; text-align: center; font-variant-numeric: tabular-nums; }
.onglets-dossiers .dossier.ouvert .compte { background: var(--sbg-bleu); color: #fff; }
.dossier-contenu { background: #fff; border: 1px solid var(--sbg-trait-doux); border-radius: 0.75rem; box-shadow: 0 1px 2px rgba(21, 35, 45, .04), 0 10px 28px -12px rgba(21, 35, 45, .18); padding: 0.625rem 0.5rem 0.5rem; }
.dossier-contenu > .table { margin-bottom: 0; }
@media (max-width: 575.98px) {
  .onglets-dossiers { gap: 0.1875rem; padding: 0.375rem 0.125rem 0; }
  .onglets-dossiers .dossier { flex: 1 1 auto; justify-content: center; height: 2.375rem; padding: 0 0.375rem; gap: 0.3125rem; font-size: .8rem; border-radius: 0.625rem 0.625rem 0 0; }
  .onglets-dossiers .dossier.ouvert { height: 2.625rem; padding: 0 0.375rem; }
  .onglets-dossiers .dossier.ouvert::before { left: 0.5rem; right: 0.5rem; }
  .onglets-dossiers .dossier i { display: none; }
  .onglets-dossiers .compte { min-width: 1.3rem; padding: 1px 0.3125rem; font-size: .7rem; }
  .dossier-contenu { padding: 0.125rem; overflow-x: auto; }
}
/* Pagination */
.pagination {
  gap: 0.25rem; flex-wrap: wrap;
  --bs-pagination-color: var(--sbg-bleu); --bs-pagination-border-color: var(--sbg-trait-doux);
  --bs-pagination-hover-color: var(--sbg-bleu-fonce); --bs-pagination-hover-bg: var(--sbg-brume); --bs-pagination-hover-border-color: var(--sbg-trait);
  --bs-pagination-focus-box-shadow: var(--sbg-halo); --bs-pagination-active-bg: var(--sbg-bleu); --bs-pagination-active-border-color: var(--sbg-bleu);
  --bs-pagination-disabled-color: #9aaab4;
}
.pagination .page-link { border-radius: 0.5rem !important; min-width: 2.1rem; text-align: center; }
/* Messages */
.alert { border-radius: 0.625rem; }
.alert-success { background: #ecf6f1; color: #1d6b45; border-color: #bfe0cf; }
.alert-danger { background: #fdf0ef; color: var(--sbg-erreur); border-color: #f3c6c1; }
.alert-warning { background: #fff7e6; color: #8a5300; border-color: #f2d9a6; }
.alert-info { background: #e9f2f7; color: var(--sbg-nuit); border-color: #c4dbe7; }
.message-ok { color: #198754; }
.extranet-alert-blink { animation: extranet-clignote 1.2s ease-in-out infinite; }
@keyframes extranet-clignote { 50% { opacity: .3; } }
/* Avertissement de saisie caché tant qu'on n'a pas touché un champ de son cadre (plus fort que .d-flex de Bootstrap) */
[data-alerte-saisie][hidden] { display: none !important; }
/* Fenêtres */
.modal-content { border-radius: 0.75rem; border: 1px solid var(--sbg-trait-doux); }
/* Fenêtre de saisie (3.39.17) : en-tête et pied blancs, corps bleu-gris, champs blancs bien bordés, intitulés foncés.
   Même présentation que la fenêtre d'envoi du Traducteur. Sans elle, les champs ont la couleur du fond de la fenêtre. */
.v2-fenetre-saisie { border: 0; overflow: hidden; box-shadow: 0 2px 6px rgba(21, 35, 45, .06), 0 16px 40px rgba(21, 35, 45, .16); }
.v2-fenetre-saisie > .modal-header { background: #fff; border-bottom: 1px solid var(--sbg-trait); }
.v2-fenetre-saisie > .modal-body { background: var(--sbg-brume); padding: 1.25rem 1.5rem; }
.v2-fenetre-saisie > .modal-footer { background: #fff; border-top: 1px solid var(--sbg-trait); }
.v2-fenetre-saisie .modal-body .form-label { color: var(--sbg-encre); font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.v2-fenetre-saisie .modal-body .form-label .text-muted { color: var(--sbg-gris) !important; font-weight: 400; }
.v2-fenetre-saisie .modal-body :is(.form-control, .form-select) { background-color: #fff; border-color: #b9cbd7; color: var(--sbg-encre); box-shadow: 0 1px 2px rgba(21, 35, 45, .05); }
.v2-fenetre-saisie .modal-body :is(.form-control, .form-select):hover { border-color: #8fb1c7; }
.v2-fenetre-saisie .modal-body :is(.form-control, .form-select):focus { border-color: var(--sbg-bleu); box-shadow: var(--sbg-halo); }
.v2-fenetre-saisie .modal-body :is(.form-control, .form-select):disabled { background-color: #e4ebf0; border-color: var(--sbg-trait); color: var(--sbg-gris); box-shadow: none; }
.v2-fenetre-saisie .modal-body .form-control::placeholder { color: var(--sbg-gris); opacity: .75; }
.v2-fenetre-saisie .modal-body .input-group > .btn-outline-secondary { background: #fff; border-color: #b9cbd7; color: var(--sbg-gris); }
.v2-fenetre-saisie .modal-body .input-group > .btn-outline-secondary:hover { background: var(--sbg-survol); color: var(--sbg-bleu); }
.v2-fenetre-saisie .modal-body .form-check-input:not(:checked) { background-color: #fff; border-color: #8fb1c7; }
.v2-fenetre-saisie .modal-body .form-check-input:checked { background-color: var(--sbg-bleu); border-color: var(--sbg-bleu); }
.v2-fenetre-saisie .modal-body .form-check-label { color: var(--sbg-encre); }

/* ================= 10. TÉLÉPHONE ET PETITE TABLETTE ================= */
@media (max-width: 991.98px) {
  .extranet-page { padding: 0.875rem 0.75rem 2rem; }
  /* le titre est dans la barre du haut : l'en-tête de page ne garde que le contact et les boutons */
  .v2-entete-page .v2-titre h1 { display: none; }
  .v2-entete-page .v2-titre:not(:has(.v2-sous-titre)) { display: none; }
  .v2-entete-page { padding: 0.75rem 0.875rem; gap: 0.625rem; margin-bottom: 0.75rem; }
  .v2-entete-page:not(:has(.v2-identite)):not(:has(.v2-titre .v2-sous-titre)) { background: transparent; border: 0; box-shadow: none; padding: 0; }
  /* boutons d'action : une ligne qui défile au doigt */
  .v2-entete-page .v2-actions { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 0.125rem; scrollbar-width: none; }
  .v2-entete-page .v2-actions::-webkit-scrollbar { display: none; }
  .v2-entete-page .v2-actions > * { flex: 0 0 auto; }
  .cols-toggle { display: none !important; }
  .extranet-step, .extranet-card { padding: 1rem 0.875rem; border-radius: 0.75rem; }
  .v2-entete { padding: 1rem; }
  .v2-avatar { width: 3.5rem; height: 3.5rem; font-size: 1.25rem; }
  .v2-titre h1 { font-size: 1.4rem; }
  .v2-champ { grid-template-columns: 1fr; gap: 0; }
  /* 3.20.16 : les onglets passent à la ligne (plus de défilement caché qui les coupait) ; téléphone : grille plus bas */
  .table.detail-part > tbody > tr > th { width: 45%; }
  /* champs : 16 px au moins, sinon le téléphone zoome sur la page en tapant */
  .form-control, .form-select { font-size: max(1rem, 1rem); min-height: 2.75rem; }
  .btn { min-height: 2.5rem; }
}

/* Listes sur téléphone : chaque ligne d'un tableau à en-tête devient une LIGNE FINE (titre en gras, valeurs en gris, bouton ⋮).
   Le script du gabarit ajoute à chaque ligne une cellule .ligne-mobile ; sur grand écran elle est cachée et le tableau reste complet. */
.ligne-mobile { display: none; }
@media (max-width: 767.98px) {
  .table-fiches > thead { display: none; }
  .table-fiches > tbody > tr > :not(.ligne-mobile) { display: none !important; }
  .table-fiches { table-layout: fixed; width: 100% !important; max-width: 100%; }
  .table-fiches > tbody > tr > td.ligne-mobile { display: table-cell; padding: .45rem .25rem .45rem .5rem !important; white-space: normal !important; width: auto !important; max-width: 100%; }
  .table-fiches .cm-meta { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  /* une ligne sur deux en gris-bleu clair, pour bien distinguer les lignes (3.8.47) */
  .table-fiches > tbody > tr:nth-child(even) > td.ligne-mobile { background-color: var(--sbg-ligne-paire); }
}
/* Onglets du contact et du contrat : icône + nom ; sur téléphone une ligne d'icônes qui tient dans la largeur, nom en petit dessous */
.v2-onglets a .onglet-ico { margin-right: .45rem; font-size: .9em; color: var(--sbg-gris); }
.v2-onglets a.actif .onglet-ico, .v2-onglets a:hover .onglet-ico { color: var(--sbg-bleu); }
.onglet-court { display: none; }
@media (max-width: 767.98px) {
  .v2-onglets { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; overflow: visible; margin: 0.375rem 0 0.625rem; }
  .v2-onglets a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.1875rem; min-width: 0; padding: 0.5rem 1px 0.4375rem; font-size: .66rem; letter-spacing: -.01em; text-align: center; }
  .v2-onglets a .onglet-ico { margin: 0; font-size: 1.1rem; }
  .v2-onglets a .onglet-lib { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .v2-onglets a .v2-compte { position: absolute; top: 0.125rem; left: calc(50% + 0.4375rem); margin: 0; min-width: 1.5em; padding: 0 0.25rem; font-size: .62rem; line-height: 1.45; }
  .onglet-long { display: none; }
  .onglet-court { display: inline; }
}
.cm-palette a.cm-danger i { color: var(--sbg-erreur); background: #fdf0ef; }
.cm-palette.show:has(> a:nth-child(5)) { grid-template-columns: repeat(5, 3.75rem); }
.cm-palette.show:has(> a:nth-child(5)) a { font-size: .66rem; }


/* En-tête de page sur téléphone : plus bas (petit rond, moins de marge) pour laisser la place à la liste */
@media (max-width: 767.98px) {
  .v2-entete-page { padding: 0.5rem 0.75rem; gap: 0.5rem; margin-bottom: 0.375rem; }
  .v2-entete-page .v2-identite { gap: 0.625rem; }
  .v2-entete-page .v2-avatar { width: 2.5rem; height: 2.5rem; font-size: .95rem; box-shadow: none; }
  .v2-entete-page .v2-sous-titre { margin: 0; }
  .v2-entete-page .v2-actions .btn { min-height: 2.25rem; padding-top: .25rem; padding-bottom: .25rem; }
  .extranet-page > .extranet-step, .v2-contexte + .extranet-step { padding: 0.75rem 0.625rem; }
}

/* Éditeur de PDF (fiche document, PDF Studio) : sur écran étroit, les boutons du bas passent à la ligne au lieu de sortir de l'écran */
@media (max-width: 767.98px) {
  .op-pied { flex-wrap: wrap !important; gap: 0.625rem; }
  .op-pied > * { max-width: 100%; }
}

/* Boutons d'en-tête sur téléphone : à partir de 4 boutons, icônes seules (le nom reste dans l'infobulle) pour qu'ils tiennent sur la largeur */
@media (max-width: 767.98px) {
  .v2-entete-page .v2-actions:has(> :nth-child(4)) { flex-wrap: wrap; overflow: visible; gap: 0.375rem; }
  .v2-entete-page .v2-actions:has(> :nth-child(4)) > .v2-action:has(> i) { font-size: 0; width: 2.625rem; height: 2.375rem; padding: 0 !important; justify-content: center; gap: 0; }
  .v2-entete-page .v2-actions:has(> :nth-child(4)) > .v2-action:has(> i) > i { font-size: 1rem; margin: 0 !important; }
  .v2-entete-page .v2-actions:has(> :nth-child(4)) > .v2-action:has(> i) .v2-compte { position: absolute; top: -0.375rem; right: -0.375rem; font-size: .62rem; padding: 0 0.25rem; }
  .v2-entete-page .v2-actions:has(> :nth-child(4)) > .v2-action { position: relative; }
}

/* Onglets sur grand écran (3.8.29) : le nombre devant le nom, sans pastille, un peu plus grand et en gras : « 13 Contrats » */
@media (min-width: 768px) {
  .v2-onglets a { display: inline-flex; align-items: baseline; gap: .4rem; }
  .v2-onglets a .onglet-ico { order: 0; margin-right: .1rem; align-self: center; }
  .v2-onglets a .v2-compte { order: 1; min-width: 0; margin: 0; padding: 0; background: none; border-radius: 0; color: inherit; font-size: 1.12rem; font-weight: 700; line-height: 1; }
  .v2-onglets a .onglet-lib { order: 2; }
}

/* Recherche contacts sur téléphone : une ligne fine par contact (nom prénom, puis naissance · localité)
   et un seul bouton ⋮ qui ouvre la palette des 4 actions (Détail, Modifier, Contrats, Commissions). */
.table-contacts td.contact-mobile { padding: .5rem .25rem .5rem .5rem; }
@media (max-width: 767.98px) {
  .table-contacts > thead { display: none; }
  /* largeur fixe : un nom très long est coupé (…) au lieu d'élargir la liste au-delà de l'écran (3.11.6) */
  .table-contacts { table-layout: fixed; width: 100%; }
  /* une ligne sur deux en gris-bleu clair, comme les autres listes sur téléphone (3.10.8) */
  .table-contacts > tbody > tr:nth-child(even) > td.contact-mobile { background-color: var(--sbg-ligne-paire); }
}
.cm { display: flex; align-items: center; gap: 0.5rem; }
.cm-info { flex: 1 1 auto; min-width: 0; display: block; color: inherit; text-decoration: none; padding: 0.125rem 0; }
.cm-info:hover { color: inherit; text-decoration: none; }
.cm-nom { display: block; font-weight: 600; font-size: 1rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-meta { display: block; font-size: .85rem; line-height: 1.3; color: var(--sbg-gris); }
.cm-badges { display: flex; flex-wrap: wrap; gap: .25rem; margin: .125rem 0; } /* 3.39.20 : éléments data-cm-badge */
/* Étiquette sobre (3.39.22) : fond blanc, bord fin, texte gris ; lisible sur les lignes blanches et bleutées des tableaux. */
.v2-etiquette { display: inline-flex; align-items: center; gap: .3rem; padding: .05rem .45rem; border: 1px solid var(--sbg-trait); border-radius: .375rem; background: #fff; color: var(--sbg-gris); font-size: .75rem; font-weight: 500; line-height: 1.5; white-space: nowrap; text-decoration: none; vertical-align: .1em; }
.v2-etiquette i { font-size: .7rem; opacity: .8; }
a.v2-etiquette:hover { border-color: var(--sbg-bleu); color: var(--sbg-bleu); }
.cm-plus { flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: transparent; color: var(--sbg-bleu); display: inline-grid; place-items: center; font-size: 1.05rem; }
.cm-plus:hover, .cm-plus[aria-expanded="true"] { background: #e4edf2; }
.cm-palette { min-width: 0; padding: 0.5rem; border-radius: 0.875rem; border: 1px solid var(--sbg-trait-doux); box-shadow: 0 10px 30px rgba(18, 50, 74, .18); }
.cm-palette.show { display: grid; grid-template-columns: repeat(4, 4.125rem); gap: 0.25rem; }
.cm-palette a { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.5rem 0.125rem; border-radius: 0.625rem; color: var(--sbg-encre); font-size: .72rem; font-weight: 500; text-align: center; text-decoration: none; }
.cm-palette a i { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: #e4edf2; color: var(--sbg-bleu); font-size: 1rem; }
.cm-palette a:hover, .cm-palette a:active { background: var(--sbg-survol); color: var(--sbg-encre); text-decoration: none; }

/* ================= 11. MODULES DES PAGES =================
   Anciens blocs <style> des pages, chacun limité à sa page par l'identifiant du <body> (body_id).
   #login = page de connexion et pages publiques (gabarit auth/layout) ; #login.page-transfert = pages publiques du transfert de fichiers. */
body#login { line-height: normal; }

/* ----- auth/layout (#login) ----- */
#login {
  --bleu: #235576;
  --bleu-nuit: #12324a;
  --encre: #15232d;
  --gris: #5b6b76;
  --brume: #eef3f6;
  --trait: #cdd9e0;
  --erreur: #b42318;
}
#login * { box-sizing: border-box; }
html:has(> body#login), body#login { margin: 0; height: 100%; }
body#login {
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  color: var(--encre);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
#login .page { display: grid; grid-template-columns: minmax(20rem, 46%) 1fr; min-height: 100vh; min-height: 100dvh; }
/* ===== Panneau « lac » : courbes de profondeur + pierres SBG ===== */
#login .terrain {
  position: relative;
  overflow: hidden;
  background: var(--bleu-nuit);
  background-image: radial-gradient(120% 90% at 70% 25%, #1d4a66 0%, var(--bleu-nuit) 70%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 3.5rem;
}
#login .terrain-texte { position: relative; max-width: 26rem; }
#login .terrain-nom { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 .5rem; }
#login .terrain-ligne { font-size: 1rem; line-height: 1.5; color: #cfe6f2; margin: 0; }
/* ===== Formulaire ===== */
#login .acces { display: flex; flex-direction: column; justify-content: center; padding: 3rem clamp(1.5rem, 7vw, 7rem); }
#login .acces-inner { width: 100%; max-width: 25rem; }
#login .logo { display: block; width: 10.5rem; height: auto; margin: 0 0 3.5rem; }
#login h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .5rem; }
#login .intro { color: var(--gris); font-size: 1rem; line-height: 1.5; margin: 0 0 2rem; }
#login .champ { margin-bottom: 1.25rem; }
#login label { display: block; font-weight: 500; font-size: .9375rem; margin-bottom: .4rem; }
#login .saisie { position: relative; }
#login input[type=text], #login input[type=password], #login input[type=email] {
  width: 100%;
  font: inherit; font-size: 1rem;
  color: var(--encre);
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: 0.375rem;
  padding: .8rem .9rem;
  transition: border-color .15s, box-shadow .15s;
}
#login input[type=password], #login input.mdp { padding-right: 3rem; }
#login input:hover { border-color: #a9bcc8; }
#login input:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(35,85,118,.2); }
#login .invalide input { border-color: var(--erreur); }
#login .voir {
  position: absolute; right: 0.375rem; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--gris);
  width: 2.375rem; height: 2.375rem; border-radius: 0.3125rem; cursor: pointer;
  display: grid; place-items: center;
}
#login .voir:hover { color: var(--encre); background: var(--brume); }
#login .voir:focus-visible { outline: 2px solid var(--bleu); outline-offset: 1px; }
#login .ligne { display: flex; align-items: center; justify-content: flex-start; gap: 1rem; margin: 1.25rem 0 0; flex-wrap: wrap; }
#login .case { display: inline-flex; align-items: center; gap: .55rem; font-size: .9375rem; cursor: pointer; }
#login .case input { width: 1.125rem; height: 1.125rem; accent-color: var(--bleu); margin: 0; }
#login a.oubli { color: var(--bleu); font-size: .9375rem; text-decoration: none; font-weight: 500; }
#login a.oubli:hover { text-decoration: underline; text-underline-offset: 3px; }
#login a.oubli:focus-visible, #login .case input:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; border-radius: 0.1875rem; }
#login button[type=submit] {
  width: 100%;
  font: inherit; font-size: 1rem; font-weight: 600;
  color: #fff; background: var(--bleu);
  border: 0; border-radius: 0.375rem;
  padding: .9rem 1rem; cursor: pointer;
  transition: background .15s;
}
#login button[type=submit]:hover { background: #1b4560; }
#login button[type=submit]:focus-visible { outline: 3px solid rgba(35,85,118,.35); outline-offset: 2px; }
#login button.refuser { background: transparent; color: var(--gris); border: 1px solid currentColor; margin-top: .75rem; }
#login button.refuser:hover { background: rgba(35,85,118,.08); }
#login .message { border-radius: 0.375rem; padding: .8rem .95rem; font-size: .9375rem; line-height: 1.45; margin: 0 0 1.5rem; }
#login .message-erreur { background: #fdf0ef; color: var(--erreur); border: 1px solid #f3c6c1; }
#login .message-ok { background: #ecf6f1; color: #1d6b45; border: 1px solid #bfe0cf; }
#login .lien-contact { display: inline-block; margin-top: .4rem; color: var(--erreur); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#login .lien-contact:focus-visible { outline: 2px solid var(--erreur); outline-offset: 2px; border-radius: 0.1875rem; }
#login .message-info { background: #fff7e6; color: #8a5300; border: 1px solid #f2d9a6; }
#login a.retour { display: inline-block; margin-top: 1.25rem; color: var(--bleu); font-size: .9375rem; font-weight: 500; text-decoration: none; }
#login a.retour:hover { text-decoration: underline; text-underline-offset: 3px; }
#login a.retour:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; border-radius: 0.1875rem; }
#login .identifiant { font-weight: 600; color: var(--encre); }
#login .pied { margin-top: 3rem; font-size: .8125rem; color: var(--gris); }
/* Courbes de profondeur du lac : très lente houle */
#login .topo { position: absolute; inset: -4%; width: 108%; height: 108%; opacity: .85; }
/* un peu en retrait : les ondes restent au premier plan */
#login .topo g { transform-box: view-box; transform-origin: 62% 34%; }
/* ===== Ronds du logo : pierres qui tombent dans un lac ===== */
#login .ronds { position: absolute; inset: 0; pointer-events: none; --t: clamp(76px, 8.5vw, 124px); }
#login .disque { position: absolute; top: 40%; left: 50%; width: var(--t); height: var(--t); margin: calc(var(--t) / -2) 0 0 calc(var(--t) / -2); }
#login .disque.d1 { translate: calc(var(--t) * -1.25) 0; }
#login .disque.d3 { translate: calc(var(--t) * 1.25) 0; }
#login .flotte, #login .entree { width: 100%; height: 100%; }
#login .entree { position: relative; }
#login .entree svg { position: relative; z-index: 2; display: block; width: 100%; height: 100%; border-radius: 50%;
  filter: drop-shadow(0 8px 18px rgba(0, 20, 35, .45)); }
#login .vague { position: absolute; inset: 0; z-index: 1; border-radius: 50%;
  border: 1.5px solid rgba(205, 233, 246, .8); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  /* cycle de 9 s : S, B puis G tombent à 1,2 s d'intervalle, restent ~5 s, coulent, et ça recommence */
  #login .ronds { --cycle: 9s; }
  #login .entree svg { animation: pierre var(--cycle) cubic-bezier(.45, 0, .55, 1) infinite both; }
  #login .vague { animation: vague var(--cycle) linear infinite both; }
  #login .d2 .entree svg, #login .d2 .vague { animation-delay: 1.2s; }
  #login .d3 .entree svg, #login .d3 .vague { animation-delay: 2.4s; }
  #login .vague:nth-child(2) { animation-name: vague2; }
  #login .vague:nth-child(3) { animation-name: vague3; }
  #login .vague:nth-child(4) { animation-name: vague4; }
  #login .vague:nth-child(5) { animation-name: vague5; }
  /* le lac bouge : houle ample (9 s aller-retour) + courant qui file le long d'une ligne sur deux */
  #login .topo g { animation: houle 9s ease-in-out infinite alternate; }
  @keyframes houle {
                0%   { transform: scale(1) translate(0, 0) rotate(0deg); }
                50%  { transform: scale(1.08) translate(-22px, 14px) rotate(-2deg); }
                100% { transform: scale(1.15) translate(-36px, 26px) rotate(-3.5deg); }
            }
  #login .topo path:nth-child(2n) { stroke-dasharray: 90 18; animation: courant 7s linear infinite; }
  #login .topo path:nth-child(4n) { animation-duration: 11s; animation-direction: reverse; }
  @keyframes courant { to { stroke-dashoffset: -216; } }
  /* les pierres dérivent lentement à la surface, chacune à son rythme */
  #login .d1 .flotte { animation: derive1 19s ease-in-out infinite; }
  #login .d2 .flotte { animation: derive2 23s ease-in-out infinite; }
  #login .d3 .flotte { animation: derive3 27s ease-in-out infinite; }
  @keyframes derive1 { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(-46px, 58px); } 65% { transform: translate(-18px, -42px); } }
  @keyframes derive2 { 0%, 100% { transform: translate(0, 0); } 35% { transform: translate(34px, -64px); } 70% { transform: translate(-30px, 36px); } }
  @keyframes derive3 { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(52px, 40px); } 60% { transform: translate(20px, -56px); } }
  /* la pierre tombe (grande, ombre loin), touche l'eau (s'écrase un peu), se stabilise */
  @keyframes pierre {
                0%   { transform: translateY(-46px) scale(1.32); opacity: 0; filter: drop-shadow(0 34px 26px rgba(0, 20, 35, .25)); }
                3%   { opacity: 1; }
                9%   { transform: translateY(0) scale(.9);    filter: drop-shadow(0 3px 6px rgba(0, 20, 35, .55)); animation-timing-function: ease-out; }
                14%  { transform: scale(1.04); }
                19%, 80% { transform: none; opacity: 1; filter: drop-shadow(0 8px 18px rgba(0, 20, 35, .45)); }
                90%  { transform: scale(.82); opacity: 0; } /* elle coule... */
                100% { transform: translateY(-46px) scale(1.32); opacity: 0; } /* ...et retombe au cycle suivant */
            }
  /* ondes : partent à l'impact (9 %), les suivantes un peu plus tard, de plus en plus faibles */
  @keyframes vague { 0%, 9%  { opacity: 0; transform: scale(1); } 10% { opacity: .9; } 60%, 100% { opacity: 0; transform: scale(4.2); border-width: .5px; } }
  @keyframes vague2 { 0%, 13% { opacity: 0; transform: scale(1); } 14% { opacity: .75; } 66%, 100% { opacity: 0; transform: scale(3.8); border-width: .5px; } }
  @keyframes vague3 { 0%, 17% { opacity: 0; transform: scale(1); } 18% { opacity: .6; } 72%, 100% { opacity: 0; transform: scale(3.4); border-width: .5px; } }
  @keyframes vague4 { 0%, 22% { opacity: 0; transform: scale(1); } 23% { opacity: .45; } 78%, 100% { opacity: 0; transform: scale(3); border-width: .5px; } }
  @keyframes vague5 { 0%, 28% { opacity: 0; transform: scale(1); } 29% { opacity: .3; } 84%, 100% { opacity: 0; transform: scale(2.6); border-width: .5px; } }
}
/* ===== Smartphone / petite tablette ===== */
@media (max-width: 860px) {
  #login .page { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  #login .terrain { min-height: 7rem; padding: 0; }
  #login .terrain-texte { display: none; }
  /* le logo juste dessous suffit */
  #login .ronds { --t: 58px; }
  #login .flotte { animation: none !important; }
  /* bandeau trop bas pour la dérive */
  #login .disque { top: 50%; }
  #login .acces { justify-content: flex-start; padding: 2.25rem 1.5rem 2rem; }
  #login .logo { display: none; }
  /* les ronds du bandeau font office de logo */
  #login h1 { font-size: 1.625rem; }
  #login .pied { margin-top: 2rem; }
}
/* Serveur de test (APP_ENV ≠ production) : panneau de gauche bordeaux, comme le menu, pour ne pas le confondre avec la production */
#login.site-test .terrain { background: #5a1426; background-image: radial-gradient(120% 90% at 70% 25%, #7d2238 0%, #5a1426 70%); }
#login.site-test .topo g { stroke: #f1c9d3; }
#login.site-test .terrain-ligne { color: #f3d6dd; }
#login.site-test .entree svg { filter: hue-rotate(141deg) saturate(1.15) drop-shadow(0 8px 18px rgba(35, 0, 10, .45)); }
#login.site-test .vague { border-color: rgba(246, 214, 222, .8); }

/* ----- transferts/_style (#login.page-transfert) ----- */
#login.page-transfert .acces-inner { max-width: 32.5rem; }
#login.page-transfert .tr-liste { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--trait); }
#login.page-transfert .tr-liste li { display: flex; align-items: center; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--trait); }
#login.page-transfert .tr-liste .ico { flex: 0 0 2.5rem; height: 2.5rem; border-radius: 0.5rem; background: var(--brume); color: var(--bleu);
  display: grid; place-items: center; font-size: .6875rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
#login.page-transfert .tr-liste .txt { flex: 1; min-width: 0; }
#login.page-transfert .tr-liste .nom { font-weight: 500; overflow-wrap: anywhere; }
#login.page-transfert .tr-liste .taille { font-size: .8125rem; color: var(--gris); }
#login.page-transfert .bouton { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font: inherit; font-size: .9375rem; font-weight: 600;
  border-radius: 0.375rem; padding: .55rem .9rem; text-decoration: none; cursor: pointer; border: 1px solid var(--bleu); white-space: nowrap; }
#login.page-transfert .bouton-plein { background: var(--bleu); color: #fff; }
#login.page-transfert .bouton-plein:hover { background: #1b4560; border-color: #1b4560; }
#login.page-transfert .bouton-trait { background: #fff; color: var(--bleu); }
#login.page-transfert .bouton-trait:hover { background: var(--brume); }
#login.page-transfert .bouton-large { width: 100%; padding: .9rem 1rem; font-size: 1rem; }
#login.page-transfert .bouton[disabled] { opacity: .5; cursor: default; }
#login.page-transfert .mot { background: var(--brume); border-radius: 0.5rem; padding: .9rem 1rem; margin: 0 0 1.5rem; white-space: pre-line; line-height: 1.5; }
#login.page-transfert .signe { font-size: .875rem; color: var(--gris); margin: -.75rem 0 1.5rem; }
#login.page-transfert .zone { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 11.25rem;
  padding: 1.5rem 1rem; border: 2px dashed #b7c7d1; border-radius: 0.75rem; background: #f7fafc; cursor: pointer; margin: 0 0 1rem;
  transition: background .15s, border-color .15s; }
#login.page-transfert .zone:hover, #login.page-transfert .zone.dessus { border-color: var(--bleu); background: var(--brume); }
#login.page-transfert .zone strong { font-size: 1.0625rem; margin-top: .6rem; }
#login.page-transfert .zone span { color: var(--gris); font-size: .875rem; }
#login.page-transfert .barre { height: 0.625rem; background: var(--brume); border-radius: 0.3125rem; overflow: hidden; margin: 1rem 0 .4rem; }
#login.page-transfert .barre div { height: 100%; width: 0; background: var(--bleu); transition: width .2s; }
#login.page-transfert .retirer { border: 0; background: none; color: var(--gris); cursor: pointer; font-size: 1.25rem; line-height: 1; padding: .25rem .4rem; border-radius: 0.25rem; }
#login.page-transfert .retirer:hover { color: var(--erreur); background: #fdf0ef; }

/* ----- offres (#login.page-offre) : demande d'offre en ligne (3.31.0) ----- */
#login.page-offre .acces-inner { max-width: 32.5rem; }
#login.page-offre input[type=date], #login.page-offre input[type=tel], #login.page-offre select, #login.page-offre textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--encre); background: #fff;
  border: 1px solid var(--trait); border-radius: 0.375rem; padding: .8rem .9rem; transition: border-color .15s, box-shadow .15s;
}
#login.page-offre select:focus, #login.page-offre textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(35,85,118,.2); }
#login.page-offre select:disabled { background: var(--brume); }
#login.page-offre .invalide select, #login.page-offre .invalide textarea { border-color: var(--erreur); }
#login.page-offre .offre-civilite { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
#login.page-offre .offre-npa { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .75rem; }
#login.page-offre .offre-assurances { display: grid; gap: .6rem; }
#login.page-offre .offre-assurance { display: block; padding: .8rem .95rem; border: 1px solid var(--trait); border-radius: 0.375rem; background: #fff; color: var(--encre); font-weight: 600; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
#login.page-offre .offre-assurance:hover, #login.page-offre .offre-assurance:focus-visible { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(35,85,118,.2); }
#login.page-offre .obligatoire { color: var(--erreur); }
#login.page-offre .offre-montant { display: flex; align-items: center; gap: .6rem; }
#login.page-offre .offre-oui-non { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
#login.page-offre .offre-cases { display: grid; gap: .5rem; }
#login.page-offre .offre-piege { position: absolute; left: -624.9375rem; width: 1px; height: 1px; overflow: hidden; }
#login.page-offre .offre-controle { margin: 1.75rem 0 1.25rem; padding: 1rem; background: var(--brume); border: 1px solid var(--trait); border-left: 4px solid var(--bleu); border-radius: 0.375rem; }
#login.page-offre .offre-controle.invalide { border-color: var(--erreur); }
#login.page-offre .offre-controle-tete { display: flex; align-items: center; gap: .75rem; }
#login.page-offre .offre-controle-tete strong { display: block; color: var(--bleu-nuit); font-weight: 600; }
#login.page-offre .offre-controle-tete small { display: block; color: var(--gris); font-size: .875rem; line-height: 1.35; }
#login.page-offre .offre-cadenas { flex: 0 0 2.5rem; display: flex; align-items: center; justify-content: center; height: 2.5rem; border-radius: 50%; background: var(--bleu); color: #fff; }
#login.page-offre .offre-calcul { display: flex; align-items: center; gap: .75rem; margin-top: .9rem; }
#login.page-offre .offre-calcul label { margin: 0; font-size: 1.125rem; font-weight: 600; white-space: nowrap; }
#login.page-offre .offre-calcul input { width: 5.5rem; background: #fff; text-align: center; }

/* ----- admin/formulaires (#admin_formulaire) : questions d'une demande d'offre, à glisser (3.31.7) ----- */
#admin_formulaire #ordre_message { position: sticky; top: .5rem; z-index: 3; }
#admin_formulaire .formulaire-questions { list-style: none; margin: 0; padding: 0; max-width: 53.75rem; }
#admin_formulaire .formulaire-question { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
#admin_formulaire .formulaire-carte { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: .75rem; background: #fff; border: 1px solid var(--bs-border-color); border-radius: 0.375rem; padding: .75rem; }
#admin_formulaire .formulaire-question.obligatoire .formulaire-carte { background: var(--bs-danger-bg-subtle); }
#admin_formulaire .formulaire-question.inactive .formulaire-carte { background: var(--bs-gray-400); }
#admin_formulaire .formulaire-question.inactive .formulaire-champ { opacity: .45; }
#admin_formulaire .formulaire-question.tenue { position: relative; z-index: 2; }
#admin_formulaire .formulaire-question.tenue .formulaire-carte { border-color: var(--bs-primary); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
#admin_formulaire .formulaire-poignee { flex: none; width: 2.5rem; height: 2.5rem; border: 0; background: none; color: var(--bs-secondary-color); cursor: grab; touch-action: none; user-select: none; }
#admin_formulaire .tenue .formulaire-poignee { cursor: grabbing; }
#admin_formulaire .formulaire-champ { flex: 1 1 0; min-width: 0; }
#admin_formulaire .formulaire-edition { flex: 0 0 100%; border-top: 1px solid var(--bs-border-color); padding-top: .75rem; }
#admin_formulaire .formulaire-ajout { max-width: 53.75rem; margin-top: .5rem; }
#admin_formulaire .formulaire-ajout .formulaire-edition { border-top: 0; padding-top: 0; }
#admin_formulaire .formulaire-modifier { flex: none; }
@media (max-width: 575.98px) {
  #admin_formulaire .formulaire-question { flex-wrap: wrap; justify-content: flex-end; gap: .35rem; margin-bottom: .75rem; }
  #admin_formulaire .formulaire-carte { flex-basis: 100%; }
}

/* ----- admin/doublons/comparer (#admin_doublons) : carte « Fiche à garder » (3.10.23) ----- */
/* Tableau de comparaison (3.10.27, 3.10.28) : ligne identique sur toutes les fiches en vert léger ; pas d'autre couleur.
   Couleur posée sur les cases : le fond transparent général des tableaux (section 7) cachait table-success. */
#admin_doublons { --doublon-vert: #e6f4ea; }
#admin_doublons .table > tbody > tr.table-success > :is(td, th) { background-color: var(--doublon-vert); }
/* Une tuile par fiche, côte à côte ; la fiche choisie est entourée de bleu */
#admin_doublons .doublon-gardes { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.75rem; margin: 0.25rem 0 1rem; }
#admin_doublons .doublon-garde { display: flex; gap: 0.75rem; align-items: flex-start; margin: 0; padding: 0.875rem 1rem; border: 1px solid var(--sbg-trait); border-radius: 0.625rem; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
#admin_doublons .doublon-garde:hover { border-color: #a9bcc8; background: var(--sbg-survol); }
#admin_doublons .doublon-garde:has(input:checked) { border-color: var(--sbg-bleu); background: var(--sbg-brume-2); box-shadow: var(--sbg-halo); }
#admin_doublons .doublon-garde .form-check-input { flex: 0 0 auto; width: 1.25em; height: 1.25em; margin-top: .1em; }
#admin_doublons .doublon-garde-nom { display: block; font-weight: 600; color: var(--sbg-encre); }
#admin_doublons .doublon-garde-info { display: block; font-size: .875rem; color: var(--sbg-gris); }
#admin_doublons .doublon-garde-choisie { display: none; font-size: .8rem; font-weight: 600; color: var(--sbg-bleu); margin-top: 0.25rem; }
#admin_doublons .doublon-garde:has(input:checked) .doublon-garde-choisie { display: block; }

/* ----- admin/fournisseurs/logo ----- */
#carte_logo .logo-cadre { width: 15rem; height: 7.5rem; display: flex; align-items: center; justify-content: center; border: 1px solid #e3eaee; border-radius: .5rem;
  background: repeating-conic-gradient(#f3f5f7 0 25%, #fff 0 50%) 0 / 16px 16px; }
#carte_logo .logo-cadre img { max-width: 100%; max-height: 100%; object-fit: contain; }
.icone-rond { width: 4.5rem; height: 4.5rem; border-radius: 50%; overflow: hidden; border: 1px solid #e3eaee; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.icone-rond img, .icone-rond canvas { width: 100%; height: 100%; }
.icone-rond-grand { width: 8rem; height: 8rem; }
#logoModal .logo-zone { background: repeating-conic-gradient(#eef1f4 0 25%, #fff 0 50%) 0 / 16px 16px; max-height: 22.5rem; }
#logoModal .logo-zone img { display: block; max-width: 100%; }

/* ----- admin/fournisseurs/statuts (#admin_fournisseurs_statuts) ----- */
#admin_fournisseurs_statuts tr.ligne-vide > td { background-color: #fff8e6 !important; }
#admin_fournisseurs_statuts tr.ligne-modifiee > td { background-color: #e9f2f7 !important; }
#admin_fournisseurs_statuts .barre-statuts {
  position: sticky; bottom: 0; z-index: 5;
  background: #fff; border-top: 1px solid #e3eaee;
  margin: 0 -1.25rem -1.25rem; padding: 0.75rem 1.25rem; border-radius: 0 0 0.625rem 0.625rem;
}

/* ----- admin/lettres/form (#admin_lettre_form) ----- */
#admin_lettre_form .tox-tinymce { border-radius: .5rem; }
#admin_lettre_form .apercu-lettre { font-size: .9rem; }
#admin_lettre_form .apercu-lettre li { margin-bottom: .15rem; }

/* ----- admin/permissions (#admin_permissions) ----- */
#admin_permissions .perm-ok { color: var(--bs-success); }
#admin_permissions .perm-non { color: var(--bs-secondary); opacity: .45; }
#admin_permissions td.perm, #admin_permissions th.perm { text-align: center; width: 7.5rem; }
#admin_permissions .perm-resume td.perm { font-variant-numeric: tabular-nums; }
#admin_permissions .perm-module { scroll-margin-top: 1rem; }
#admin_permissions .perm-regle { font-size: .85em; }

/* ----- admin/sauvegardes/liste (#admin_sauvegardes) ----- */
/* longues adresses et chemins : coupés n'importe où plutôt que d'élargir la page */
#admin_sauvegardes code, #admin_sauvegardes .text-break { overflow-wrap: anywhere; word-break: normal; }
/* bulles des boutons de la 1re colonne : ouvertes vers la droite pour ne pas sortir du tableau */
#admin_sauvegardes .tableau-sauvegardes td:first-child .extranet-tooltip-box { left: 0; -webkit-transform: none; transform: none; }
/* Sauvegardes et historique : mêmes colonnes de largeur fixe, seule la dernière colonne (vide) s'élargit ; une ligne par opération */
#admin_sauvegardes table.tableau-sauvegardes { display: table; table-layout: auto; width: 100%; white-space: nowrap; margin-bottom: 0; }
/* téléphone : les sauvegardes deviennent des fiches pleine largeur, comme les autres listes */
@media (max-width: 767.98px) { #admin_sauvegardes table.tableau-sauvegardes.table-fiches { display: block; white-space: normal; } #admin_sauvegardes .tableau-cadre:has(.table-fiches) { overflow: visible; padding-bottom: 0; margin-bottom: 0; } }
/* Fenêtre plus étroite : les colonnes secondaires se retirent l'une après l'autre (détail complet sur la page de la loupe) */
@media (max-width: 1399.98px) {
  #admin_sauvegardes .tableau-sauvegardes .c-envoye, #admin_sauvegardes .tableau-sauvegardes .c-vide { display: none; }
}
@media (max-width: 1199.98px) {
  #admin_sauvegardes .tableau-sauvegardes .c-empl { display: none; }
}
@media (max-width: 991.98px) {
  #admin_sauvegardes .tableau-sauvegardes .c-contenu { display: none; }
}
@media (max-width: 767.98px) {
  #admin_sauvegardes .tableau-sauvegardes .c-op { display: none; }
}
#admin_sauvegardes .tableau-sauvegardes th, #admin_sauvegardes .tableau-sauvegardes td { vertical-align: middle; overflow: hidden; text-overflow: ellipsis; padding-right: .75rem !important; }
#admin_sauvegardes .tableau-sauvegardes td:first-child { overflow: visible; }
/* écran plus étroit que le tableau : il défile dans son cadre ; la marge du bas laisse la place aux bulles d'aide */
#admin_sauvegardes .tableau-cadre { overflow-x: auto; padding-bottom: 2.5rem; margin-bottom: -2.5rem; }
#admin_sauvegardes .tableau-cadre + * { position: relative; }
/* téléphone : le tableau d'état passe à la ligne (le réglage général met les tableaux sur une ligne qui défile) */
@media (max-width: 767.98px) {
  #admin_sauvegardes table.tableau-etat { display: table; white-space: normal; }
  #admin_sauvegardes table.tableau-etat th { white-space: normal; width: 38%; padding-right: .5rem; }
  #admin_sauvegardes table.tableau-etat td { overflow-wrap: anywhere; }
}
#admin_sauvegardes .tableau-sauvegardes tfoot.sauv-total td { border-top: 2px solid #adb5bd; border-bottom: 0; padding-top: .6rem; vertical-align: middle; }

/* ----- admin/sauvegardes/detail (#admin_sauvegardes_detail) ----- */
#admin_sauvegardes_detail .table th { width: 30%; white-space: normal; }
#admin_sauvegardes_detail .table td { overflow-wrap: anywhere; }
@media (max-width: 767.98px) {
  #admin_sauvegardes_detail .table { display: table; white-space: normal; }
}

/* ----- admin/sauvegardes/secours (#admin_sauvegardes_secours) ----- */
#admin_sauvegardes_secours .etape { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
#admin_sauvegardes_secours .etape-no { flex: 0 0 2rem; height: 2rem; border-radius: 50%; background: var(--extranet-blue, #1d3c5a); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 600; }
#admin_sauvegardes_secours .commande { display: block; background: #f4f6f8; border: 1px solid #e1e5ea; border-radius: 0.375rem; padding: .5rem .75rem;
  font-size: .9rem; overflow-wrap: anywhere; color: #1d3c5a; }
#admin_sauvegardes_secours .cas { border: 1px solid #e1e5ea; border-radius: 0.625rem; padding: 1.25rem 1.25rem .25rem; margin-bottom: 1.5rem; }

/* ----- admin/systeme (#admin_systeme) ----- */
/* Un seul bleu sur la page : celui du site (logo SBG) ; gris = en attente, orange = alerte */
#admin_systeme { --sys-bleu: var(--extranet-blue, #235576); --sys-bleu-clair: rgba(35, 85, 118, .1); --sys-nuit: var(--sbg-nuit, #12324a); }
#admin_systeme .sys-bleu { color: var(--sys-bleu); background: var(--sys-bleu-clair); }
/* « Bientôt disponible » : gris clair, bien distinct des badges bleus « À jour » / « Correct » */
#admin_systeme .sys-badge-attente { background: var(--sbg-trait-doux, #e3eaee); color: var(--sbg-encre, #15232d); border: 1px solid var(--sbg-trait, #cdd9e0); }
/* Le tableau des versions tient dans sa colonne : les cellules passent à la ligne au lieu de déborder */
#admin_systeme table.sys-versions { display: table; width: 100%; white-space: normal; }
#admin_systeme table.sys-versions th, #admin_systeme table.sys-versions td { white-space: normal; overflow-wrap: normal; word-break: normal; vertical-align: middle; }
#admin_systeme table.sys-versions th:first-child, #admin_systeme table.sys-versions td:first-child { min-width: 9rem; width: 36%; } /* même largeur dans « Hébergement » et « Versions » (3.9.25) */
#admin_systeme table.sys-versions .badge { white-space: nowrap; text-align: left; line-height: 1.3; } /* sur une ligne (3.9.25) */
#admin_systeme .sys-guide { list-style: none; counter-reset: etape; padding: 0; display: grid; gap: .75rem;
  grid-template-columns: 1fr; }
#admin_systeme .sys-guide li { counter-increment: etape; position: relative; padding: .9rem 1rem .9rem 3.25rem;
  background: var(--bs-tertiary-bg); border-radius: .75rem; }
#admin_systeme .sys-guide li::before { content: counter(etape); position: absolute; left: 1rem; top: .9rem; width: 1.6rem; height: 1.6rem;
  border-radius: 50%; background: var(--sys-bleu); color: #fff; font-weight: 600; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
#admin_systeme .sys-guide strong, #admin_systeme .sys-guide span { display: block; }
#admin_systeme .sys-guide span { font-size: .875rem; color: var(--bs-secondary-color); margin-top: .15rem; }
/* Deux grandes cartes : le tableau des versions, puis « Mettre à jour » */
#admin_systeme .sys-bloc { padding: 1.5rem; border: 1px solid var(--bs-border-color); border-radius: 1rem; background: var(--bs-body-bg);
  box-shadow: 0 1px 2px rgba(0,0,0,.04); }
#admin_systeme .sys-bloc > .table:last-child, #admin_systeme .sys-bloc .table:last-child { margin-bottom: 0; }
/* Même titre pour toutes les cartes : même police, même taille, même place (en haut à gauche) */
#admin_systeme .sys-fleche { color: var(--sys-bleu); font-size: 1.1rem; line-height: 1; text-decoration: none; }
#admin_systeme .sys-fleche i { transition: transform .2s ease; }
#admin_systeme .sys-fleche[aria-expanded="true"] i { transform: rotate(180deg); }
/* 3.9.27 : badge « Update » du tableau Versions → carte de mise à jour, mise en évidence un instant */
#admin_systeme .sys-badge-lien { cursor: pointer; }
#admin_systeme .sys-badge-lien:hover, #admin_systeme .sys-badge-lien:focus-visible { filter: brightness(.92); outline: 2px solid rgba(35, 85, 118, .35); outline-offset: 2px; }
#admin_systeme .sys-badge-carte { font-size: .72rem; font-weight: 600; }
#admin_systeme .sys-carte-vue { animation: sys-carte-vue 1.8s ease-out; }
@keyframes sys-carte-vue { 0%, 30% { box-shadow: 0 0 0 4px rgba(35, 85, 118, .35); } 100% { box-shadow: 0 0 0 0 rgba(35, 85, 118, 0); } }
#admin_systeme .sys-titre { font-size: 1.1rem; font-weight: 600; color: var(--sys-bleu); margin: 0 0 1rem; line-height: 1.3; }
#admin_systeme .sys-carte { padding: 1.5rem; border: 1px solid var(--bs-border-color); border-radius: 1rem; background: var(--bs-body-bg);
  box-shadow: 0 1px 2px rgba(0,0,0,.04); display: flex; flex-direction: column; }
#admin_systeme .sys-carte-icone { flex: 0 0 2.75rem; height: 2.75rem; border-radius: .75rem; display: flex; align-items: center; justify-content: center;
  background: var(--sys-bleu-clair); color: var(--sys-bleu); font-size: 1.15rem; }
#admin_systeme .sys-etapes { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; flex-grow: 1; }
#admin_systeme .sys-etapes li { display: flex; gap: .65rem; align-items: baseline; }
#admin_systeme .sys-etapes i { font-size: .8rem; color: var(--sys-bleu); }
#admin_systeme .sys-commande { display: flex; align-items: center; gap: .75rem; padding: .75rem .75rem .75rem 1rem;
  background: var(--sys-nuit); border-radius: .6rem; }
#admin_systeme .sys-commande code { color: #eef3f6; background: none; font-size: .875rem; flex-grow: 1; word-break: break-all; }

/* ----- contacts/form ----- */
.iti { width: 100%; }

/* ----- fichiers/contact (#documents) ----- */
#documents .drop-zone {
  border: 2px dashed #c8c8c8;
  border-radius: .75rem;
  background: #f8f9fa;
  padding: 1.25rem;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
#documents .drop-zone.dragover {
  background: #eef6ff;
  border-color: #0d6efd;
}
#documents table.table thead th:first-child, #documents table.table tbody td:first-child {
  width: 6.875rem;
  white-space: nowrap;
}
#documents table.table tbody td:first-child .extranet-icon-small {
  margin-right: 0.625rem;
}
#documents table.table tbody td:first-child .extranet-icon-small:last-child {
  margin-right: 0;
}

/* ----- fichiers/envoi_compagnie (#envoi_compagnie) ----- */
#envoi_compagnie .tox-tinymce { border-radius: .5rem; }
#envoi_compagnie .table-label th { width: 10.625rem; white-space: nowrap; }
#envoi_compagnie .pieces-jointes { width: 100%; max-width: 25rem; }
#envoi_compagnie #liste_pieces .piece { display: flex; align-items: center; gap: .25rem; padding: .15rem 0; }
#envoi_compagnie #liste_pieces .piece-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#envoi_compagnie #liste_pieces .btn-retirer { border: 0; background: none; color: #c0392b; padding: 0 .25rem; margin-left: auto; line-height: 1; }
#envoi_compagnie #liste_pieces .btn-retirer:hover { color: #922b21; }

/* ----- versions (#versions) ----- */
#versions .journal-versions h2 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; padding-bottom: .25rem; border-bottom: 1px solid #e5e5e5; }
#versions .journal-versions h2:first-child { margin-top: 0; }
#versions .journal-versions ul { margin-bottom: .5rem; }

/* ----- outils/assistance (#outils_assistance) ----- */
#outils_assistance .as-carte { border: 1px solid #e3eaee; border-radius: .75rem; background: #fff; padding: 1rem 1.15rem; }
#outils_assistance .as-carte h2 { font-size: 1.05rem; font-weight: 600; color: var(--extranet-blue, #235576); }
#outils_assistance .as-etapes { counter-reset: etape; list-style: none; padding: 0; margin: 0; }
#outils_assistance .as-etapes[start="2"] { counter-reset: etape 1; }
#outils_assistance .as-etapes[start="3"] { counter-reset: etape 2; }
#outils_assistance .as-etapes > li { counter-increment: etape; position: relative; padding: 0 0 1rem 2.6rem; }
#outils_assistance .as-etapes > li:last-child { padding-bottom: 0; }
#outils_assistance .as-etapes > li::before {
  content: counter(etape); position: absolute; left: 0; top: -.1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--extranet-blue, #235576); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
#outils_assistance .as-etapes > li > b { display: block; color: #233; margin-bottom: .15rem; }
#outils_assistance .as-etapes > li > span { display: block; font-size: .88rem; color: #5b6b76; }
#outils_assistance .as-etat { display: flex; gap: .5rem; align-items: center; border-radius: .5rem; padding: .55rem .8rem; font-size: .92rem; }
#outils_assistance .as-etat.attente { background: #fff6e0; color: #7a5300; }
#outils_assistance .as-etat.pris { background: #e6f4ea; color: #1e6b34; }
#outils_assistance .as-fiche { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; }
#outils_assistance .as-fiche .etiq { font-size: .78rem; color: #7a8a96; }
#outils_assistance .as-fiche .rd { font-family: ui-monospace, Consolas, monospace; font-size: 1.15rem; white-space: nowrap; }
#outils_assistance .as-pris { font-size: .75rem; background: #e6f4ea; color: #1e6b34; border-radius: .4rem; padding: .05rem .4rem; white-space: nowrap; }

/* ----- outils/conversion-pdf (#outils_conversion_pdf) ----- */
/* Glisser une ligne pour changer l'ordre des PDF (ordre de « Document PDF » et du zip) :
       poignée bien visible (pastille bleue), nom du PDF en gras, ligne surlignée au survol */
#outils_conversion_pdf #liste_conversions tbody tr[draggable="true"] { cursor: grab; transition: background .12s; }
#outils_conversion_pdf #liste_conversions tbody tr[draggable="true"]:hover td { background: #f1f6f9; }
#outils_conversion_pdf #liste_conversions tbody tr[draggable="true"] .nom { position: relative; padding-left: 2.6rem; font-weight: 600; color: #1d2b36; }
#outils_conversion_pdf #liste_conversions tbody tr[draggable="true"] .nom .reste { font-weight: 400; }
#outils_conversion_pdf #liste_conversions tbody tr[draggable="true"] .nom::before {
  content: "\f58e"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .85rem;
  position: absolute; left: .4rem; top: 50%; transform: translateY(-50%);
  width: 1.7rem; height: 1.7rem; display: flex; align-items: center; justify-content: center;
  border-radius: 0.375rem; background: #e3edf5; color: var(--extranet-blue, #235576);
}
#outils_conversion_pdf #liste_conversions tbody tr[draggable="true"]:hover .nom::before { background: var(--extranet-blue, #235576); color: #fff; }
#outils_conversion_pdf #liste_conversions tbody tr.glisse { opacity: .45; }
#outils_conversion_pdf #liste_conversions tbody tr.cible-haut td { box-shadow: inset 0 3px 0 var(--extranet-blue, #235576); }
#outils_conversion_pdf #liste_conversions tbody tr.cible-bas td { box-shadow: inset 0 -3px 0 var(--extranet-blue, #235576); }
#outils_conversion_pdf .zone-conversion {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 13.75rem; padding: 2rem 1rem;
  border: 3px dashed #c8c8c8; border-radius: 1rem; background: #f8f9fa;
  cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
#outils_conversion_pdf .zone-conversion:hover { border-color: #9aa5b1; }
#outils_conversion_pdf .zone-conversion.dragover { background: #eef6ff; border-color: #0d6efd; }
#outils_conversion_pdf .zone-conversion .icone { font-size: 3.5rem; line-height: 1; color: #b0b7bf; }
#outils_conversion_pdf .zone-conversion.dragover .icone { color: #0d6efd; }
#outils_conversion_pdf #liste_conversions td { vertical-align: middle; }
#outils_conversion_pdf #bloc_liste:not(.d-none) ~ .liste-vide { display: none; }
/* Colonne de droite étroite (2 colonnes) : boutons réduits à leur icône (nom en bulle), colonnes sans largeur fixe,
       pour que tout le tableau tienne sans défiler */
#outils_conversion_pdf .carte-liste { container-type: inline-size; }
@container (max-width: 860px) {
  #outils_conversion_pdf .carte-liste #liste_conversions .col-etat { width: 2rem; }
  #outils_conversion_pdf .carte-liste #liste_conversions .col-taille { width: 3.7rem; }
  #outils_conversion_pdf .carte-liste #liste_conversions .col-bouton { width: 2.9rem; }
  #outils_conversion_pdf .carte-liste #liste_conversions .etat .text-success { font-size: 0; }
  /* « Prêt » : la coche verte suffit */
  #outils_conversion_pdf .carte-liste #liste_conversions .etat .text-success i { font-size: 1rem; }
  #outils_conversion_pdf .carte-liste #liste_conversions th, #outils_conversion_pdf .carte-liste #liste_conversions td { padding-left: .2rem; padding-right: .2rem; }
  #outils_conversion_pdf .carte-liste #liste_conversions th { font-size: .66rem; letter-spacing: 0 !important; }
}
/* Largeurs fixes : seule la première colonne (nom du PDF) varie ; toutes les colonnes de boutons ont la même largeur */
#outils_conversion_pdf #liste_conversions .col-etat { width: 5.5rem; }
#outils_conversion_pdf #liste_conversions .col-taille { width: 4.6rem; }
#outils_conversion_pdf #liste_conversions { table-layout: fixed; }
/* largeurs respectées telles quelles ; la 1re colonne prend le reste */
#outils_conversion_pdf #liste_conversions .col-bouton { width: 4.2rem; text-align: center; }
#outils_conversion_pdf #liste_conversions th { white-space: nowrap; overflow: hidden; text-overflow: clip; }
#outils_conversion_pdf #liste_conversions thead th.col-bouton { text-align: center !important; padding-left: 0 !important; padding-right: 0 !important; }
#outils_conversion_pdf #liste_conversions .nom { overflow: hidden; overflow-wrap: anywhere; }
#outils_conversion_pdf #liste_conversions .nom .reste { white-space: normal; }
/* le nom du PDF prend la place restante et passe à la ligne */
#outils_conversion_pdf #liste_conversions .etat .text-success, #outils_conversion_pdf #liste_conversions .etat .text-muted { white-space: nowrap; }
/* « ✓ Prêt » sur une seule ligne */
/* Explications : police discrète, différente de celle du tableau */
#outils_conversion_pdf .explication { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: .82rem; color: #7a8a96; line-height: 1.5; }
/* Boutons sous le tableau (tous les PDF) : même taille que ceux de la liste, avec un halo pour les distinguer */
#outils_conversion_pdf #liste_conversions tfoot td { border-top: 0; border-left: 0; border-right: 0; }
#outils_conversion_pdf #liste_conversions tfoot tr:first-child td { border-top: 2px solid #dee2e6; }
#outils_conversion_pdf #liste_conversions tfoot tr:last-child td { border-bottom: 0; }
/* Tous les boutons du tableau : même taille, icône seule, nom dans la bulle au survol */
#outils_conversion_pdf #liste_conversions .btn { width: 2.1rem; height: 2.1rem; padding: 0; font-size: 0; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
#outils_conversion_pdf #liste_conversions .btn i, #outils_conversion_pdf #liste_conversions .btn .spinner-border { font-size: .95rem; margin: 0 !important; }
#outils_conversion_pdf #liste_conversions .bouton-tous { box-shadow: 0 0 0 3px rgba(35, 85, 118, .22); }
#outils_conversion_pdf #liste_conversions .bouton-tous:hover { box-shadow: 0 0 0 4px rgba(35, 85, 118, .32); }

/* ----- outils/scanner (#outils_scanner) : marche à suivre « Régler mon scanner » (3.9.14) ----- */
#outils_scanner .sc-etapes { counter-reset: etape; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; max-width: 52rem; }
#outils_scanner .sc-etapes > li { counter-increment: etape; position: relative; border: 1px solid #e3eaee; border-radius: .75rem; background: #fff; padding: 1rem 1.15rem 1rem 3.6rem; }
#outils_scanner .sc-etapes > li::before { content: counter(etape); position: absolute; left: 1rem; top: 1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--extranet-blue, #235576); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
#outils_scanner .sc-etapes h2 { font-size: 1.05rem; font-weight: 600; color: var(--extranet-blue, #235576); margin: .25rem 0 .5rem; }
#outils_scanner .sc-etapes ul { margin: 0 0 .6rem; padding-left: 1.2rem; }
#outils_scanner .sc-etapes ul li { margin-bottom: .2rem; }
#outils_scanner .sc-etat { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: #663f00; }
#outils_scanner .sc-etat.ok { color: #0e5a2f; }
@media (max-width: 575.98px) { #outils_scanner .sc-etapes > li { padding-left: 3.1rem; } #outils_scanner .sc-etapes > li::before { left: .75rem; } }

/* ----- outils/depot (#outils_depot) ----- */
#outils_depot .dp-bloc { border: 1px solid #e3eaee; border-radius: .75rem; background: #fff; padding: 1rem 1.15rem; }
#outils_depot .dp-bloc h2 { font-size: 1.05rem; font-weight: 600; color: var(--extranet-blue, #235576); margin-bottom: .75rem; }
#outils_depot .dp-depot, #com_scan .dp-depot { border: 2px dashed #b9cbd6; border-radius: .75rem; padding: 3rem 1rem; text-align: center; color: #5b6b76; cursor: pointer; transition: background .15s, border-color .15s; }
#outils_depot .dp-depot:hover, #outils_depot .dp-depot.survol, #com_scan .dp-depot:hover, #com_scan .dp-depot.survol { background: #f1f6f9; border-color: var(--extranet-blue, #235576); }
#outils_depot .dp-depot i, #com_scan .dp-depot i { font-size: 2.2rem; color: var(--extranet-blue, #235576); display: block; margin-bottom: .6rem; }
#outils_depot .dp-lu { display: grid; grid-template-columns: max-content 1fr; gap: .1rem .8rem; }
#outils_depot .dp-lu dt { font-weight: 400; color: #7a8a96; }
#outils_depot .dp-lu dd { margin: 0; color: #233; }
/* Feux vert / orange / rouge : bien visibles (gras, couleur foncée) */
/* Étiquettes d'état (3.9.9) : couleur vive, bord foncé de la même teinte, icône blanche dans une pastille pleine */
#outils_depot .dp-statut { display: inline-flex; align-items: center; gap: .6rem; border: 1.5px solid; border-radius: 0.625rem; padding: .45rem .9rem .45rem .5rem; font-size: .95rem; font-weight: 700; line-height: 1.25; }
#outils_depot .dp-statut > i { flex: 0 0 auto; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: .8rem; }
#outils_depot .dp-statut.sur { background: #dcf5e4; border-color: #1f8a4c; color: #0e5a2f; }
#outils_depot .dp-statut.sur > i { background: #1f8a4c; }
#outils_depot .dp-statut.moitie { background: #fff0c7; border-color: #c27c00; color: #663f00; }
#outils_depot .dp-statut.moitie > i { background: #e08e00; }
#outils_depot .dp-statut.aucun, #outils_depot .dp-statut.erreur { background: #fde2e0; border-color: #c62828; color: #861a1a; }
#outils_depot .dp-statut.aucun > i, #outils_depot .dp-statut.erreur > i { background: #d32f2f; }
#outils_depot .dp-groupe { border: 1px solid #e3eaee; border-radius: .6rem; background: #f7fafc; padding: .75rem .9rem; }
#outils_depot .dp-groupe-titre { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--extranet-blue, #235576); margin-bottom: .5rem; }
#outils_depot .dp-groupe .mb-3:last-child { margin-bottom: 0 !important; }
#outils_depot .dp-range { background: #e6f4ea; color: #1e6b34; border-radius: .6rem; padding: .7rem 1rem; }
/* Documents numérisés en attente (3.9.0) : dossier de scans lu par le navigateur, sur ordinateur seulement */
#outils_depot .dp-scans { border-top: 1px solid #e3eaee; margin-top: 1rem; padding-top: 1rem; }
#outils_depot .dp-scans.dp-scans-masque { border-top: 0; margin-top: .4rem; padding-top: 0; } /* « Ne plus me rappeler » (3.9.18) */
#outils_depot .dp-scans.dp-scans-masque .dp-scans-tete { display: none; }
#outils_depot .dp-scans-lien { font-size: .75rem; }
#outils_depot .dp-scans-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
#outils_depot .dp-scans-tete h2 { margin-bottom: 0; }
#outils_depot .dp-scans-nb { display: inline-block; min-width: 1.6rem; margin-left: .35rem; padding: 0 .5rem; border-radius: 1rem; background: var(--extranet-blue, #235576); color: #fff; font-size: .85rem; text-align: center; }
#outils_depot .dp-scans-liste { list-style: none; margin: 0; padding: 0; }
#outils_depot .dp-scans-liste li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .5rem 0; border-top: 1px solid #e3eaee; }
#outils_depot .dp-scans-nom { overflow-wrap: anywhere; }
#outils_depot .dp-scans-nom i { color: var(--extranet-blue, #235576); }
#outils_depot .dp-scans-nom small { display: block; color: #7a8a96; }
#outils_depot .dp-etat { display: inline-block; margin-top: .3rem; font-size: .8rem; font-weight: 600; white-space: nowrap; border-radius: 1rem; padding: .1rem .6rem; background: #e8f0f6; color: var(--extranet-blue, #235576); }
#outils_depot .dp-etat.cours { background: #ffe5a0; color: #5c4200; }
#outils_depot .dp-etat.echec { background: #f5c6cb; color: #7a1c1c; }
#outils_depot .dp-etat.classe { background: #d1e7dd; color: #0f4d2a; }
#outils_depot .dp-scans-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
#outils_depot .dp-scans-confirme { grid-column: 1 / -1; } /* confirmation de suppression sous la ligne (3.9.7) */
/* Nom du document déposé (3.9.5) : deux lignes au plus, la suite en « … » (nom complet au survol) */
#outils_depot .dp-doc-nom { flex: 1 1 auto; min-width: 0; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
@media (pointer: coarse) { #outils_depot .dp-scans { display: none !important; } }
/* Photos (téléphone) : boutons visibles seulement sur un écran tactile */
#outils_depot .dp-tactile { display: none; }
#outils_depot .dp-effacer { display: none; }
/* croix « Effacer le texte » : téléphone seulement */
@media (pointer: coarse) {
  #outils_depot .dp-tactile { display: block; }
  #outils_depot .dp-effacer { display: inline-block; }
  #outils_depot .dp-souris { display: none; }
  #outils_depot .dp-depot, #com_scan .dp-depot { padding: 1.25rem 1rem; }
  #outils_depot .dp-depot i, #com_scan .dp-depot i { font-size: 1.6rem; }
}
#outils_depot .dp-vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); gap: .6rem; }
#outils_depot .dp-vignette { position: relative; border: 1px solid #d5e0e7; border-radius: .5rem; overflow: hidden; background: #f7fafc; aspect-ratio: 3 / 4; }
#outils_depot .dp-vignette img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: pointer; }
#outils_depot .dp-vignette .dp-attente { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .7); color: var(--extranet-blue, #235576); font-size: 1.4rem; }
#outils_depot .dp-vignette .dp-num { position: absolute; left: .3rem; bottom: .3rem; background: rgba(35, 85, 118, .9); color: #fff; font-size: .75rem; font-weight: 600; border-radius: .3rem; padding: 0 .4rem; }
#outils_depot .dp-vignette .dp-suppr { position: absolute; top: .25rem; right: .25rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #7a1c1c; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
/* Écran de recadrage (3.7.1), plein écran */
#outils_depot .dp-recadrage { position: fixed; inset: 0; z-index: 5000; background: #15191c; color: #fff; display: flex; flex-direction: column; }
#outils_depot .dp-rc-info { padding: .7rem 1rem .4rem; text-align: center; font-size: .9rem; min-height: 2.6rem; }
#outils_depot .dp-rc-zone { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 1.375rem; }
#outils_depot .dp-rc-cadre { position: relative; display: inline-block; max-width: 100%; max-height: 100%; touch-action: none; }
#outils_depot .dp-rc-cadre img { display: block; max-width: 100%; max-height: calc(100vh - 10.625rem); max-height: calc(100dvh - 10.625rem); user-select: none; -webkit-user-drag: none; pointer-events: none; }
#outils_depot .dp-rc-cadre svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
#outils_depot .dp-rc-cadre polygon { fill: rgba(35, 120, 200, .18); stroke: #4fb3ff; stroke-width: 2; vector-effect: non-scaling-stroke; }
#outils_depot .dp-rc-coin { position: absolute; width: 2.375rem; height: 2.375rem; margin: -1.1875rem 0 0 -1.1875rem; border-radius: 50%; border: 3px solid #4fb3ff; background: rgba(255, 255, 255, .25); touch-action: none; cursor: grab; }
#outils_depot .dp-rc-coin.actif { background: rgba(79, 179, 255, .5); transform: scale(1.25); }
#outils_depot .dp-rc-bas { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; padding: .6rem .75rem 1rem; }
#outils_depot .dp-rc-bas .btn { min-width: 3rem; }
/* Appareil photo dans la page (3.7.6) : visée plein écran, cadre de la feuille en direct */
#outils_depot .dp-viseur { position: fixed; inset: 0; z-index: 4900; background: #000; color: #fff; display: flex; flex-direction: column; }
#outils_depot .dp-vs-zone { position: relative; flex: 1; min-height: 0; }
#outils_depot .dp-vs-zone video, #outils_depot .dp-vs-zone canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#outils_depot .dp-vs-zone video { object-fit: contain; background: #000; }
#outils_depot .dp-vs-zone canvas { pointer-events: none; }
#outils_depot .dp-vs-info { text-align: center; font-size: .9rem; padding: .45rem 1rem; min-height: 2.2rem; }
#outils_depot .dp-vs-bas { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; padding: .4rem 1rem 1.3rem; }
#outils_depot .dp-vs-bas > :first-child { justify-self: start; }
#outils_depot .dp-vs-droite { justify-self: end; display: flex; gap: .5rem; align-items: center; }
#outils_depot .dp-vs-declencheur { width: 4.75rem; height: 4.75rem; border-radius: 50%; border: 5px solid #fff; background: #fff; box-shadow: inset 0 0 0 4px #000; padding: 0; }
#outils_depot .dp-vs-declencheur:active { transform: scale(.92); }
#outils_depot .dp-vs-declencheur:disabled { opacity: .45; }
#outils_depot .dp-viseur .btn.active { background: #ffd43b; color: #000; border-color: #ffd43b; }

/* ----- outils/traducteur (#outils_traducteur) ----- */
#outils_traducteur .trad-carte { background: #fff; border: 1px solid #dee2e6; border-radius: .75rem; padding: 1.25rem; }
#outils_traducteur .trad-carte h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
#outils_traducteur .trad-carte h2 > span > i { color: var(--sbg-bleu, #235576); margin-right: .4rem; }
/* Bouton vers l'autre traduction : présenté exactement comme le titre (sans cadre) */
#outils_traducteur .trad-carte h2 .trad-autre { background: none; border: 0; padding: 0; font: inherit; color: inherit; white-space: nowrap; cursor: pointer; }
#outils_traducteur .trad-carte h2 .trad-autre i { color: var(--sbg-bleu, #235576); margin-right: .4rem; }
#outils_traducteur .trad-carte h2 .trad-autre:hover { color: var(--sbg-bleu, #235576); }
/* Choix de départ : deux grandes tuiles */
#outils_traducteur .trad-choix { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem;
  padding: 2.25rem 1.5rem; background: #fff; border: 1px solid #dee2e6; border-radius: 1rem; transition: border-color .15s ease, box-shadow .15s ease; }
#outils_traducteur .trad-choix:hover, #outils_traducteur .trad-choix:focus-visible { border-color: var(--sbg-bleu, #235576); box-shadow: 0 0 0 4px rgba(35, 85, 118, .15); }
#outils_traducteur .trad-choix i { font-size: 2.6rem; color: var(--sbg-bleu, #235576); }
#outils_traducteur .trad-choix .titre { font-size: 1.2rem; font-weight: 600; color: #212529; }
#outils_traducteur .trad-choix .desc { font-size: .9rem; color: #6c757d; max-width: 23.75rem; }
/* Résultat d'un fichier, à l'écran */
#outils_traducteur #vue_corps iframe { width: 100%; height: 75vh; border: 1px solid #dee2e6; border-radius: .5rem; background: #fff; }
#outils_traducteur #vue_corps pre { white-space: pre-wrap; font-family: inherit; font-size: .95rem; margin: 0; max-height: 75vh; overflow: auto;
  background: #f8f9fa; border: 1px solid #dee2e6; border-radius: .5rem; padding: 1rem 1.25rem; }
#outils_traducteur #vue_corps .attente { padding: 3rem 1rem; text-align: center; color: #6c757d; border: 1px dashed #c8c8c8; border-radius: .5rem; }
#outils_traducteur .trad-barre { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }
#outils_traducteur .trad-barre .form-select { width: auto; min-width: 11.875rem; }
#outils_traducteur .trad-inverser { width: 2.5rem; }
#outils_traducteur .trad-fleche { width: 2.5rem; text-align: center; color: #6c757d; }
#outils_traducteur .trad-detectee { font-size: .85rem; color: #6c757d; }
/* Boutons du résultat : tous pareils, même largeur */
#outils_traducteur #vue_boutons .btn { width: 9.5rem; }
/* Fenêtre d'envoi : couleurs du site (bleu SBG, fond brume, traits), libellés bien lisibles, champs espacés */
#outils_traducteur #modal_envoi .modal-content { border: 0; border-radius: 0.875rem; overflow: hidden; }
#outils_traducteur #modal_envoi .modal-header { background: #fff; border-bottom: 1px solid var(--sbg-trait, #cdd9e0); }
#outils_traducteur #modal_envoi .modal-title { color: var(--sbg-encre, #15232d); font-weight: 700; }
#outils_traducteur #modal_envoi .modal-title i { color: var(--sbg-bleu, #235576); }
#outils_traducteur #modal_envoi .modal-body { background: var(--sbg-brume, #eef3f6); padding: 1.5rem 1.75rem; }
#outils_traducteur #modal_envoi .modal-footer { background: #fff; border-top: 1px solid var(--sbg-trait, #cdd9e0); }
#outils_traducteur #modal_envoi #tr_texte { min-height: 18.75rem; }
#outils_traducteur #modal_envoi .modal-body label.form-label { color: var(--sbg-encre, #15232d); font-weight: 600; font-size: .9rem !important; margin-bottom: .35rem !important; }
#outils_traducteur #modal_envoi .modal-body label.form-label .text-muted { color: var(--sbg-gris, #5b6b76) !important; font-weight: 400; }
#outils_traducteur #modal_envoi .modal-body .mt-2, #outils_traducteur #modal_envoi .modal-body .mt-3 { margin-top: 1.1rem !important; }
#outils_traducteur #modal_envoi .modal-body .form-control, #outils_traducteur #modal_envoi .modal-body .form-select { background-color: #fff; border-color: var(--sbg-trait, #cdd9e0); color: var(--sbg-encre, #15232d); }
#outils_traducteur #modal_envoi .modal-body .form-control:focus, #outils_traducteur #modal_envoi .modal-body .form-select:focus { border-color: var(--sbg-bleu, #235576); box-shadow: var(--sbg-halo, 0 0 0 3px rgba(35, 85, 118, .2)); }
#outils_traducteur #modal_envoi .modal-body .form-control::placeholder { color: var(--sbg-gris, #5b6b76); opacity: .8; }
#outils_traducteur #modal_envoi .modal-body textarea.form-control { line-height: 1.6; }
#outils_traducteur #modal_envoi .envoi-note { color: var(--sbg-gris, #5b6b76); font-size: .85rem; line-height: 1.5; }
#outils_traducteur #modal_envoi .form-check-input:checked { background-color: var(--sbg-bleu, #235576); border-color: var(--sbg-bleu, #235576); }
#outils_traducteur #modal_envoi .btn-primary, #outils_traducteur #modal_envoi .btn-primary:disabled { background: var(--sbg-bleu, #235576); border-color: var(--sbg-bleu, #235576); color: #fff; opacity: 1; }
#outils_traducteur #modal_envoi .btn-primary:hover { background: var(--sbg-bleu-fonce, #1b4560); border-color: var(--sbg-bleu-fonce, #1b4560); }
#outils_traducteur #modal_envoi .progress-bar { background: var(--sbg-bleu, #235576); }
/* Liste des clients proposés : noms foncés et bien lisibles, survol en bleu SBG */
#outils_traducteur #modal_envoi .tr-suggestions { border: 1px solid var(--sbg-trait, #cdd9e0); border-radius: .4rem; box-shadow: 0 6px 18px rgba(18, 50, 74, .25) !important; }
#outils_traducteur #modal_envoi .tr-suggestions .list-group-item { color: var(--sbg-encre, #15232d); background: #fff; border-color: var(--sbg-trait-doux, #e3eaee); }
#outils_traducteur #modal_envoi .tr-suggestions .list-group-item .fw-semibold { color: var(--sbg-encre, #15232d); font-weight: 700 !important; }
#outils_traducteur #modal_envoi .tr-suggestions .list-group-item .text-muted { color: var(--sbg-gris, #5b6b76) !important; }
#outils_traducteur #modal_envoi .tr-suggestions .list-group-item:hover, #outils_traducteur #modal_envoi .tr-suggestions .list-group-item:focus { background: var(--sbg-bleu, #235576); color: #fff; }
#outils_traducteur #modal_envoi .tr-suggestions .list-group-item:hover .fw-semibold, #outils_traducteur #modal_envoi .tr-suggestions .list-group-item:hover .text-muted, #outils_traducteur #modal_envoi .tr-suggestions .list-group-item:focus .fw-semibold, #outils_traducteur #modal_envoi .tr-suggestions .list-group-item:focus .text-muted { color: #fff !important; }
#outils_traducteur .tr-suggestions { position: absolute; z-index: 20; left: 0; right: 0; max-height: 16.25rem; overflow-y: auto; }
#outils_traducteur .trad-titre { font-weight: 600; margin-bottom: .4rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 1.9375rem; }
#outils_traducteur textarea { min-height: 18.75rem; resize: vertical; font-size: .95rem; line-height: 1.5; }
#outils_traducteur #resultat { background: #f8f9fa; }
#outils_traducteur .trad-pied { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .4rem; font-size: .85rem; color: #6c757d; }
/* Zone de dépôt des fichiers (comme Conversion PDF) */
#outils_traducteur .trad-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 9.375rem; padding: 1.25rem 1rem; border: 3px dashed #c8c8c8; border-radius: 1rem; background: #f8f9fa;
  cursor: pointer; transition: background .2s ease, border-color .2s ease; margin: 0; }
#outils_traducteur .trad-zone:hover { border-color: #9aa5b1; }
#outils_traducteur .trad-zone.dragover { background: #eef6ff; border-color: var(--sbg-bleu, #235576); }
#outils_traducteur .trad-zone .icone { font-size: 2.75rem; line-height: 1; color: #b0b7bf; }
#outils_traducteur .trad-zone.dragover .icone { color: var(--sbg-bleu, #235576); }
#outils_traducteur .explication { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: .82rem; color: #7a8a96; line-height: 1.5; }
@media (max-width: 575.98px) {
  #outils_traducteur .trad-carte { padding: 1rem .75rem; }
  #outils_traducteur .trad-barre .form-select { min-width: 0; flex: 1 1 40%; }
  #outils_traducteur textarea { min-height: 12.5rem; }
}

/* ----- outils/transferts/index (#outils_transferts) ----- */
#outils_transferts .tr-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 10.625rem; padding: 1.5rem 1rem; border: 3px dashed #c8c8c8; border-radius: 1rem; background: #f8f9fa;
  cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
#outils_transferts .tr-zone:hover { border-color: #9aa5b1; }
#outils_transferts .tr-zone.dragover { background: #eef6ff; border-color: var(--extranet-blue, #235576); }
#outils_transferts .tr-zone .icone { font-size: 2.75rem; line-height: 1; color: #b0b7bf; }
#outils_transferts .tr-carte { border: 1px solid #e3eaee; border-radius: .75rem; background: #fff; }
#outils_transferts .tr-liste td { vertical-align: middle; }
#outils_transferts .tr-liste tr.echu td { color: #8a979f; }
#outils_transferts .tr-fichiers li { display: flex; justify-content: space-between; gap: .75rem; padding: .3rem 0; border-bottom: 1px solid #eef3f6; }
#outils_transferts .tr-fichiers li .nom { word-break: break-all; }
#outils_transferts .tr-suggestions { position: absolute; z-index: 20; left: 0; right: 0; max-height: 16.25rem; overflow-y: auto; }
#outils_transferts .nav-tabs .nav-link { color: #5b6b76; }
#outils_transferts .nav-tabs .nav-link.active { color: var(--extranet-blue, #235576); font-weight: 600; }

/* ----- outils/transferts/show (#outils_transferts_detail) ----- */
#outils_transferts_detail .tr-carte { border: 1px solid #e3eaee; border-radius: .75rem; background: #fff; }
#outils_transferts_detail .tr-liste td { vertical-align: middle; }
#outils_transferts_detail .tr-liste .nom { word-break: break-all; }
#outils_transferts_detail .tr-lien { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8125rem; }

/* ----- Outils › Comparatif LAMal (3.34.25) ----- */
#outils_lamal .lam-carte { background: #fff; border: 1px solid var(--sbg-trait); border-radius: .75rem; padding: 1.25rem; }
#outils_lamal .lam-titre { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 .75rem; }
#outils_lamal .lam-suggest { position: absolute; z-index: 20; left: calc(var(--bs-gutter-x) * .5); right: calc(var(--bs-gutter-x) * .5); top: 100%; margin: -1.4rem 0 0; padding: 0.25rem 0; list-style: none;
  background: #fff; border: 1px solid var(--sbg-trait); border-radius: 0.5rem; box-shadow: var(--sbg-ombre); max-height: 20rem; overflow-y: auto; }
#outils_lamal .lam-suggest li { padding: .45rem .75rem; cursor: pointer; }
#outils_lamal .lam-suggest li span { color: var(--sbg-gris); margin-left: .25rem; }
#outils_lamal .lam-suggest li.actif, #outils_lamal .lam-suggest li[data-i]:hover { background: var(--sbg-survol); }
#outils_lamal .lam-suggest li.vide { color: var(--sbg-gris); cursor: default; }
#outils_lamal .lam-personne { border: 1px solid var(--sbg-trait-doux); background: var(--sbg-brume-2); border-radius: 0.5rem; padding: .75rem 1rem 1rem; margin-bottom: .75rem; }
#outils_lamal .lam-personne-tete { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; min-height: 1.9375rem; }
#outils_lamal .lam-personne-tete .lam-retirer { margin-left: auto; text-decoration: none; }
#outils_lamal .lam-badge:not(:empty) { font-size: .8rem; color: var(--sbg-bleu); background: #e9f2f7; border-radius: 62.4375rem; padding: .1rem .55rem; }
#outils_lamal .lam-modeles { display: flex; flex-wrap: wrap; gap: .5rem; }
#outils_lamal .lam-chip { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--sbg-trait); border-radius: 62.4375rem; padding: .35rem .8rem; background: #fff; cursor: pointer; }
#outils_lamal .lam-chip:has(input:checked) { border-color: var(--sbg-bleu); background: #e9f2f7; }
#outils_lamal .lam-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 1rem; }
#outils_lamal .lam-chiffres > div { display: flex; flex-direction: column; }
#outils_lamal .lam-chiffres .lib { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--sbg-gris); }
#outils_lamal .lam-chiffres .gros { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
#outils_lamal .lam-chiffres .sous { color: var(--sbg-gris); font-size: .9rem; }
#outils_lamal .lam-eco .gros { color: var(--sbg-bleu); }
#outils_lamal .lam-barre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin: 1.25rem 0 .5rem; }
#outils_lamal .lam-tableau { background: #fff; border: 1px solid var(--sbg-trait); border-radius: .75rem; }
#outils_lamal .lam-tableau .lam-rang { width: 3rem; color: var(--sbg-gris); }
#outils_lamal .lam-tableau tr.lam-meilleur td { background: #eef6fb; }
#outils_lamal .lam-tableau tr.lam-actuelle td { background: var(--sbg-brume); }
#outils_lamal .lam-detail, #outils_lamal .lam-modele-tel { display: block; font-size: .85rem; color: var(--sbg-gris); }
#outils_lamal .lam-modele-tel { display: none; }
#outils_lamal .lam-moins { color: #1e7a46; font-weight: 600; }
#outils_lamal .lam-client { display: flex; align-items: center; gap: .6rem; background: #e9f2f7; border: 1px solid var(--sbg-trait); border-radius: .75rem; padding: .7rem 1rem; margin-bottom: 1rem; }
#outils_lamal .lam-client > i { color: var(--sbg-bleu); }
#outils_lamal .lam-client a { font-weight: 600; }
#outils_lamal .lam-client .lam-client-sans { margin-left: auto; font-weight: 400; white-space: nowrap; }
#outils_lamal .lam-famille { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .75rem; }
#outils_lamal .lam-famille .lam-chip { font: inherit; font-size: .95rem; }
#outils_lamal .lam-famille .lam-chip i { color: var(--sbg-bleu); font-size: .8rem; }
#outils_lamal .lam-contrats { margin-top: .5rem; font-size: .9rem; color: var(--sbg-gris); }
#outils_lamal .lam-plus { color: var(--sbg-erreur); }
@media (max-width: 767.98px) {
  #outils_lamal .lam-carte { padding: 1rem .75rem; }
  #outils_lamal .lam-col-modele, #outils_lamal .lam-col-an { display: none; }
  #outils_lamal .lam-modele-tel { display: block; }
  #outils_lamal .lam-chiffres .gros { font-size: 1.35rem; }
}

/* ===== Page dans un cadre (3.37.18, @section('cadre') du gabarit) : sans menu, fond blanc, marges réduites ===== */
.app-cadre { background: #fff; }
.app-cadre .app-principal::before { display: none; }
.app-cadre .extranet-page { padding: 1rem 1.25rem 1.5rem; }
@media (max-width: 991.98px) { .app-cadre .extranet-page { padding: 0.625rem 0.625rem 1.25rem; } }

/* ===== Messagerie › Paramètres › Textes rapides (3.37.18) ===== */
.rc-abreviation { font-size: .9rem; color: var(--sbg-encre); background: var(--sbg-brume); padding: 1px 0.375rem; border-radius: 0.25rem; }
.rc-abreviation-champ { max-width: 14rem; }
.rc-texte { white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 48rem; }

/* ===== Centre d'aide (3.45.0) : une seule colonne, bouton « ? » et panneau latéral ===== */
.aide-bouton { flex: 0 0 auto; }
.v2-entete:has(> .aide-bouton) > .v2-actions { margin-left: auto; }
.aide-bouton-ligne { display: flex; justify-content: flex-end; margin-bottom: .5rem; }
@media (max-width: 991.98px) {
  .v2-entete > .aide-bouton, .aide-bouton-ligne { display: none; }
}
.aide-panneau { --bs-offcanvas-width: 32rem; }
@media (max-width: 991.98px) { .aide-panneau { --bs-offcanvas-width: 100%; } }
.aide-panneau .offcanvas-title { font-size: 1.15rem; margin: 0; }
.aide-panneau-titre { font-size: 1.1rem; margin: 1rem 0 .5rem; }
.aide-panneau-pied { border-top: 1px solid var(--sbg-trait-doux); margin-top: 1.25rem; padding-top: .75rem; }
.aide-bloc { background: #fff; border: 1px solid var(--sbg-trait-doux); border-radius: .5rem; padding: 1rem 1.25rem; margin-bottom: 1rem; max-width: 56rem; }
.aide-sous-titre { font-size: 1rem; font-weight: 600; margin: 0 0 .5rem; }
.aide-liste { list-style: none; margin: 0; padding: 0; }
.aide-ligne { border-bottom: 1px solid var(--sbg-trait-doux); }
.aide-ligne:last-child { border-bottom: 0; }
a.aide-ligne { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem .25rem; color: var(--sbg-encre); text-decoration: none; }
a.aide-ligne:hover { background: var(--sbg-survol); text-decoration: none; }
.aide-ligne-texte > strong, .aide-ligne-texte > span { display: block; }
.aide-ligne-ico { flex: 0 0 1.5rem; text-align: center; color: var(--sbg-bleu); padding-top: .15rem; }
.aide-ligne-texte { flex: 1 1 auto; min-width: 0; }
.aide-ligne-texte small, .aide-resultat-module, .aide-nombre, .aide-version { color: var(--sbg-gris); }
.aide-resultat-module { font-size: .85rem; }
.aide-nombre { font-size: .9rem; margin: 0 0 .5rem; }
.aide-vide { color: var(--sbg-gris); margin: .5rem 0 1rem; }
.aide-version { font-size: .85rem; margin: 1rem 0 0; }
.aide-article h2 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.aide-article h2:first-child { margin-top: 0; }
.aide-article h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.aide-article ol, .aide-article ul { padding-left: 1.5rem; }
.aide-article li { margin-bottom: .3rem; }
.aide-article mark, .aide-resultat mark { background: #fff3bf; color: inherit; padding: 0 .1rem; }
.aide-capture { margin: 1rem 0; }
.aide-capture img { max-width: 100%; height: auto; border: 1px solid var(--sbg-trait); border-radius: .375rem; }
.aide-capture figcaption { font-size: .85rem; color: var(--sbg-gris); margin-top: .35rem; }
.aide-tableau { width: auto; max-width: 100%; }
.aide-panneau-contenu .aide-bloc { padding: 0; border: 0; }
/* ================= 12. IMPRESSION ================= */
/* ===== Modification rapide (3.8.43) : fiche contact, carte Client — un seul champ modifié sur place ===== */
.v2-champ-rapide dd { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 0.375rem; }
.v2-crayon { border: 0; background: none; padding: 0.125rem 0.375rem; margin-left: auto; color: var(--sbg-bleu); font-size: .78rem; line-height: 1; border-radius: 0.375rem; opacity: 0; transition: opacity .15s; cursor: pointer; }
.v2-champ-rapide:hover .v2-crayon, .v2-crayon:focus-visible { opacity: .75; }
.v2-crayon:hover { opacity: 1 !important; background: var(--sbg-brume); }
/* Mêmes icônes ailleurs sur la fiche (3.10.19) : carte « Liens » (au survol de la ligne), bouton d'un titre et boutons kDrive (toujours visibles) */
a.v2-crayon { text-decoration: none; display: inline-block; }
.v2-crayon + .v2-crayon { margin-left: 0; }
.v2-crayon-suppr { color: var(--sbg-erreur); }
.v2-crayon-visible { opacity: .75; }
.v2-champ-lien dd { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 0.375rem; }
.v2-champ-lien:hover .v2-crayon { opacity: .75; }
@media (hover: none) { .v2-crayon { opacity: .5; } }
.v2-carte:not(.montrer-vides) .v2-champ-vide { display: none; }
.v2-champ-vide dd::before { content: "—"; color: var(--sbg-gris); font-weight: 400; }
.v2-champ-edition dd::before { content: none; }
.v2-champ-edition { background: #e8f0f6; border-radius: 0.375rem; padding-left: 0.375rem !important; padding-right: 0.375rem !important; }
.v2-rapide-zone { display: flex; align-items: center; gap: 0.375rem; width: 100%; }
.v2-rapide-zone .form-control, .v2-rapide-zone .form-select { flex: 1 1 auto; min-width: 0; background-color: #fff; border-color: #c3d4df; }
.v2-rapide-zone .btn { flex: 0 0 auto; width: 2rem; height: 1.9375rem; padding: 0; display: inline-grid; place-items: center; }
.v2-rapide-msg { width: 100%; color: var(--sbg-erreur); font-size: .82rem; font-weight: 400; }
.v2-rapide-msg:empty { display: none; }
.v2-champ-enregistre { animation: v2-enregistre 1.4s ease-out; border-radius: 0.375rem; }
@keyframes v2-enregistre { 0% { background: #d9f2e1; } 100% { background: transparent; } }
@media (max-width: 767.98px) { .v2-carte .v2-champ.v2-champ-edition { grid-template-columns: 1fr; gap: 0.25rem; } }
.v2-champ-bloc { grid-template-columns: 1fr !important; }
.v2-champ-bloc dd { display: block; position: relative; padding-right: 1.625rem; }
.v2-champ-bloc .v2-crayon { position: absolute; top: 0; right: 0; }
.v2-champ-bloc.v2-champ-edition dd { padding-right: 0; }
.v2-rapide-notes { align-items: flex-start; }
.v2-rapide-notes textarea { min-height: 7rem; }
.v2-voir-vides { border: 0; background: none; padding: 0.5rem 0 0; color: var(--sbg-bleu); font-size: .85rem; cursor: pointer; }
.v2-voir-vides:hover { text-decoration: underline; }
.v2-voir-vides[hidden] { display: none; }

@media print {
  .app-menu, .app-barre, .v2-actions, .btn, .pagination, form { display: none !important; }
  .extranet-page { padding: 0 !important; }
  .app-principal::before { display: none; }
  table { font-size: 10pt; }
}

/* Téléphone (3.8.38) : entrées réservées à l'ordinateur (assistance RustDesk) masquées, ainsi que leur compteur sur le dossier Outils */
@media (max-width: 767.98px) {
  .app-menu .menu-ordinateur, .app-menu [data-menu="Outils"] .assist-badge { display: none !important; }
}

/* ===== Calque « Droits » et « Voir comme » (3.15.0) : administrateurs seulement =====
   <droit-zone> (directive @droit) n'existe dans la page que si le calque est affiché : il ne change pas la mise en page
   (display: contents), encadre ce qu'il contient et met l'étiquette du niveau minimum devant. */
droit-zone { display: contents; }
droit-zone::before { content: attr(data-droit); display: inline-block; margin: 0 0.25rem; padding: 1px 0.375rem; border-radius: 0.25rem; background: #b45309; color: #fff; font-size: .7rem; font-weight: 600; line-height: 1.4; white-space: nowrap; vertical-align: middle; }
droit-zone > * { outline: 2px dashed #b45309; outline-offset: 2px; }
.droit-bandeau { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.125rem; margin-bottom: 0.75rem; padding: 0.5rem 0.75rem; border: 2px dashed #b45309; border-radius: 0.5rem; background: #fff7ed; color: #7c2d12; font-size: .88rem; }
.droit-badge { flex: 0 0 auto; margin-left: auto; padding: 0 0.375rem; border-radius: 0.25rem; background: #b45309; color: #fff; font-size: .68rem; font-weight: 600; white-space: nowrap; }
.app-menu-droits { display: flex; align-items: center; gap: 0.375rem; margin-bottom: 0.625rem; }
.app-menu-droits-btn { display: inline-flex; align-items: center; gap: 0.4375rem; padding: 0.25rem 0.625rem; border: 0; border-radius: 0.4375rem; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); font-size: .82rem; }
.app-menu-droits-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.app-menu-droits-btn.is-active { background: #b45309; color: #fff; }
.app-menu-droits-voir { flex: 1 1 auto; min-width: 0; padding: 0.1875rem 0.375rem; border: 0; border-radius: 0.4375rem; background: rgba(255, 255, 255, .08); color: #fff; font-size: .8rem; }
.app-menu-droits-voir option { color: #000; }
html.menu-replie .app-menu-droits { justify-content: center; }
/* Calque (3.20.28) : niveau seul sur chaque rubrique, posé par le script de partials/droits_bandeau */
.droit-niv { display: inline-block; flex: 0 0 auto; margin-left: 0.375rem; padding: 0 0.3125rem; border-radius: 0.25rem; background: #b45309; color: #fff; font-size: .68rem; font-weight: 600; font-style: normal; line-height: 1.5; letter-spacing: 0; text-transform: none; vertical-align: middle; white-space: nowrap; }
.app-menu .droit-niv { margin-left: auto; }
.app-menu .droit-niv + .app-menu-fleche { margin-left: 0.375rem; }
html.menu-replie .app-menu .droit-niv { display: none; }
:is(.extranet-step, .extranet-card, .card, .v2-bloc, .dp-bloc, .dp-groupe, .sys-bloc, .sys-carte, .tr-carte, .as-carte, .trad-carte) > .droit-niv:first-child { display: table; margin: 0 0 0.375rem; }

/* ===== Explorateur « Dossiers » (3.16.0) : vues Détails / Liste / Grandes icônes, menu du clic droit. Script : public/js/explorateur.js ===== */
.kx-barre { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
/* Recherche (3.18.0) */
.kx-recherche { position: relative; flex: 0 1 17.5rem; margin: 0; }
.kx-recherche i { position: absolute; left: 0.6875rem; top: 50%; transform: translateY(-50%); color: var(--sbg-gris); font-size: .8rem; pointer-events: none; }
.kx-recherche input { width: 100%; height: 2.25rem; padding: 0 0.625rem 0 2rem; border: 1px solid var(--sbg-trait); border-radius: 0.5rem; background: #fff; font-size: .875rem; color: var(--sbg-encre); }
.kx-recherche input:focus { outline: none; border-color: var(--sbg-bleu); box-shadow: var(--sbg-halo); }
.kx-el[hidden] { display: none !important; }
.kx-note { color: var(--sbg-gris); font-size: .85rem; margin: 0.5rem 0 0; }
.kx-chemin { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0.125rem 0.375rem; padding: 0.375rem 0.75rem; border: 1px solid var(--sbg-trait); border-radius: 0.5rem; background: #fff; font-size: .9rem; }
.kx-chemin a { text-decoration: none; }
.kx-chemin a:hover { text-decoration: underline; }
.kx-chemin-ico { color: var(--sbg-bleu); margin-right: 0.25rem; }
.kx-sep { font-size: .6rem; color: var(--sbg-gris); }
.kx-commandes { display: flex; align-items: center; flex-wrap: wrap; gap: 0.375rem; padding-bottom: 0.5rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--sbg-trait-doux); }
.kx-espace { flex: 1; }
.kx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; min-width: 2.125rem; height: 2.125rem; padding: 0 0.625rem; border: 1px solid transparent; border-radius: 0.375rem; background: none; color: var(--sbg-encre); font-size: .875rem; text-decoration: none; cursor: pointer; }
.kx-btn:hover { background: var(--sbg-survol); border-color: var(--sbg-trait-doux); color: var(--sbg-encre); }
.kx-btn i { color: var(--sbg-bleu); }
.kx-btn.disabled { opacity: .35; pointer-events: none; }
.kx-choix .dropdown-item { display: flex; align-items: center; gap: 0.5rem; font-size: .875rem; }
.kx-choix .dropdown-item i { width: 1rem; color: var(--sbg-bleu); }
.kx-choix .dropdown-item.kx-coche { font-weight: 600; }
.kx-choix .dropdown-item.kx-coche::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; padding-left: 1rem; color: var(--sbg-bleu); }

.kx-zone { position: relative; min-height: 15rem; padding-bottom: 3.5rem; outline: none; border-radius: 0.5rem; } /* place libre en bas : clic droit sur le dossier */
.kx-zone:focus-visible { box-shadow: var(--sbg-halo); }
.kx-el { display: grid; align-items: center; color: var(--sbg-encre); text-decoration: none; border: 1px solid transparent; border-radius: 0.375rem; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: default; }
.kx-el:hover, .kx-el:focus { text-decoration: none; }
.kx-el:hover { background: var(--extranet-hover); color: var(--sbg-encre); }
.kx-el.kx-sel { background: #cfe3ef; border-color: #9cc3da; }
.kx-el.kx-cible, .kx-chemin a.kx-cible { outline: 2px solid var(--sbg-bleu); outline-offset: -2px; background: #e3eef6; border-radius: 0.375rem; } /* dossier d'arrivée (3.34.46) */
.kx-glisse { position: fixed; top: -62.5rem; left: 0; padding: 0.25rem 0.625rem; border-radius: 0.375rem; background: var(--sbg-bleu); color: #fff; font-size: .85rem; white-space: nowrap; }
.kx-chemin a.kx-fiche { color: var(--sbg-encre); } .kx-chemin a.kx-fiche:hover { color: var(--sbg-bleu); }
.kx-el.kx-coupe .kx-ico, .kx-el.kx-coupe .kx-nom { opacity: .45; } /* élément coupé (3.34.50) */
.kx-lasso { position: fixed; z-index: 1050; pointer-events: none; border: 1px solid #3b82c4; background: rgba(59, 130, 196, .15); } /* cadre de sélection (3.34.43) */
.kx-el:focus { outline: none; }
.kx-el.kx-sel:focus-visible { border-color: var(--sbg-bleu); }
.kx-col-nom { display: flex; align-items: center; gap: 0.625rem; min-width: 0; }
.kx-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kx-ico { width: 1.25em; text-align: center; font-size: 1.1rem; flex: none; }
.kx-ico-dossier { color: #e8b13c; }
.kx-ico-pdf { color: #d9342b; }
.kx-ico-word { color: #2b6cc4; }
.kx-ico-excel { color: #1e7a45; }
.kx-ico-ppt { color: #c8501f; }
.kx-ico-image { color: #8a4fbf; }
.kx-ico-zip { color: #8a6d3b; }
.kx-ico-mail { color: var(--sbg-bleu); }
.kx-ico-texte { color: var(--sbg-gris); }
.kx-col-date, .kx-col-type, .kx-col-taille { color: var(--sbg-gris); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kx-col-taille { text-align: right; }
.kx-vide { color: var(--sbg-gris); padding: 1.5rem 0.5rem; margin: 0; }

/* Détails : en-tête de colonnes cliquable (même barre bleue que les listes) */
.kx-entete { display: none; }
.kx-vue-details .kx-entete, .kx-vue-details .kx-el { grid-template-columns: minmax(0, 1fr) 9.5rem 12rem 6.5rem; column-gap: 0.75rem; }
.kx-vue-details .kx-entete { display: grid; position: sticky; top: 0; z-index: 1; margin-bottom: 0.25rem; border-radius: 0.375rem; background: var(--sbg-entete-tableau); }
.kx-entete button { border: 0; background: none; color: #fff; text-align: left; padding: .55rem .75rem; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; cursor: pointer; }
.kx-entete button:hover { background: var(--sbg-bleu-fonce); }
.kx-entete .kx-col-taille { text-align: right; }
.kx-entete .kx-trie-asc::after, .kx-entete .kx-trie-desc::after { font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: 0.375rem; font-size: .7rem; }
.kx-entete .kx-trie-asc::after { content: "\f077"; }
.kx-entete .kx-trie-desc::after { content: "\f078"; }
.kx-vue-details .kx-el { padding: 0.375rem .75rem; }
/* Corbeille (3.17.0) : « Supprimé le · par » et « Emplacement d'origine » plus larges */
.kx-corbeille.kx-vue-details .kx-entete, .kx-corbeille.kx-vue-details .kx-el { grid-template-columns: minmax(0, 1fr) 15rem 16rem 6.5rem; }
.kx-vue-details .kx-el:nth-of-type(even):not(.kx-sel):not(:hover) { background: var(--sbg-ligne-paire); }

/* Liste : noms seuls, sur plusieurs colonnes */
.kx-vue-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(14.375rem, 1fr)); align-content: start; gap: 0.125rem 0.75rem; }
.kx-vue-liste .kx-el { padding: 0.25rem 0.5rem; }
.kx-vue-liste .kx-col-date, .kx-vue-liste .kx-col-type, .kx-vue-liste .kx-col-taille { display: none; }
.kx-vue-liste .kx-ico { font-size: 1rem; }

/* Grandes icônes : vignettes */
.kx-vue-icones { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.375rem, 1fr)); align-content: start; gap: 0.5rem; }
.kx-vue-icones .kx-el { justify-items: center; padding: 0.75rem 0.375rem 0.5rem; text-align: center; }
.kx-vue-icones .kx-col-nom { flex-direction: column; gap: 0.5rem; width: 100%; }
.kx-vue-icones .kx-ico { font-size: 3rem; width: auto; }
.kx-vue-icones .kx-nom { white-space: normal; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .85rem; line-height: 1.25; }
.kx-vue-icones .kx-col-date, .kx-vue-icones .kx-col-type, .kx-vue-icones .kx-col-taille { display: none; }
.kx-vue-liste .kx-vide, .kx-vue-icones .kx-vide, .kx-vue-liste .kx-depot, .kx-vue-icones .kx-depot { grid-column: 1 / -1; }

/* Fichiers glissés depuis l'ordinateur */
.kx-depot { display: none; position: absolute; inset: 0; z-index: 2; flex-direction: column; align-items: center; justify-content: center; gap: 0.625rem; padding: 1rem; text-align: center; border: 2px dashed var(--sbg-bleu); border-radius: 0.625rem; background: rgba(238, 243, 246, .92); color: var(--sbg-bleu); font-weight: 600; pointer-events: none; }
.kx-depot i { font-size: 2.4rem; }
.kx-survol-depot .kx-depot { display: flex; }

/* Menu du clic droit (et sous-menus Affichage / Trier par) */
.kx-menu { position: fixed; z-index: 1090; min-width: 13.75rem; padding: 0.25rem; border: 1px solid var(--sbg-trait); border-radius: 0.5rem; background: #fff; box-shadow: 0 8px 28px rgba(21, 35, 45, .18); font-size: .875rem; }
.kx-menu[hidden] { display: none; }
.kx-menu-groupe { position: relative; }
.kx-menu-enfant { position: absolute; left: calc(100% + 0.125rem); top: -0.3125rem; }
.kx-menu-enfant.kx-gauche { left: auto; right: calc(100% + 0.125rem); }
.kx-menu-item { display: flex; align-items: center; gap: 0.625rem; width: 100%; padding: 0.4375rem 0.625rem; border: 0; border-radius: 0.3125rem; background: none; color: var(--sbg-encre); text-align: left; white-space: nowrap; cursor: pointer; }
.kx-menu-item > i:first-child { width: 1rem; text-align: center; color: var(--sbg-bleu); }
.kx-menu-item:hover, .kx-menu-item:focus, .kx-menu-item[aria-expanded="true"] { background: var(--extranet-hover); outline: none; }
.kx-menu-texte { flex: 1; }
.kx-menu-touche { color: var(--sbg-gris); font-size: .78rem; padding-left: 1.125rem; }
.kx-menu-fleche { font-size: .65rem; color: var(--sbg-gris); }
.kx-menu-item.kx-gras { font-weight: 600; }
.kx-menu-item.kx-danger, .kx-menu-item.kx-danger > i:first-child { color: var(--sbg-erreur); }
.kx-menu-item:disabled { color: var(--sbg-gris); cursor: default; background: none; }
.kx-menu-sep { height: 1px; margin: 0.25rem 0.375rem; background: var(--sbg-trait-doux); }

@media (max-width: 767.98px) {
  .kx-vue-details .kx-entete, .kx-vue-details .kx-el, .kx-corbeille.kx-vue-details .kx-entete, .kx-corbeille.kx-vue-details .kx-el { grid-template-columns: minmax(0, 1fr) 7.5rem; }
  .kx-vue-details .kx-col-type, .kx-vue-details .kx-col-taille { display: none; }
  .kx-vue-details .kx-el { padding: 0.5625rem .5rem; }
  .kx-btn-texte span { display: none; }
  .kx-recherche { flex: 1 1 100%; }
  .kx-menu-item { padding: 0.625rem 0.75rem; }
  .kx-menu-touche { display: none; }
}
@media (hover: none) { .kx-el:hover { background: none; } }

/* ===== Calendrier (3.20.35) : sous tous les champs <input type="date">, sur ordinateur. Script : public/js/calendrier.js ===== */
/* l'icône du navigateur est remplacée par une icône aux couleurs du site (le calendrier s'ouvre en cliquant dans le champ) */
@media (pointer: fine) {
  input[type="date"]:not([data-calendrier="non"]) {
    padding-right: 2.4rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b76' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='3'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") no-repeat right .8rem center / 1.05rem;
    cursor: pointer;
  }
  input[type="date"]:not([data-calendrier="non"])::-webkit-calendar-picker-indicator { display: none; }
}
.calendrier {
  position: fixed; z-index: 1090; width: 18rem; padding: 0.875rem 0.875rem 0.625rem;
  background: #fff; border: 1px solid var(--sbg-trait-doux); border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(21, 35, 45, .06), 0 16px 40px rgba(21, 35, 45, .16);
  font-family: var(--sbg-police); color: var(--sbg-encre); user-select: none;
}
.calendrier[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .calendrier:not([hidden]) { animation: calendrier-entree .14s ease-out; }
  @keyframes calendrier-entree { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}
.calendrier-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.calendrier-titre { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; text-transform: capitalize; }
.calendrier-fleche {
  width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: transparent; color: var(--sbg-gris);
  display: inline-flex; align-items: center; justify-content: center; font-size: .8rem;
}
.calendrier-fleche:hover { background: var(--sbg-survol); color: var(--sbg-bleu); }
.calendrier-semaine, .calendrier-jours { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.125rem; }
.calendrier-semaine span { text-align: center; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #8c9ba5; padding: 0.25rem 0 0.375rem; }
.calendrier-jour {
  position: relative; height: 2.25rem; border: 0; border-radius: 0.625rem; background: transparent;
  color: var(--sbg-encre); font-size: .92rem; font-variant-numeric: tabular-nums;
}
.calendrier-jour:hover { background: var(--sbg-survol); color: var(--sbg-bleu); }
.calendrier-jour.autre-mois { color: #b8c4cb; }
.calendrier-jour.aujourdhui { color: var(--sbg-bleu); font-weight: 700; }
/* date du jour : rond bleu autour du chiffre (3.20.36) */
.calendrier-jour.aujourdhui::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 2rem; height: 2rem; margin: -1rem 0 0 -1rem;
  border: 2px solid var(--sbg-bleu); border-radius: 50%; pointer-events: none;
}
.calendrier-jour.aujourdhui.choisi::after { border-color: #fff; }
.calendrier-jour.choisi, .calendrier-jour.choisi:hover { background: var(--sbg-bleu); color: #fff; font-weight: 700; box-shadow: 0 4px 10px rgba(35, 85, 118, .3); }
.calendrier-pied { display: flex; justify-content: space-between; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--sbg-trait-doux); }
.calendrier-raccourci {
  border: 0; border-radius: 62.4375rem; padding: 0.25rem 0.75rem; background: var(--sbg-brume); color: var(--sbg-bleu);
  font-size: .85rem; font-weight: 600;
}
.calendrier-raccourci:hover { background: #e3ecf2; }
.calendrier-effacer { background: transparent; color: var(--sbg-gris); }
.calendrier-effacer:hover { background: var(--sbg-survol); color: var(--sbg-erreur); }
.calendrier-pied [data-aujourdhui] { margin-left: auto; }
.calendrier button:focus-visible { outline: 2px solid var(--sbg-bleu); outline-offset: 1px; }

/* ===== Attente (3.30.13) : barre en haut de l'écran quand une page tarde, puis message « Chargement… » =====
   Script dans layouts/extranet.blade.php (window.extranetAttente.montrer / cacher). */
.attente { position: fixed; top: 0; left: 0; right: 0; z-index: 2000; pointer-events: none; opacity: 0; transition: opacity .15s; overflow: hidden; }
.attente.actif { opacity: 1; }
.attente-barre { height: 0.1875rem; width: 40%; background: var(--sbg-bleu); animation: attente-glisse 1.1s ease-in-out infinite; }
@keyframes attente-glisse { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.attente-message {
  position: fixed; top: 0.875rem; left: 50%; transform: translate(-50%, -8px); opacity: 0;
  transition: opacity .2s, transform .2s; white-space: nowrap;
  background: #fff; color: var(--sbg-nuit); border: 1px solid var(--sbg-trait); border-radius: 62.4375rem;
  box-shadow: 0 4px 16px rgba(18, 50, 74, .14); padding: .45rem 1rem; font-size: .9rem;
}
.attente.message .attente-message { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .attente-barre { animation: none; width: 100%; } }

/* Traitement des commissions (3.34.0) */
.com-lignes select { min-width: 6.5rem; }
.com-lignes tr.com-reportee td { opacity: .55; }
.com-lignes tr.com-refusee td { background: #fdecea; }
.com-totaux { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0.75rem 0.875rem; border-radius: 0.625rem; background: #f3f6f9; }
.com-totaux > div { display: flex; flex-direction: column; min-width: 5.625rem; }
/* Scan IA des commissions, vérification (3.35.5) : un cadre par zone (.v2-bloc), bleu si on y remplit quelque chose (cadre-modif), clair pour le contrôle calculé,
   en lecture seule ; lignes additionnées sous leur somme, en simple information ; boutons regroupés en bas */
#com_scan_validation .com-controle .com-totaux { padding: 0; background: transparent; gap: 0.5rem 3rem; }
#com_scan_validation .com-controle .com-totaux strong { font-size: 1.1rem; }
#com_scan_validation tr.com-somme > td { border-top: 2px solid var(--sbg-trait); }
#com_scan_validation tr.com-detail > td { font-size: .8rem; color: var(--sbg-gris); background: var(--sbg-brume-2); padding-top: .2rem; padding-bottom: .2rem; }
#com_scan_validation tr.com-detail > td:nth-child(2) { padding-left: 1rem; }
#com_scan_validation .com-pied { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--sbg-trait-doux); }

/* Système › Tâches (3.33.12) : en-tête compact, un passage par ligne */
#admin_systeme .tch-tete { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .75rem; }
#admin_systeme .tch-taux { display: flex; flex-wrap: wrap; gap: .4rem; flex-grow: 1; }
#admin_systeme .tch-pastille { font-size: .8rem; padding: .2rem .6rem; border-radius: 62.4375rem; background: var(--sys-bleu-clair); color: var(--sbg-encre, #15232d); white-space: nowrap; }
#admin_systeme .tch-lien { text-decoration: none; color: var(--sys-bleu); }
#admin_systeme .tch-lien:hover { text-decoration: underline; }
#admin_systeme .tch-filtre { display: flex; gap: .4rem; margin-left: auto; }
#admin_systeme .tch-filtre .form-select { width: auto; min-width: 11rem; }
#admin_systeme .tch-table { font-size: .875rem; }
#admin_systeme .tch-table td, #admin_systeme .tch-table th { padding: .3rem .5rem; vertical-align: top; }
#admin_systeme .tch-table summary { cursor: pointer; }
#admin_systeme .tch-etapes { list-style: none; padding: 0; margin: .25rem 0 0; display: grid; gap: .2rem; font-size: .8rem; }
@media (max-width: 575.98px) {
    #admin_systeme .tch-filtre { margin-left: 0; width: 100%; }
    #admin_systeme .tch-filtre .form-select { width: 100%; }
    #admin_systeme .tch-table td:first-child { white-space: normal; }
}

/* ===== Halo (3.34.54) : survol des liens de la fiche et des onglets du contact, voir public/js/halo.js ===== */
.halo { display: inline-block; transition: transform .18s ease-out, text-shadow .18s ease-out; }
a:hover .halo { transform: scale(1.05); text-shadow: 0 0 6px color-mix(in srgb, currentColor 55%, transparent); }
@media (prefers-reduced-motion: reduce) {
    .halo { transition: none; }
    a:hover .halo { transform: none; }
}

/* Recherche contacts (3.35.10) : contact clos (décédé, App\Services\Contacts::ETATS_CLOS) en ligne noire, texte blanc */
.table-contacts > tbody > tr.contact-clos > td { background-color: #333 !important; color: #fff; }
.table-contacts > tbody > tr.contact-clos :is(.cm-info, .cm-nom, .cm-meta, .cm-plus) { color: #fff; }

/* 16.11.2026 : configuration des comptes depuis un ordinateur seulement (partials/_sur_ordinateur) */
@media (max-width: 767.98px) { .pc-seulement { display: none !important; } }
@media (min-width: 768px) { .tel-seulement { display: none !important; } }
