/* CRM Prospects : thème sombre très contrasté, pensé pour le téléphone */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #07080C; --surface: #0F1016; --card: #181A23; --card2: #22252F;
  --line: #2F3340; --line2: #4A4F60;
  --text: #FFFFFF; --text2: #D5D8E3; --muted: #A3A8BA;
  --green: #22C55E; --red: #F43F5E; --blue: #3B82F6; --yellow: #FDE047; --orange: #FB923C;
  --chart: #7DD3FC;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --nav-h: 64px;
}
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  height: 100dvh; display: flex; flex-direction: column; overflow: hidden; overscroll-behavior: none;
  background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, a { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-decoration: none; }
input, textarea, select { font: inherit; font-size: 16px; color: var(--text); } /* 16 px : pas de zoom iOS */
svg { width: 22px; height: 22px; flex-shrink: 0; }
.num { font-variant-numeric: tabular-nums; }

/* ── Connexion ── */
.login { flex: 1; display: grid; place-items: center; padding: calc(var(--safe-t) + 24px) 20px calc(var(--safe-b) + 24px); overflow-y: auto; }
.login-box { width: 100%; max-width: 380px; }
.login-box h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.login-box p { color: var(--text2); margin: 6px 0 22px; }

/* ── Barre du haut ── */
.top { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 10px) 14px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-titre { flex: 1; min-width: 0; }
.top-titre h1 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.top-sous { margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--yellow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: var(--card2); border: 1px solid var(--line2); color: var(--text); }
.icon-btn.on { background: var(--green); border-color: var(--green); color: #000; }
.icon-btn.busy svg { animation: tourne .9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

.bandeau { flex-shrink: 0; display: flex; align-items: center; gap: 12px; margin: 10px 12px 0; padding: 12px 14px; border-radius: 14px; font-size: 15px; font-weight: 700; line-height: 1.35; }
.bandeau.info { background: #2A2410; border: 2px solid var(--yellow); }
.bandeau.err { background: #2B0F16; border: 2px solid var(--red); }
.bandeau span { flex: 1; }
.bandeau button { flex-shrink: 0; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--yellow); color: #000; font-weight: 800; }
.bandeau.err button { background: var(--red); color: #fff; }

/* ── Vues ── */
.vue { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.vue-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px calc(24px); -webkit-overflow-scrolling: touch; }

/* ── Onglets de colonnes (avec nombres) ── */
.onglets { position: relative; flex-shrink: 0; display: flex; gap: 8px; overflow-x: auto; padding: 12px; scrollbar-width: none; }
.onglets::-webkit-scrollbar { display: none; }
.onglet { flex-shrink: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--card); border: 2px solid var(--line2); font-size: 15px; font-weight: 800; color: var(--text); white-space: nowrap; }
.onglet .pastille { width: 12px; height: 12px; border-radius: 50%; }
.onglet .n { min-width: 30px; height: 30px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: var(--text); color: #000; font-size: 16px; font-weight: 900; }
.onglet .n.zero { background: var(--card2); color: var(--muted); }
.onglet.actif { border-color: currentColor; }
.onglet-sep { flex-shrink: 0; width: 2px; margin: 8px 2px; border-radius: 2px; background: var(--line2); }

/* ── Kanban ── */
.board { position: relative; flex: 1; min-height: 0; display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; padding: 0 12px 12px; scroll-snap-type: x mandatory; scroll-padding-inline: 12px; -webkit-overflow-scrolling: touch; }
.col { flex: 0 0 min(88vw, 380px); display: flex; flex-direction: column; min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; scroll-snap-align: start; }
@media (min-width: 900px) { .col { flex-basis: 320px; } .board { scroll-snap-type: none; } }
.col-tete { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.col-tete .titre { flex: 1; min-width: 0; font-size: 18px; font-weight: 900; line-height: 1.15; }
.col-tete .n { font-size: 30px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.col-sous { padding: 8px 14px 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.col-corps { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px 16px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.col.depot { outline: 3px dashed var(--yellow); outline-offset: -3px; }
.col-vide { padding: 30px 10px; text-align: center; font-size: 15px; color: var(--muted); }

/* Carte prospect : nom et numéro en gros, gros bouton Appeler */
.carte { background: var(--card); border: 1px solid var(--line2); border-left: 6px solid var(--c, var(--line2)); border-radius: 16px; padding: 14px; cursor: pointer; -webkit-user-select: none; user-select: none; }
.carte:active { background: var(--card2); }
.carte.frais { box-shadow: 0 0 0 2px var(--yellow); }
.carte.glisse { opacity: .4; }
.carte-haut { display: flex; align-items: flex-start; gap: 10px; }
.carte-nom { flex: 1; min-width: 0; font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; word-break: break-word; }
.carte-tel { margin-top: 4px; font-size: 21px; font-weight: 800; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.carte-ent { margin-top: 2px; font-size: 15px; font-weight: 600; color: var(--text2); }
.carte-temps { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 700; color: var(--text2); }
.carte-temps .ok { color: var(--green); } .carte-temps .moyen { color: var(--orange); } .carte-temps .tard { color: var(--red); }
.carte-actions { display: flex; gap: 8px; margin-top: 12px; }
.badge { flex-shrink: 0; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 900; line-height: 1.1; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; font-size: 14px; font-weight: 800; background: var(--card2); }
.chip.rdv { background: var(--blue); color: #000; }
.chip.rdv.jour { background: var(--yellow); color: #000; }

/* ── Boutons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 18px; border-radius: 14px; background: var(--card2); border: 2px solid var(--line2); color: var(--text); font-size: 16px; font-weight: 800; text-align: center; line-height: 1.2; }
.btn.plein { width: 100%; }
.btn.appel { flex: 1; background: var(--green); border-color: var(--green); color: #000; font-size: 18px; }
.btn.appel.xl { width: 100%; min-height: 64px; font-size: 20px; }
.btn.jaune { background: var(--yellow); border-color: var(--yellow); color: #000; }
.btn.bleu { background: var(--blue); border-color: var(--blue); color: #000; }
.btn.vert { background: var(--green); border-color: var(--green); color: #000; }
.btn.rouge { background: var(--red); border-color: var(--red); color: #fff; }
.btn.contour-rouge { border-color: var(--red); color: var(--red); background: transparent; }
.btn.carre { flex: 0 0 54px; padding: 0; }
.btn:disabled { opacity: .5; }
.lien { display: block; width: 100%; margin-top: 16px; padding: 12px; text-align: center; font-size: 16px; font-weight: 700; color: var(--text2); text-decoration: underline; text-underline-offset: 4px; }
.ligne-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }

/* ── Navigation du bas ── */
.nav-bas { flex-shrink: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); /* autant de colonnes que d'onglets visibles */ height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--surface); border-top: 1px solid var(--line); }
.nav-bas button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; font-size: 13px; font-weight: 800; color: var(--muted); position: relative; white-space: nowrap; }
@media (max-width: 400px) { .nav-bas button { font-size: 12px; } }
.nav-bas button.actif { color: var(--text); }
.nav-bas button.actif::before { content: ''; position: absolute; top: 0; left: 22%; right: 22%; height: 4px; border-radius: 0 0 4px 4px; background: var(--yellow); }
.nav-bas .pastille-n { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 900; display: grid; place-items: center; }

/* ── Feuilles (bas d'écran sur mobile, panneau à droite sur ordinateur) ── */
.fond { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.72); opacity: 0; pointer-events: none; transition: opacity .2s; }
.fond.ouvert { opacity: 1; pointer-events: auto; }
.feuille { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-height: calc(100dvh - var(--safe-t) - 16px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line2); border-bottom: 0; border-radius: 24px 24px 0 0; padding-bottom: var(--safe-b); transform: translateY(105%); transition: transform .28s cubic-bezier(.22,1,.36,1); }
.feuille.ouvert { transform: none; }
.feuille.pleine { height: calc(100dvh - var(--safe-t) - 16px); }
@media (min-width: 900px) {
  .feuille, .feuille.pleine { left: auto; top: 0; width: 480px; height: auto; max-height: none; border-radius: 0; border: 0; border-left: 1px solid var(--line2); padding-top: var(--safe-t); transform: translateX(105%); }
  .feuille.large { width: min(880px, 92vw); }
  .poignee { display: none; }
}
.poignee { flex-shrink: 0; width: 46px; height: 5px; margin: 10px auto 2px; border-radius: 3px; background: var(--line2); }
.f-tete { flex-shrink: 0; display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px 6px; }
.f-tete h2 { font-size: 24px; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; word-break: break-word; }
.f-tete .sous { margin-top: 5px; font-size: 15px; font-weight: 600; color: var(--text2); line-height: 1.45; }
.f-tete .icon-btn { margin-left: auto; }
.f-corps { overflow-y: auto; padding: 8px 18px 28px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

.grand-tel { display: block; margin: 2px 0 12px; font-size: 30px; font-weight: 900; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.sec { margin-top: 24px; }
.sec-t { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 800; color: var(--text2); }
.etapes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.etape { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px; border-radius: 14px; background: var(--card); border: 2px solid var(--line2); font-size: 15px; font-weight: 800; text-align: left; }
.etape .pastille { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.etape.actuelle { background: var(--c); border-color: var(--c); color: var(--ink); }
.etape.actuelle .pastille { background: var(--ink) !important; }

.chrono { list-style: none; display: flex; flex-direction: column; gap: 0; }
.chrono li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.chrono li:last-child { border-bottom: 0; }
.chrono .h { width: 86px; flex-shrink: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.chrono .d { color: var(--text2); font-weight: 600; }
.chrono .delai { color: var(--yellow); font-weight: 800; }

.champ { width: 100%; min-height: 54px; padding: 13px 14px; border-radius: 14px; background: var(--bg); border: 2px solid var(--line2); outline: none; -webkit-appearance: none; appearance: none; }
.champ:focus { border-color: var(--yellow); }
textarea.champ { min-height: 110px; resize: vertical; line-height: 1.45; }
select.champ { padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23D5D8E3' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.etiquette { display: block; margin: 14px 0 7px; font-size: 15px; font-weight: 700; color: var(--text2); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.erreur { margin-top: 10px; color: #FF8095; font-weight: 700; font-size: 15px; line-height: 1.45; }
.qa { display: flex; flex-direction: column; gap: 8px; }
.qa-item { padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); }
.qa-q { font-size: 14px; font-weight: 600; color: var(--muted); }
.qa-r { margin-top: 3px; font-size: 17px; font-weight: 800; word-break: break-word; }
.boite { padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line2); }
.muted { color: var(--muted); font-size: 15px; line-height: 1.45; }
.etapes-liste { display: flex; flex-direction: column; gap: 8px; padding-left: 22px; font-size: 15px; line-height: 1.5; color: var(--text2); }
.etapes-liste a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; overflow-wrap: anywhere; }
.copie { display: flex; gap: 8px; align-items: center; }
.copie .champ { flex: 1; min-height: 50px; }
.statut { display: flex; gap: 10px; align-items: baseline; font-size: 15px; font-weight: 600; line-height: 1.45; }
.point { font-size: 14px; } .point.ok { color: var(--green); } .point.err { color: var(--red); } .point.off { color: var(--line2); }

/* ── Tableau de bord ── */
.periodes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.periode { flex-shrink: 0; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card); border: 2px solid var(--line2); font-size: 15px; font-weight: 800; }
.periode.actif { background: var(--text); border-color: var(--text); color: #000; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line2); }
.kpi .v { font-size: 34px; font-weight: 900; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .l { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--text2); line-height: 1.3; }
.kpi .s { margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--muted); }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.carte-stat { margin-top: 14px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line2); }
.carte-stat h3 { font-size: 18px; font-weight: 900; letter-spacing: -.01em; }
.carte-stat .explique { margin: 4px 0 14px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.entonnoir { display: flex; flex-direction: column; gap: 4px; }
.ent-ligne { display: grid; grid-template-columns: 112px 1fr 64px; align-items: center; gap: 10px; min-height: 34px; }
.ent-ligne .nom { font-size: 14px; font-weight: 800; }
.ent-ligne .barre { height: 26px; border-radius: 0 6px 6px 0; background: var(--chart); min-width: 3px; }
.ent-ligne .val { text-align: right; font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ent-perte { padding: 0 0 0 122px; font-size: 13px; font-weight: 800; color: var(--muted); }
.ent-perte.pire { color: #FF8095; }
.alerte-perte { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #2B0F16; border: 2px solid var(--red); font-size: 15px; font-weight: 700; line-height: 1.45; }
.barres-h { display: flex; flex-direction: column; gap: 8px; }
.bh { display: grid; grid-template-columns: 120px 1fr 90px; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.bh .barre { height: 22px; border-radius: 0 6px 6px 0; background: var(--chart); min-width: 3px; }
.bh .val { text-align: right; font-weight: 900; font-variant-numeric: tabular-nums; }
.heures { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 24px; border-bottom: 2px solid var(--line2); }
.heure { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; cursor: pointer; position: relative; }
.heure .b { width: 100%; max-width: 28px; border-radius: 6px 6px 0 0; background: var(--chart); min-height: 2px; }
.heure.meilleure .b { background: var(--yellow); }
.heure.vide .b { background: transparent; border: 2px dashed var(--line2); border-bottom: 0; } /* moins de 3 appels : pas fiable */
.heure.choisie .b { outline: 2px solid var(--text); outline-offset: 2px; }
.heures-lab { display: flex; gap: 4px; margin-top: 6px; }
.heures-lab span { flex: 1; min-width: 0; text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.legende-choix { margin-top: 12px; min-height: 44px; padding: 10px 12px; border-radius: 12px; background: var(--card2); font-size: 15px; font-weight: 700; line-height: 1.4; }
.tableau-mini { width: 100%; border-collapse: collapse; font-size: 15px; }
.tableau-mini th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 700; padding: 6px 4px; border-bottom: 1px solid var(--line2); }
.tableau-mini td { padding: 10px 4px; border-bottom: 1px solid var(--line); font-weight: 700; }
.tableau-mini td.n { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Devis ── */
.filtres { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 12px 0; }
.carte-devis { display: block; width: 100%; text-align: left; margin-bottom: 10px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line2); }
.cd-haut { display: flex; align-items: flex-start; gap: 10px; }
.cd-nom { flex: 1; min-width: 0; font-size: 19px; font-weight: 800; line-height: 1.2; }
.cd-bas { margin-top: 8px; display: flex; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 700; color: var(--text2); }
.cd-bas .m { color: var(--text); font-weight: 900; font-variant-numeric: tabular-nums; text-align: right; }
.modele { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-bottom: 8px; padding: 14px; border-radius: 16px; background: var(--card); border: 2px solid var(--line2); }
.modele .t { flex: 1; min-width: 0; }
.modele .t strong { display: block; font-size: 17px; font-weight: 800; }
.modele .t span { font-size: 14px; color: var(--muted); font-weight: 600; }
.modele.choisi { border-color: var(--yellow); }
.ligne-edit { padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line2); margin-bottom: 10px; }
.ligne-edit .trio { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: 8px; }
.totaux-edit { margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--card2); font-size: 17px; font-weight: 800; display: flex; flex-direction: column; gap: 6px; }
.totaux-edit div { display: flex; justify-content: space-between; gap: 10px; }
.apercu { margin-top: 6px; border-radius: 14px; overflow: hidden; }
.a-valider { background: var(--yellow); color: #000; }

/* ── Toast ── */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 12px); z-index: 70; display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 24px); padding: 14px 16px; border-radius: 16px; background: var(--text); color: #000; box-shadow: 0 16px 40px rgba(0,0,0,.6); font-size: 16px; font-weight: 800; transform: translate(-50%, 24px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .25s cubic-bezier(.22,1,.36,1), opacity .2s, visibility 0s .25s; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto; transition: transform .25s cubic-bezier(.22,1,.36,1), opacity .2s; }
.toast button { flex-shrink: 0; padding: 6px 4px; color: #1D4ED8; font-weight: 900; text-decoration: underline; }

/* ── Profils (compte partagé : Emrick, Tom…) ── */
.initiale { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: #000; font-size: 15px; font-weight: 900; line-height: 1; }
.profil-btn { flex-shrink: 0; display: flex; align-items: center; gap: 8px; height: 46px; max-width: 150px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line2); font-size: 15px; font-weight: 800; }
.profil-btn .nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profil-btn.vide { padding: 0 14px; border: 2px solid var(--yellow); color: var(--yellow); }
@media (max-width: 380px) { .profil-btn:not(.vide) { padding: 0 7px; } .profil-btn:not(.vide) .nom { display: none; } }
.profils { display: grid; gap: 10px; }
.profil-choix { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 2px solid var(--line2); text-align: left; }
.profil-choix .initiale { width: 46px; height: 46px; font-size: 21px; }
.profil-choix .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.profil-choix strong { font-size: 19px; font-weight: 800; }
.profil-choix .t span { font-size: 14px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profil-choix.actuel { border-color: var(--yellow); }
.profil-choix.actuel svg { color: var(--yellow); }
.emis-par { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); font-size: 15px; font-weight: 600; color: var(--text2); }
.emis-par b { color: var(--text); }

/* ── Recherche au-dessus des colonnes ── */
.recherche { position: relative; flex-shrink: 0; padding: 12px 12px 0; }
.recherche .champ { min-height: 48px; padding: 10px 46px 10px 44px; border-radius: 999px; background: var(--card); }
.recherche .champ::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.recherche-ico { position: absolute; left: 26px; top: calc(12px + 24px); transform: translateY(-50%); display: flex; color: var(--muted); pointer-events: none; }
.recherche-x { position: absolute; right: 18px; top: calc(12px + 24px); transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--card2); color: var(--text); }
.recherche-x svg { width: 18px; height: 18px; }
.onglets[hidden] + .board { margin-top: 12px; }
.col.col-resultats { flex: 1 1 auto; max-width: 720px; }
.carte-etape { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 800; color: var(--text2); }
.carte-etape .pastille { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ligne-btns.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ligne-btns.trois .btn { padding: 0 6px; white-space: nowrap; }

/* Bloc Offre : le rappel de ce que le client lira vraiment dans la garantie */
.offre-rappel { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card2); border: 2px solid var(--yellow); font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--text); }
.ent-ligne.sous .nom { padding-left: 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ent-ligne.sous .barre { height: 16px; opacity: .55; }
.ent-ligne.sous .val { font-size: 14px; font-weight: 800; color: var(--text2); }

/* ── Suggestions d'entreprises (base publique) ── */
.suggestions { display: grid; gap: 6px; margin-top: 8px; }
.sug { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); text-align: left; }
.sug strong { font-size: 15px; font-weight: 800; }
.sug span { font-size: 13px; font-weight: 700; color: var(--muted); }
.sug-info { padding: 6px 2px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* ── Agenda de closing ── */
.case { display: flex; gap: 12px; align-items: center; margin-top: 10px; font-size: 15px; font-weight: 700; line-height: 1.35; cursor: pointer; }
.case input { width: 26px; height: 26px; flex-shrink: 0; accent-color: var(--yellow); }
.jours-case { display: flex; gap: 6px; }
.case-jour { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; border-radius: 12px; background: var(--card2); font-size: 14px; font-weight: 800; cursor: pointer; }
.case-jour input { width: 20px; height: 20px; accent-color: var(--yellow); }
.jours { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.jours::-webkit-scrollbar { display: none; }
.jour-choix { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 60px; padding: 8px 6px; border-radius: 14px; background: var(--card); border: 2px solid var(--line2); }
.jour-choix .j { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.jour-choix .d { font-size: 20px; font-weight: 900; line-height: 1; }
.jour-choix .n { font-size: 12px; font-weight: 800; color: var(--muted); }
.jour-choix.actif { border-color: var(--yellow); background: var(--card2); }
.jour-choix.actif .j, .jour-choix.actif .n { color: var(--yellow); }
.creneaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 14px; }
.creneau { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 2px solid var(--line2); text-align: left; }
.creneau .h { font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; }
.creneau .qui { font-size: 13px; font-weight: 700; color: var(--muted); }
.creneau:active { border-color: var(--yellow); }
.jour-titre { margin: 16px 0 4px; font-size: 18px; font-weight: 900; text-transform: capitalize; }
.groupe-heures { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.groupe-titre { font-size: 14px; font-weight: 800; color: var(--muted); }
.ligne-heure { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 14px; border-radius: 14px; background: var(--card); border: 2px solid var(--line2); text-align: left; }
button.ligne-heure:active { border-color: var(--yellow); }
.ligne-heure .h { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ligne-heure .qui { display: flex; flex-wrap: wrap; gap: 6px; }
.ligne-heure .va { display: flex; color: var(--green); font-size: 14px; font-weight: 800; }
.ligne-heure.complet { opacity: .5; }
.ligne-heure.complet .va { color: var(--muted); }
.pastille-closer { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--card2); color: var(--muted); }
.pastille-closer.libre { background: #0F2E1D; color: var(--green); }
.pastille-closer.choisi { background: var(--yellow); color: #000; }
.pastille-closer.occupe { text-decoration: line-through; }
.acces-ligne { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.acces-ligne .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acces-ligne .t strong { font-size: 16px; font-weight: 800; }
.acces-ligne .t span { font-size: 13px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acces-ligne .btn { min-height: 44px; padding: 0 12px; font-size: 14px; }

/* ── Onglet Agenda ── */
.agenda { display: flex; flex-direction: column; gap: 6px; }
.agenda-grille { display: grid; grid-template-columns: 48px repeat(var(--n), minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.agenda-tete { position: sticky; top: 0; z-index: 2; padding: 6px 0; background: var(--bg); }
.agenda-nom { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 900; }
.agenda-nom .initiale { width: 26px; height: 26px; font-size: 13px; }
.agenda-h { padding-top: 14px; font-size: 14px; font-weight: 900; color: var(--text2); font-variant-numeric: tabular-nums; }
.agenda-case { display: flex; flex-direction: column; gap: 4px; min-height: 52px; }
.case-rdv { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; min-height: 52px; padding: 8px 10px; border-radius: 12px; background: var(--card2); border-left: 5px solid var(--c); text-align: left; }
.case-rdv strong { font-size: 15px; font-weight: 900; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.case-rdv span { font-size: 12px; font-weight: 700; color: var(--muted); }
.case-libre { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1; min-height: 52px; border-radius: 12px; border: 2px dashed #1F6B40; color: var(--green); font-size: 14px; font-weight: 800; }
.case-libre svg { width: 16px; height: 16px; }
.case-occupe { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 52px; border-radius: 12px; background: repeating-linear-gradient(135deg, var(--card) 0 8px, var(--surface) 8px 16px); color: var(--muted); font-size: 13px; font-weight: 700; }
.case-vide { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 52px; border-radius: 12px; color: var(--line2); font-size: 14px; }
.resa-liste { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.resa-ligne { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); text-align: left; }
.resa-ligne .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.resa-ligne .t strong { font-size: 16px; font-weight: 800; }
.resa-ligne .t span { font-size: 13px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
