/* ==========================================================================
   Module Commercial — tableau de bord des ventes, leads, affaires, réseau.
   Préfixe .co- ; s'appuie sur les variables et composants de app.css.
   ========================================================================== */

.co-section { margin-bottom: 16px; }
.co-fil { margin: 14px 0 -8px; font-size: 13px; }
.co-fil a { color: var(--fg-3); }
.co-badges { gap: 6px; margin-bottom: 6px; }
.co-txt-vente { color: var(--vente); }

/* ---------- KPI ---------- */
.co-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.co-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.co-kpis .kpi-sous strong { color: var(--vente); font-weight: 600; }
.co-kpi-ca { gap: 8px; }
.co-kpi-ca .barre { height: 6px; }

/* ---------- Filtres et segments ---------- */
.co-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.co-filtres select, .co-filtres input[type=search] { width: auto; min-width: 170px; }
.co-filtres input[type=search] { flex: 1; max-width: 320px; }
.co-segment { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; flex-wrap: wrap; }
.co-segment a, .co-segment button { border: 0; background: none; font: 600 13px var(--ff-ui); color: var(--fg-2); padding: 6px 11px; border-radius: 8px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.co-segment a:hover, .co-segment button:hover { background: var(--surface-2); text-decoration: none; color: var(--fg); }
.co-segment .actif { background: var(--fg); color: var(--bg); }
.co-segment .actif:hover { background: var(--fg); color: var(--bg); }
.co-segment-plein { display: flex; width: 100%; margin-top: 6px; }
.co-segment-plein button { flex: 1; justify-content: center; }
.co-segment .actif.co-t-chaud { background: var(--bad); color: #fff; }
.co-segment .actif.co-t-tiede { background: var(--warn); color: #fff; }
.co-segment .actif.co-t-froid { background: var(--info); color: #fff; }

.co-puces { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; scrollbar-width: thin; }
.co-puce { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 99px;
  font-size: 13px; font-weight: 500; color: var(--fg-2); background: var(--surface); white-space: nowrap; }
.co-puce .num { font-size: 11.5px; color: var(--fg-3); }
.co-puce:hover { border-color: var(--fg-3); text-decoration: none; color: var(--fg); }
.co-puce.actif { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.co-puce.actif .num { color: inherit; opacity: .7; }

/* ---------- À faire maintenant ---------- */
.co-groupe { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); font-weight: 600; font-family: var(--ff-ui);
  padding: 14px 20px 6px; display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); }
.co-afaire > .co-groupe:first-child { border-top: 0; padding-top: 2px; }
.co-groupe .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.co-groupe .ti { font-size: 15px; }
.co-afaire .liste-ligne:first-child { border-top: 1px dashed var(--line); }
.co-ligne .principal { color: inherit; }
.co-ligne .principal:hover { text-decoration: none; }
.co-ligne .principal:hover .titre { color: var(--accent-fg); }
.co-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.co-urgent { box-shadow: inset 3px 0 0 var(--bad); }
.card.co-urgent { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); box-shadow: inset 3px 0 0 var(--bad), var(--ombre); }
.co-ligne.htmx-swapping { opacity: 0; transform: translateX(12px); transition: opacity .18s, transform .18s; }

/* Chrono de réponse */
.co-chrono { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 600;
  white-space: nowrap; background: var(--surface-3); color: var(--fg-2); }
.co-chrono .ti { font-size: 15px; }
.co-chrono.good { background: var(--good-bg); color: var(--good); }
.co-chrono.warn { background: var(--warn-bg); color: var(--warn); }
.co-chrono.bad { background: var(--bad); color: #fff; animation: co-pulse 2.4s ease-in-out infinite; }
@keyframes co-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bad) 45%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }

/* ---------- Entonnoir ---------- */
.co-entonnoir { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.co-entonnoir li { width: 100%; display: flex; flex-direction: column; align-items: center; }
.co-entonnoir-barre { width: max(var(--l), 46%); display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px;
  background: var(--vente-doux); color: var(--vente); font-size: 13.5px; font-weight: 600; transition: width .6s var(--courbe); }
.co-entonnoir li:nth-child(1) .co-entonnoir-barre { background: color-mix(in srgb, var(--vente) 14%, var(--surface)); }
.co-entonnoir li:nth-child(2) .co-entonnoir-barre { background: color-mix(in srgb, var(--vente) 24%, var(--surface)); }
.co-entonnoir li:nth-child(3) .co-entonnoir-barre { background: color-mix(in srgb, var(--vente) 40%, var(--surface)); color: var(--fg); }
.co-entonnoir li:nth-child(4) .co-entonnoir-barre { background: var(--vente); color: #fff; }
.co-entonnoir-barre span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-entonnoir-barre strong { font-size: 16px; }
.co-entonnoir-conv { display: flex; align-items: center; gap: 3px; padding: 1px 0; }
.co-entonnoir-conv .ti { font-size: 13px; }

/* ---------- Barres par source ---------- */
.co-barres { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.co-barres li { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 13.5px; }
.co-barres-lib { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg-2); }
.co-barres-val { font-size: 13px; text-align: right; min-width: 32px; }
.co-barres .barre { height: 10px; }

/* Prochain RDV */
.co-date { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; padding: 4px 6px; border-radius: 10px;
  background: var(--accent-doux); color: var(--accent-fg); line-height: 1.2; }
.co-date span { font-size: 11px; font-weight: 600; }
.co-date strong { font-size: 13px; }

/* ---------- Fiches ---------- */
.co-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 16px; margin: 0; font-size: 14px; }
.co-dl dt { color: var(--fg-3); font-size: 13px; }
.co-dl dd { margin: 0; overflow-wrap: anywhere; }
.co-citation { margin-top: 12px; padding: 10px 14px; border-left: 3px solid var(--line-2); background: var(--surface-2); border-radius: 0 var(--r-xs) var(--r-xs) 0;
  font-size: 14px; color: var(--fg-2); white-space: pre-line; }
.co-brouillon { font-size: 14px; background: var(--surface-2); color: var(--fg); min-height: 150px; margin-top: 6px; }
.co-form-titre { font-size: 15px; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.co-form-titre .ti { color: var(--fg-3); }
.co-note { display: flex; gap: 8px; align-items: center; }
.co-note input[type=text] { flex: 1; }
.co-note .co-montant { max-width: 110px; flex: none; }
.co-gros { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.co-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-bascule { padding: 10px 0; border-top: 1px solid var(--line); }
.co-bascule:first-of-type { border-top: 0; padding-top: 0; }
.co-bascule select { width: 100%; }
.co-chemin { overflow-wrap: anywhere; }
.co-depasse { color: var(--bad); font-weight: 600; }

/* Fil chronologique */
.co-timeline { list-style: none; margin: 14px 0 0; padding: 0; position: relative; }
.co-timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.co-timeline li { position: relative; display: flex; gap: 14px; padding: 0 0 14px; font-size: 14px; }
.co-timeline li:last-child { padding-bottom: 0; }
.co-tl-point { width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); flex: none; margin-top: 4px; position: relative; z-index: 1; }
.co-tl-statut .co-tl-point, .co-tl-conversion .co-tl-point { border-color: var(--accent); background: var(--accent); }
.co-tl-reponse .co-tl-point, .co-tl-rdv .co-tl-point { border-color: var(--good); background: var(--good); }
.co-tl-relance .co-tl-point { border-color: var(--warn); background: var(--warn); }
.co-tl-perte .co-tl-point { border-color: var(--bad); background: var(--bad); }

/* Frise du cycle de vie */
.co-frise-carte { margin-bottom: 16px; overflow: hidden; }
.co-frise { list-style: none; margin: 0; padding: 18px 16px 14px; display: flex; overflow-x: auto; scrollbar-width: thin; }
.co-frise li { flex: 1 0 92px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; position: relative; padding: 0 4px; }
.co-frise li::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px; background: var(--line); }
.co-frise li:first-child::before { display: none; }
.co-frise-point { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2);
  border: 2px solid var(--line-2); color: var(--fg-3); position: relative; z-index: 1; }
.co-frise-point .ti { font-size: 16px; }
.co-frise-lib { font-size: 12.5px; font-weight: 600; color: var(--fg-3); line-height: 1.25; }
.co-frise-date { color: var(--fg-3); min-height: 16px; }
.co-frise-fait .co-frise-point { background: var(--good); border-color: var(--good); color: #fff; }
.co-frise-fait::before, .co-frise-encours::before { background: var(--good) !important; }
.co-frise-fait .co-frise-lib { color: var(--fg-2); }
.co-frise-encours .co-frise-point { background: var(--vente); border-color: var(--vente); color: #fff; box-shadow: 0 0 0 5px var(--vente-doux); }
.co-frise-encours .co-frise-lib { color: var(--vente); }
.co-frise-alerte .co-frise-point { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.co-frise-alerte .co-frise-lib { color: var(--bad); }

.co-gardefous { display: flex; flex-direction: column; gap: 8px; }
.co-gardefous .bandeau strong { font-weight: 700; }

/* Vignettes photos */
.co-vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.co-vignettes a { display: block; aspect-ratio: 1; border-radius: var(--r-xs); overflow: hidden; background: var(--surface-3); }
.co-vignettes img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t); }
.co-vignettes a:hover img { transform: scale(1.05); }
.co-vignette-plus { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-xs); background: var(--surface-2); color: var(--fg-3); font-weight: 600; }
.co-fichiers { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.co-releves { margin: 12px -20px -18px; }
.co-jalons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.co-jalons li { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: center; }
.co-jalons li.passe { color: var(--fg-3); text-decoration: line-through; text-decoration-color: var(--line-2); }

/* ---------- Formulaires ---------- */
.co-form-rapide { max-width: 780px; }
.co-form-large { max-width: 1180px; }
.co-fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.co-fieldset legend { padding: 0; margin-bottom: 8px; }
.co-temp input:checked + label.chaud { background: var(--bad); border-color: var(--bad); color: #fff; }
.co-temp input:checked + label.tiede { background: var(--warn); border-color: var(--warn); color: #fff; }
.co-temp input:checked + label.froid { background: var(--info); border-color: var(--info); color: #fff; }
.co-details { border: 1px dashed var(--line-2); border-radius: var(--r-s); padding: 10px 14px; margin-bottom: 8px; }
.co-details summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--fg-2); display: flex; align-items: center; gap: 8px; }
.co-form-pied { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 16px; }
.co-erreur { display: flex; align-items: center; gap: 6px; color: var(--bad); font-size: 13px; font-weight: 500; }
.co-erreur .ti { font-size: 15px; }
.co-form-rapide [aria-invalid="true"], .co-form-large [aria-invalid="true"] { border-color: var(--bad) !important; }
.co-interaction .choix label { padding: 5px 10px; font-size: 13px; }
.co-si-perdu { display: none; }
form:has(input[name=statut][value=perdu]:checked) .co-si-perdu { display: block; }

/* ---------- Kanban des affaires ---------- */
.co-kanban { grid-auto-columns: minmax(232px, 1fr); }
.co-kanban .kanban-col { transition: background var(--t), border-color var(--t); }
.co-kanban .kanban-col h3 { align-items: center; gap: 6px; flex-wrap: wrap; }
.co-kanban .kanban-col h3 .badge { padding: 0 7px; font-size: 11px; }
.co-kanban .kanban-col.co-survol { background: var(--accent-doux); border-color: var(--accent); border-style: dashed; }
.co-col-signe, .co-col-en_chantier { background: color-mix(in srgb, var(--good) 5%, var(--surface-2)); }
.co-col-perdu { opacity: .8; }
.co-carte { cursor: grab; }
.co-carte.co-glisse { opacity: .45; transform: rotate(1.5deg); }
.co-carte-client { font-weight: 600; margin-top: 2px; line-height: 1.3; }
.co-carte-objet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; margin-top: 2px; }
.co-carte-pied { margin-top: 8px; gap: 6px; }
.co-carte-pied .ti { font-size: 13px; vertical-align: -2px; margin-right: 2px; }
.co-carte-alertes { margin-top: 8px; gap: 4px; }
.co-carte-alertes .badge { font-size: 11px; }
.co-carte-alertes .ti { font-size: 13px; }
.co-col-vide { text-align: center; padding: 18px 6px; border: 1px dashed var(--line-2); border-radius: var(--r-s); }
.co-astuce { margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.co-tri { color: inherit; display: inline-flex; align-items: center; gap: 3px; }
.co-tri.actif { color: var(--fg); }
.co-tri .ti { font-size: 13px; }
.co-tr { cursor: pointer; }

/* ---------- Réseau ---------- */
.co-cartes { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.co-presc { display: flex; flex-direction: column; transition: box-shadow var(--t), transform var(--t); }
.co-presc:hover { box-shadow: var(--ombre-h); transform: translateY(-1px); }
.co-presc-corps { display: block; padding: 16px 18px 12px; color: inherit; flex: 1; }
.co-presc-corps:hover { text-decoration: none; }
.co-presc-nom { font-family: var(--ff-d); font-weight: 600; font-size: 16px; line-height: 1.25; }
.co-presc-pert { margin: 10px 0 0; color: var(--fg-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-presc-badges { gap: 6px; margin-top: 10px; }
.co-presc .card-pied { padding: 8px 12px 8px 18px; }
.co-presc-due { border-color: color-mix(in srgb, var(--vente) 45%, var(--line)); box-shadow: inset 0 3px 0 var(--vente), var(--ombre); }
.co-presc-ecarte { opacity: .6; }
.co-prio { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 6px; background: var(--line-2); }
.co-prio-1 { background: var(--vente); box-shadow: 0 0 0 3px var(--vente-doux); }
.co-prio-2 { background: var(--fg-3); }
.co-prio-3 { background: var(--line-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .co-kpis:not(.co-kpis-4) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .co-kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  /* Sur téléphone, les indicateurs défilent sur une ligne : l'action (« À faire maintenant ») reste visible. */
  .co-kpis, .co-kpis-4 { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -14px 14px;
    padding: 0 14px 4px; scrollbar-width: none; }
  .co-kpis::-webkit-scrollbar { display: none; }
  .co-kpis .kpi { padding: 12px 14px; flex: 0 0 min(72vw, 240px); scroll-snap-align: start; }
  .co-ligne { flex-wrap: wrap; padding: 12px 14px; }
  .co-ligne .principal { flex-basis: calc(100% - 140px); }
  .co-actions { width: 100%; justify-content: stretch; }
  .co-actions .btn { flex: 1; }
  .co-groupe { padding-left: 14px; padding-right: 14px; }
  .co-barres li { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 8px; }
  .co-filtres select, .co-filtres input[type=search] { min-width: 0; flex: 1 1 140px; max-width: none; }
  .co-form-pied { position: sticky; bottom: 64px; z-index: 5; background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(6px); border-top: 1px solid var(--line); margin: 16px 0 0; padding: 10px 0; }
  .co-form-rapide .co-form-pied { margin: 16px -20px -18px; padding: 10px 20px; border-radius: 0 0 var(--r) var(--r); }
  .co-form-pied .btn-grand { flex: 1; }
  .co-note { flex-wrap: wrap; }
  .co-note input[type=text] { flex-basis: 100%; }
  .co-kanban { grid-auto-columns: minmax(78vw, 1fr); scroll-snap-type: x mandatory; }
  .co-kanban .kanban-col { scroll-snap-align: start; }
  .co-frise li { flex-basis: 78px; }
}

/* Correctif : .btn-succes n'a pas d'état de survol dans app.css (le fond devenait blanc, texte blanc).
   À reporter dans app.css ; sans effet de bord une fois corrigé là-bas. */
.btn-succes:hover { background: var(--good); border-color: var(--good); color: #fff; filter: brightness(.94); }

/* ---------- Suivi des devis ---------- */
.dv-tuiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.dv-tuile { --t: var(--fg-2); --tb: var(--surface-2); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px;
            align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
            color: var(--fg); box-shadow: var(--ombre); transition: box-shadow var(--t), transform var(--t), border-color var(--t); }
.dv-tuile:hover { text-decoration: none; box-shadow: var(--ombre-h); transform: translateY(-1px); }
.dv-tuile.ton-info { --t: var(--info); --tb: var(--info-bg); } .dv-tuile.ton-vente { --t: var(--vente); --tb: var(--vente-doux); }
.dv-tuile.ton-accent { --t: var(--accent-fg); --tb: var(--accent-doux); } .dv-tuile.ton-good { --t: var(--good); --tb: var(--good-bg); }
.dv-tuile.ton-bad { --t: var(--bad); --tb: var(--bad-bg); }
.dv-tuile.actif { border-color: var(--t); box-shadow: 0 0 0 2px color-mix(in srgb, var(--t) 25%, transparent), var(--ombre-h); }
.dv-tuile-icone { grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tb); color: var(--t); }
.dv-tuile-icone .ti { font-size: 22px; }
.dv-tuile-n { font-size: 26px; font-weight: 600; line-height: 1; color: var(--t); }
.dv-tuile-lib { font-size: 13px; font-weight: 600; color: var(--fg-2); }
.dv-tuile-montant { grid-column: 1 / -1; font-size: 12px; color: var(--fg-3); margin-top: 8px; }
.dv-liste { overflow: hidden; }
.dv-ligne { display: grid; grid-template-columns: minmax(0, 2.2fr) 100px minmax(0, 1.3fr) 120px minmax(0, 1.4fr) auto; gap: 14px; align-items: center;
            padding: 12px 18px; border-top: 1px solid var(--line); }
.dv-ligne:first-child { border-top: 0; }
.dv-ligne:hover { background: var(--surface-2); }
.dv-qui { display: flex; flex-direction: column; min-width: 0; color: var(--fg); }
.dv-qui:hover { text-decoration: none; } .dv-qui:hover .dv-nom { text-decoration: underline; }
.dv-nom { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-objet { font-size: 13px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-montant { text-align: right; font-weight: 600; }
.dv-profil { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fg-2); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-profil .ti { font-size: 17px; }
.ton-good .ti, .dv-profil.ton-good .ti { color: var(--good); } .dv-profil.ton-warn .ti { color: var(--warn); }
.dv-profil.ton-bad .ti { color: var(--bad); } .dv-profil.ton-info .ti { color: var(--info); }
.dv-chances { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.dv-jauge { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.dv-jauge > span { display: block; height: 100%; border-radius: 99px; background: var(--warn); }
.dv-chances.forte .dv-jauge > span { background: var(--good); } .dv-chances.faible .dv-jauge > span { background: var(--bad); }
.dv-suite { display: flex; flex-direction: column; min-width: 0; }
.dv-quand { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-quand.du { color: var(--vente); }
@media (max-width: 1100px) { .dv-ligne { grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) 110px auto; } .dv-montant, .dv-suite { display: none; } }
@media (max-width: 860px) {
  .dv-tuiles { grid-template-columns: repeat(5, minmax(84px, 1fr)); overflow-x: auto; scrollbar-width: none; gap: 8px; margin: 0 -14px 14px; padding: 2px 14px 4px; }
  .dv-tuile { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 10px 6px; row-gap: 2px; }
  .dv-tuile-icone { grid-row: auto; width: 34px; height: 34px; } .dv-tuile-n { font-size: 20px; } .dv-tuile-lib { font-size: 12px; }
  .dv-tuile-montant { display: none; }
  .dv-ligne { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; padding: 12px 14px; }
  .dv-profil { grid-column: 1; } .dv-chances { grid-column: 1; max-width: 180px; } .dv-ligne > .btn { grid-row: 1; grid-column: 2; }
}

/* ---------- Coach commercial ---------- */
.cv-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
.cv-q { border: 0; padding: 0; margin: 0 0 14px; }
.cv-q legend { font-size: 13px; font-weight: 600; color: var(--fg-2); margin-bottom: 6px; padding: 0; }
.cv-q .choix label { padding: 8px 13px; }
.cv-q .choix label.cv-inconnu { border-style: dashed; color: var(--fg-3); }
.cv-montant { margin-top: 8px; max-width: 240px; }
.cv-auto { display: flex; align-items: center; gap: 6px; margin: 0; }
.cv-profil { padding: 18px 20px; }
.cv-profil-tete { display: flex; align-items: center; gap: 14px; }
.cv-profil-tete .principal { flex: 1; min-width: 0; }
.cv-profil-tete h2 { font-size: 21px; }
.cv-profil-icone { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--fg-2); flex: none; }
.cv-profil-icone .ti { font-size: 26px; }
.ton-good .cv-profil-icone { background: var(--good-bg); color: var(--good); } .ton-warn .cv-profil-icone { background: var(--warn-bg); color: var(--warn); }
.ton-bad .cv-profil-icone { background: var(--bad-bg); color: var(--bad); } .ton-info .cv-profil-icone { background: var(--info-bg); color: var(--info); }
.cv-chances { position: relative; width: 66px; height: 66px; flex: none; }
.cv-chances svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cv-chances circle { fill: none; stroke-width: 3.4; } .cv-chances .fond { stroke: var(--surface-3); }
.cv-chances .val { stroke: var(--warn); stroke-linecap: round; transition: stroke-dasharray .5s var(--courbe); }
.cv-chances.forte .val { stroke: var(--good); } .cv-chances.faible .val { stroke: var(--bad); }
.cv-chances .num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; }
.cv-chances small { font-size: 10px; margin-left: 1px; }
.cv-resume { margin: 12px 0 8px; font-size: 15px; }
.cv-raisons { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cv-raisons li { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.cv-raisons .plus { background: var(--good-bg); color: var(--good); } .cv-raisons .moins { background: var(--bad-bg); color: var(--bad); }
.cv-raisons .ti { font-size: 14px; }
.cv-completude { display: flex; flex-direction: column; gap: 4px; }
.cv-suite { padding: 16px 20px; border-color: color-mix(in srgb, var(--vente) 45%, var(--line)); background: linear-gradient(180deg, var(--vente-doux), var(--surface) 70%); }
.cv-suite-tete { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.cv-bloc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px; padding: 14px 20px; font-family: var(--ff-d); font-weight: 600; font-size: 16px; }
.cv-bloc > summary::-webkit-details-marker { display: none; }
.cv-bloc > summary::after { content: "\ea5f"; font-family: tabler-icons; margin-left: auto; color: var(--fg-3); transition: transform var(--t); }
.cv-bloc[open] > summary::after { transform: rotate(180deg); }
.cv-bloc > summary .ti { color: var(--vente); font-size: 20px; }
.cv-n { font-size: 12px; background: var(--surface-3); padding: 1px 7px; border-radius: 99px; font-family: var(--ff-num); }
.cv-corps { padding: 0 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.cv-liste { margin: 0; padding: 0 20px 16px 40px; display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; }
.cv-corps .cv-liste { padding: 0 0 0 20px; }
.cv-angle { font-weight: 600; font-size: 15px; margin: 0; }
.cv-eviter-titre { color: var(--bad); }
.cv-eviter li::marker { color: var(--bad); }
.cv-appel { list-style: none; counter-reset: e; margin: 0; padding: 0 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.cv-appel li { counter-increment: e; display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; font-size: 14.5px; }
.cv-appel li::before { content: counter(e); grid-row: 1 / 3; width: 26px; height: 26px; border-radius: 50%; background: var(--vente-doux); color: var(--vente);
                      display: grid; place-items: center; font: 600 12.5px var(--ff-num); }
.cv-etape { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-3); }
.cv-objections { margin: 0; padding: 0 20px 16px; display: flex; flex-direction: column; gap: 12px; }
.cv-objections dt { font-weight: 600; }
.cv-objections dd { margin: 3px 0 0; font-size: 14px; color: var(--fg-2); }
.cv-mail { font-size: 14px; }
.cv-entree { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: inherit; }
.cv-entree .principal { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cv-entree-titre { font-family: var(--ff-d); font-weight: 600; font-size: 17px; }
@media (max-width: 1000px) { .cv-grille { grid-template-columns: minmax(0, 1fr); } }
.cv-q .choix input:checked + label.cv-inconnu { color: var(--bg); border-style: solid; }
@media (max-width: 1000px) { #coach-analyse { order: -1; } }
