/* CRM - ACERC – CRM ACERC */
:root {
  --barre: #129cd3; --sidebar: #eaf6fc; --accent: #005b96; --taille-menu: 15px;
  --txt-barre: #fff; --txt-barre-doux: rgba(255,255,255,.82); --survol-barre: rgba(255,255,255,.12);
  --txt-side: #0b4f80; --txt-side-doux: #3f6e8f; --survol-side: rgba(0,91,150,.09);
  --ciel: #129cd3; --marine: #005b96;
  --fond: #f8fafc; --carte: #ffffff; --texte: #0f172a; --doux: #64748b; --bord: #e2e8f0;
  --bleu: #2563eb; --vert: #059669; --violet: #9333ea; --rouge: #dc2626; --orange: #ea580c; --jaune: #ca8a04;
  --rayon: 12px; --ombre: 0 1px 3px rgba(15,23,42,.06), 0 4px 14px rgba(15,23,42,.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; font-size: 14px;
  color: var(--texte); background: linear-gradient(135deg, #f5fafd 0%, #ffffff 45%, #e8f4fb 100%); background-attachment: fixed; }
a { color: var(--bleu); text-decoration: none; } a:hover { text-decoration: underline; }
[data-lucide] { width: 18px; height: 18px; stroke-width: 2; vertical-align: middle; }

/* ---------- barre du haut */
.barre { position: fixed; inset: 0 0 auto 0; height: 60px; background: var(--barre); color: var(--txt-barre-doux); display: flex; box-shadow: 0 2px 10px rgba(0,91,150,.18);
  align-items: stretch; z-index: 50; }
.marque { display: flex; align-items: center; gap: 10px; padding: 0 18px 0 12px; color: var(--txt-barre); font-weight: 800;
  font-size: 15px; border-right: 1px solid rgba(255,255,255,.22); white-space: nowrap; }
.marque .logo { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.marque .logo [data-lucide] { color: #fff; width: 17px; height: 17px; }
.nav-haut { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.nav-haut a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 0 16px; color: var(--txt-barre-doux); font-weight: 600; font-size: var(--taille-menu); border-bottom: 3px solid transparent;
  white-space: nowrap; text-decoration: none; }
.nav-haut a:hover { color: var(--txt-barre); background: var(--survol-barre); }
.nav-haut a.actif { color: var(--txt-barre); border-bottom-color: var(--txt-barre); background: var(--survol-barre); }
.barre-droite { margin-left: auto; display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.barre-droite .moi { color: var(--txt-barre); font-weight: 700; }
.barre-droite a { color: var(--txt-barre-doux); display: flex; gap: 6px; align-items: center; text-decoration: none; }
.recherche-globale { position: relative; }
.recherche-globale input { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4); color: var(--txt-barre);
  border-radius: 8px; padding: 7px 10px 7px 32px; width: 230px; font-size: 13px; }
.recherche-globale input::placeholder { color: var(--txt-barre-doux); }
.recherche-globale [data-lucide], .recherche-globale svg { position: absolute; left: 9px; top: 8px; width: 15px; color: var(--txt-barre-doux); }
.pastille-ringover { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--txt-barre-doux); }
.pastille-ringover .point { width: 8px; height: 8px; border-radius: 50%; background: #64748b; }
.pastille-ringover.ok .point { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }

/* ---------- barre latérale */
.lateral { position: fixed; top: 60px; bottom: 0; left: 0; width: 218px; background: var(--sidebar); padding: 14px 8px; border-right: 1px solid rgba(0,91,150,.12);
  overflow-y: auto; z-index: 40; }
.lateral a { display: flex; align-items: center; gap: 11px; color: var(--txt-side); font-weight: 600; font-size: var(--taille-menu);
  padding: 10px 12px; border-radius: 8px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-decoration: none; }
.lateral a:hover { background: var(--survol-side); }
.lateral a.actif { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(0,91,150,.28); }
.lateral .titre-groupe { color: var(--txt-side-doux); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 14px 12px 6px; }
.contenu { margin-left: 218px; padding: 84px 32px 48px; min-height: 100vh; }
.page { max-width: 1290px; margin: 0 auto; }
.page.large { max-width: 1620px; }
body.menu-haut .lateral { display: none; } body.menu-haut .contenu { margin-left: 0; }
body.menu-gauche .nav-haut { display: none; }
body.menu-gauche .lateral .groupe-complet { display: block; }
.lateral .groupe-complet { display: none; }
.bouton-menu { display: none; background: none; border: 0; color: var(--txt-barre); padding: 0 12px; }

/* ---------- en-têtes */
.entete-page { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.entete-page h1 { font-size: 32px; line-height: 1.15; margin: 0; font-weight: 800; letter-spacing: -.02em; }
.entete-page .sous { color: #475569; margin-top: 4px; font-size: 15px; }
.titre-icone { display: flex; gap: 16px; align-items: center; }
.titre-icone .carre { width: 62px; height: 62px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--ciel), var(--marine)); box-shadow: 0 6px 18px rgba(0,91,150,.28); flex: none; }
.titre-icone .carre [data-lucide] { width: 30px; height: 30px; }
.carre.vert { background: linear-gradient(135deg, #10b981, #059669); } .carre.orange { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.carre.violet { background: linear-gradient(135deg, #a855f7, #9333ea); } .carre.bleu { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- boutons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 9px 16px;
  font-weight: 700; font-size: 14px; cursor: pointer; background: var(--bleu); color: #fff; text-decoration: none; white-space: nowrap;
  font-family: inherit; line-height: 1.2; }
.btn:hover { filter: brightness(.94); text-decoration: none; }
.btn [data-lucide] { width: 16px; height: 16px; }
.btn.vert { background: var(--vert); } .btn.violet { background: var(--violet); } .btn.rouge { background: var(--rouge); }
.btn.orange { background: var(--orange); } .btn.indigo { background: var(--accent); }
.btn.blanc { background: #fff; color: var(--texte); border-color: #cbd5e1; }
.btn.blanc.rouge-t { color: var(--rouge); border-color: #fca5a5; } .btn.blanc.violet-t { color: #4c1d95; border-color: #c4b5fd; }
.btn.petit { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.btn.icone { padding: 6px 8px; } .btn[disabled], .btn.inactif { opacity: .45; pointer-events: none; }
.btn.lien { background: none; color: var(--doux); padding: 4px 6px; border: 0; }
.btn.lien:hover { color: var(--texte); }

/* ---------- cartes */
.carte { background: var(--carte); border: 1px solid #edf0f5; border-radius: var(--rayon); box-shadow: var(--ombre); padding: 20px 22px; margin-bottom: 20px; }
.carte.sans-pad { padding: 0; overflow: hidden; }
.carte > h2, .carte > h3, .carte-titre { margin: 0 0 14px; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.carte-entete { padding: 18px 22px; border-bottom: 1px solid var(--bord); display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(90deg, #f5f7ff, #faf5ff); font-weight: 700; font-size: 16px; }
.carte.alerte { background: #fffbeb; border: 2px solid #fcd34d; }
.grille { display: grid; gap: 18px; } .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); } .g5 { grid-template-columns: repeat(5, 1fr); } .g6 { grid-template-columns: repeat(6, 1fr); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* ---------- tuiles de chiffres */
.tuile { border-radius: 10px; padding: 12px 14px; border: 1px solid; position: relative; min-height: 62px; display: block; color: inherit; text-decoration: none; }
a.tuile:hover { text-decoration: none; filter: brightness(.98); transform: translateY(-1px); }
.tuile .lib { font-size: 12.5px; color: #334155; } .tuile .val { font-size: 22px; font-weight: 800; margin-top: 2px; }
.tuile [data-lucide] { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.tuile.grande { padding: 22px 20px; border-radius: 14px; min-height: 96px; }
.tuile.grande .lib { font-size: 13px; font-weight: 600; } .tuile.grande .val { font-size: 26px; }
.tuile.grande [data-lucide] { width: 30px; height: 30px; }
.t-bleu { background: linear-gradient(135deg, #eff6ff, #eef2ff); border-color: #bfdbfe; } .t-bleu .val, .t-bleu [data-lucide] { color: #1d4ed8; }
.t-violet { background: linear-gradient(135deg, #faf5ff, #f5f3ff); border-color: #e9d5ff; } .t-violet .val, .t-violet [data-lucide] { color: #7e22ce; }
.t-vert { background: linear-gradient(135deg, #ecfdf5, #f0fdf4); border-color: #a7f3d0; } .t-vert .val, .t-vert [data-lucide] { color: #047857; }
.t-cyan { background: linear-gradient(135deg, #ecfeff, #f0f9ff); border-color: #a5f3fc; } .t-cyan .val, .t-cyan [data-lucide] { color: #0e7490; }
.t-jaune { background: linear-gradient(135deg, #fffbeb, #fefce8); border-color: #fde68a; } .t-jaune .val, .t-jaune [data-lucide] { color: #c2410c; }
.t-rouge { background: linear-gradient(135deg, #fff1f2, #fef2f2); border-color: #fecdd3; } .t-rouge .val, .t-rouge [data-lucide] { color: #dc2626; }
.t-gris { background: #f8fafc; border-color: #e2e8f0; } .t-indigo { background: linear-gradient(135deg, #eef2ff, #e0e7ff); border-color: #c7d2fe; }
.t-indigo .val, .t-indigo [data-lucide] { color: #4338ca; }
.compteur { background: #fff; border: 1px solid var(--bord); border-radius: 12px; padding: 18px; text-align: center; box-shadow: var(--ombre);
  color: inherit; text-decoration: none; display: block; }
.compteur .val { font-size: 22px; font-weight: 800; margin: 6px 0 2px; } .compteur .lib { font-size: 12.5px; color: #334155; }
.compteur [data-lucide] { color: var(--bleu); width: 22px; height: 22px; }
a.compteur:hover, a.compteur.actif { border-color: var(--accent); text-decoration: none; }

/* ---------- formulaires */
label { font-weight: 600; font-size: 13px; display: block; margin-bottom: 5px; color: #1e293b; }
input[type=text], input[type=email], input[type=number], input[type=date], input[type=datetime-local], input[type=time],
input[type=password], input[type=search], input[type=tel], input[type=url], select, textarea {
  width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 11px; font-size: 14px; font-family: inherit;
  background: #fff; color: var(--texte); }
input:focus, select:focus, textarea:focus { outline: 2px solid #c7d2fe; border-color: var(--accent); }
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); vertical-align: middle; }
input[type=color] { width: 42px; height: 38px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 2px; background: #fff; }
.champ { margin-bottom: 14px; } .champ .aide { font-size: 12px; color: var(--doux); margin-top: 4px; }
.champ .erreur { color: var(--rouge); font-size: 12.5px; margin-top: 3px; }
.ligne-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 16px; }
.filtres { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: end; }
.recherche { position: relative; } .recherche [data-lucide] { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.recherche input { padding-left: 38px; } .recherche.grande input { padding: 18px 18px 18px 50px; font-size: 15px; border-radius: 10px; }
.recherche.grande [data-lucide] { left: 16px; width: 22px; height: 22px; }
.case { display: flex; align-items: center; gap: 8px; font-weight: 600; } .case input { margin: 0; }
.onglets { display: flex; gap: 4px; background: #fff; border: 1px solid var(--bord); border-radius: 10px; padding: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.onglets a { flex: 1; text-align: center; padding: 7px 12px; border-radius: 7px; color: #475569; font-weight: 600; font-size: 13.5px;
  display: flex; gap: 7px; justify-content: center; align-items: center; text-decoration: none; white-space: nowrap; }
.onglets a.actif { background: var(--accent); color: #fff; } .onglets.vert a.actif { background: #10b981; }
.onglets.discret a { flex: none; } .onglets.discret a.actif { background: #f1f5f9; color: var(--texte); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.ql-container { min-height: 180px; font-size: 14px; font-family: inherit; border-radius: 0 0 8px 8px; }
.ql-toolbar { border-radius: 8px 8px 0 0; background: #fff; }

/* ---------- tableaux */
table.liste { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.liste th { text-align: left; font-weight: 600; color: #475569; padding: 12px 10px; border-bottom: 1px solid var(--bord);
  background: #f8fafc; white-space: nowrap; font-size: 13px; }
table.liste td { padding: 11px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
table.liste tr:hover td { background: #fafbff; } table.liste tr.cliquable { cursor: pointer; }
table.liste td.actions-ligne { text-align: right; white-space: nowrap; }
.vide { text-align: center; padding: 46px 20px; color: var(--doux); }
.vide [data-lucide] { width: 56px; height: 56px; color: #cbd5e1; stroke-width: 1.5; display: block; margin: 0 auto 14px; }
.vide .t { font-size: 17px; font-weight: 600; color: #64748b; margin-bottom: 6px; }
.vide.ok [data-lucide] { color: #10b981; } .vide.ok .t { color: var(--texte); }
.pagination { display: flex; gap: 6px; justify-content: center; padding: 14px; align-items: center; color: var(--doux); }

/* ---------- badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: #f1f5f9; color: #334155; white-space: nowrap; }
.b-vert { background: #dcfce7; color: #166534; } .b-rouge { background: #fee2e2; color: #991b1b; } .b-orange { background: #ffedd5; color: #9a3412; }
.b-bleu { background: #dbeafe; color: #1e40af; } .b-violet { background: #f3e8ff; color: #6b21a8; } .b-jaune { background: #fef9c3; color: #854d0e; }
.b-gris { background: #f1f5f9; color: #475569; } .b-indigo { background: #e0e7ff; color: #3730a3; } .b-noir { background: #0f172a; color: #fff; }

/* ---------- messages */
.messages { margin-bottom: 18px; } .msg { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; font-weight: 500; border: 1px solid; }
.msg.success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; } .msg.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.msg.warning { background: #fffbeb; border-color: #fde68a; color: #92400e; } .msg.info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.info-bleue { background: #eef2ff; border: 1px solid #c7d2fe; color: #3730a3; border-radius: 10px; padding: 12px 16px; font-size: 13.5px; }
.info-bleue ol, .info-bleue ul { margin: 6px 0; padding-left: 20px; }
.encart-rouge { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 10px; padding: 14px 18px; }
.encart-vert { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 10px; padding: 14px 18px; }
.doux { color: var(--doux); } .petit { font-size: 12.5px; } .gras { font-weight: 700; } .droite { text-align: right; } .centre { text-align: center; }
.mt { margin-top: 16px; } .mb0 { margin-bottom: 0; } .flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .entre { justify-content: space-between; }
.cache { display: none !important; }

/* ---------- fiche client / appel */
.fiche-entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.fiche-entete h2 { margin: 0; font-size: 22px; }
.infos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 22px; margin-top: 14px; }
.infos div span { display: block; font-size: 11.5px; color: var(--doux); text-transform: uppercase; letter-spacing: .04em; }
.infos div b { font-weight: 600; }
.bandeau-assistance { padding: 10px 14px; border-radius: 10px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.bandeau-assistance.ok { background: #dcfce7; color: #166534; } .bandeau-assistance.ko { background: #fee2e2; color: #991b1b; }
.chrono { list-style: none; padding: 0; margin: 0; } .chrono li { border-left: 2px solid #e0e7ff; padding: 0 0 14px 16px; position: relative; }
.chrono li::before { content: ""; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.resultat-recherche { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--bord);
  border-radius: 10px; margin-bottom: 10px; color: inherit; text-decoration: none; }
.resultat-recherche:hover { border-color: var(--accent); background: #fafbff; text-decoration: none; }

/* ---------- agenda */
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; border: 1px solid var(--bord); border-radius: 10px; overflow: hidden; }
.cal th { background: #f1f5f9; padding: 9px; font-weight: 600; font-size: 13px; border: 1px solid var(--bord); }
.cal td { height: 96px; vertical-align: top; border: 1px solid var(--bord); padding: 6px; font-size: 12px; background: #fff; }
.cal td.hors { color: #94a3b8; background: #fcfcfd; } .cal td.auj { outline: 2px solid var(--bleu); outline-offset: -2px; }
.cal td .num { font-weight: 600; margin-bottom: 4px; display: block; } .cal td.auj .num { color: var(--bleu); }
.cal .ev { display: block; border-radius: 5px; padding: 2px 6px; margin-bottom: 3px; color: #fff; overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; font-size: 11.5px; text-decoration: none; }
.semaine td { height: 48px; } .heure { width: 60px; color: var(--doux); text-align: right; font-size: 11px; }
.btn-groupe { display: inline-flex; border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; }
.btn-groupe a { padding: 8px 12px; font-weight: 600; font-size: 13px; color: var(--texte); text-decoration: none; }
.btn-groupe a.actif { background: #0f172a; color: #fff; }

/* ---------- popup appel entrant */
#popup-appels { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: flex; flex-direction: column; gap: 12px; width: 370px; }
.popup-appel { background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(15,23,42,.28); overflow: hidden; border: 1px solid #e0e7ff;
  animation: entree .3s ease-out; }
@keyframes entree { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.popup-appel .tete { background: linear-gradient(135deg, var(--ciel), var(--marine)); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.popup-appel .tete .sonne { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center;
  animation: sonne 1s infinite; }
@keyframes sonne { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-15deg); } 40% { transform: rotate(15deg); } 60% { transform: rotate(-8deg); } }
.popup-appel .corps { padding: 14px 16px; } .popup-appel .nom { font-size: 17px; font-weight: 800; }
.popup-appel .pied { padding: 0 16px 14px; display: flex; gap: 8px; }
.popup-appel.inconnu .tete { background: linear-gradient(135deg, #ea580c, #db2777); }

/* ---------- connexion */
.connexion { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #e8f5fc 0%, #ffffff 50%, #d3ecf8 100%); }
.connexion .boite { border-top: 5px solid var(--ciel); }
.connexion .boite { background: #fff; border-radius: 16px; padding: 34px; width: 380px; max-width: 92vw; box-shadow: 0 20px 60px rgba(0,0,0,.35); }

/* ---------- aperçu thème */
.apercu { border-radius: 12px; overflow: hidden; width: 500px; max-width: 100%; box-shadow: var(--ombre); border: 1px solid var(--bord); }
.apercu .ah { display: flex; gap: 12px; align-items: center; padding: 10px 14px; color: #fff; font-weight: 700; }
.apercu .ah span { padding: 4px 8px; border-radius: 6px; color: #cbd5e1; font-weight: 600; } .apercu .ah span.on { background: rgba(255,255,255,.1); color: #fff; }
.apercu .ac { display: flex; height: 110px; } .apercu .as { width: 145px; padding: 8px; } .apercu .as div { padding: 7px 8px; border-radius: 6px; color: #fff; font-weight: 600; font-size: 13px; }
.apercu .am { flex: 1; background: #f1f5f9; display: grid; place-items: center; color: var(--doux); font-size: 13px; }

/* ---------- divers */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(170px, 1fr)); gap: 12px; overflow-x: auto; }
.kanban .col { background: #f8fafc; border: 1px solid var(--bord); border-radius: 10px; padding: 10px; min-height: 120px; }
.kanban .col h4 { margin: 0 0 8px; font-size: 13px; display: flex; justify-content: space-between; }
.kanban .carte-lead { background: #fff; border: 1px solid var(--bord); border-radius: 8px; padding: 9px; margin-bottom: 8px; font-size: 13px; display: block; color: inherit; }
.etoiles { color: #f59e0b; letter-spacing: 1px; }
.etape { display: flex; align-items: center; gap: 12px; } .etape .rond { width: 32px; height: 32px; border-radius: 50%; background: var(--bleu); color: #fff;
  display: grid; place-items: center; font-weight: 700; }
.signature-pad { border: 2px dashed #94a3b8; border-radius: 10px; background: #fff; touch-action: none; width: 100%; height: 190px; }
.document-apercu { background: #fff; border: 1px solid var(--bord); padding: 30px 36px; border-radius: 8px; max-height: 70vh; overflow: auto; }
.colonnes-menu { position: absolute; background: #fff; border: 1px solid var(--bord); border-radius: 10px; box-shadow: var(--ombre); padding: 10px 14px; z-index: 20; }
.colonnes-menu label { font-weight: 500; display: flex; gap: 8px; align-items: center; margin: 5px 0; }
code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.variables code { display: inline-block; margin: 2px; cursor: pointer; } .variables code:hover { background: #e0e7ff; }
dialog { border: 0; border-radius: 14px; padding: 0; box-shadow: 0 24px 60px rgba(0,0,0,.3); width: 640px; max-width: 94vw; }
dialog::backdrop { background: rgba(15,23,42,.5); } dialog .d-tete { padding: 16px 22px; border-bottom: 1px solid var(--bord); font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; }
dialog .d-corps { padding: 18px 22px; max-height: 70vh; overflow: auto; } dialog .d-pied { padding: 14px 22px; border-top: 1px solid var(--bord); display: flex; gap: 8px; justify-content: flex-end; }

@media (max-width: 1100px) { .g4, .g5, .g6 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .lateral { transform: translateX(-100%); transition: transform .2s; } body.menu-ouvert .lateral { transform: none; }
  .lateral .groupe-complet { display: block; }
  .contenu { margin-left: 0; padding: 76px 16px 40px; } .nav-haut { display: none; } .bouton-menu { display: block; }
  .g2, .g3 { grid-template-columns: 1fr; } .recherche-globale, .pastille-ringover { display: none; }
  .entete-page h1 { font-size: 24px; } #popup-appels { left: 12px; right: 12px; width: auto; }
  table.liste { display: block; overflow-x: auto; }
}
@media print { .barre, .lateral, .actions, .no-print { display: none !important; } .contenu { margin: 0; padding: 0; } }
.lateral a svg, .btn svg, .nav-haut a svg { flex: none; }
.lateral a span.lib { overflow: hidden; text-overflow: ellipsis; }
.infos div b { overflow-wrap: anywhere; }
.marque img.symbole { height: 34px; width: auto; background: #fff; border-radius: 8px; padding: 3px 4px; }
.btn-mode-tel { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.95); color: var(--marine) !important;
  border-radius: 8px; padding: 6px 11px; font-weight: 700; font-size: 13px; text-decoration: none !important; white-space: nowrap; }
.btn-mode-tel svg { width: 16px; height: 16px; }
@media (max-width: 860px) { .btn-mode-tel { display: none; } }
