/* Itérations 3-8 — styles de la page résultats (palette Stratly : navy + indigo). */
.dash-panel { margin: 0 0 24px; padding: 20px; background: #fff; border: 1px solid #e2eaf4; border-radius: 16px; box-shadow: 0 1px 3px rgba(15,23,42,.06); }
.dash-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dash-head-text { flex: 1 1 220px; min-width: 0; }
.dash-title { margin: 0; font-size: 20px; font-weight: 700; color: #0f172a; }
.dash-sub { margin: 2px 0 0; font-size: 13.5px; color: #64748b; }
.dash-ring { position: relative; width: 64px; height: 64px; flex: none; }
.dash-ring-text { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #0f172a; }
.dash-btn-primary, .dash-btn-secondary, .dash-next-btn { font-family: inherit; font-size: 14px; font-weight: 600; border-radius: 10px; padding: 10px 18px; cursor: pointer; min-height: 40px; }
.dash-btn-primary { background: #6366f1; color: #fff; border: 1px solid #6366f1; }
.dash-btn-primary:hover:not(:disabled) { background: #4f46e5; }
.dash-btn-secondary { background: #fff; color: #4f46e5; border: 1px solid #c7d2fe; }
.dash-btn-secondary:hover:not(:disabled) { background: #eef2ff; }
.dash-btn-primary:disabled, .dash-btn-secondary:disabled, .dash-next-btn:disabled { opacity: .55; cursor: not-allowed; }
.dash-btn-primary:focus-visible, .dash-btn-secondary:focus-visible, .dash-next-btn:focus-visible, .dash-tile:focus-visible { outline: 2px solid #6366f1; outline-offset: 2px; }
.dash-next { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0; padding: 12px 14px; background: #eef2ff; border-radius: 12px; }
.dash-next-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #4f46e5; }
.dash-next-btn { background: #fff; color: #0f172a; border: 1px solid #c7d2fe; text-align: left; }
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.dash-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; background: #fafafc; border: 1px solid #e2eaf4; border-radius: 12px; font-family: inherit; text-align: left; cursor: pointer; }
.dash-tile:hover { border-color: #6366f1; }
.dash-tile-icon { font-size: 20px; line-height: 1; }
.dash-tile-name { font-size: 14px; font-weight: 600; color: #0f172a; }
.dash-tile-count { font-size: 12px; color: #64748b; }
.dash-badge { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: #64748b; }
.dash-tile.is-proposed .dash-badge { background: #fffbeb; color: #92400e; }
.dash-tile.is-retained .dash-badge { background: #eef2ff; color: #4f46e5; }
.dash-tile.is-retained { border-color: #c7d2fe; background: #f5f7ff; }
.dash-tile.is-review .dash-badge { background: #fef2f2; color: #b91c1c; }
.dash-tile.is-review { border-color: #fecaca; }
.dash-tile.is-running .dash-badge { background: #e0f7fa; color: #0e7490; }
.dash-tracker { list-style: none; margin: 14px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.dash-step { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; background: #f8fafc; font-size: 13px; color: #334155; }
.dash-step strong { font-size: 12px; }
.dash-step.is-done strong { color: #4f46e5; }
.dash-step.is-running { background: #eef2ff; }
.dash-step.is-failed strong { color: #b91c1c; }
.dash-pause { margin-top: 12px; padding: 12px 14px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dash-pause p { flex: 1 1 260px; margin: 0; font-size: 13.5px; color: #92400e; }
.dash-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(15,23,42,.45); display: grid; place-items: center; padding: 16px; }
.dash-dialog { width: min(460px, 100%); background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 12px 40px rgba(15,23,42,.25); }
.dash-dialog-title { margin: 0 0 6px; font-size: 18px; color: #0f172a; }
.dash-dialog-text { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: #475569; }
.dash-checks { display: grid; gap: 6px; margin-bottom: 10px; }
.dash-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #0f172a; cursor: pointer; }
.dash-check input { width: 16px; height: 16px; accent-color: #6366f1; }
.dash-check-note { margin-left: auto; font-size: 12px; color: #64748b; }
.dash-check-pause { padding-top: 10px; border-top: 1px solid #e2eaf4; font-size: 13.5px; }
.dash-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
/* Une section vide ne garde que son en-tête. */
.section-row.ux-empty .section-tiles-scroll,
.section-row.ux-empty [id^="completeness-container-"] { display: none; }
.section-row.ux-empty { margin-bottom: 12px; }
.section-row.ux-empty .section-row-header { border-bottom: 0; }
/* Barre de progression fixe sur mobile. */
.dash-bar { display: none; }
@media (max-width: 768px) {
  .dash-panel { padding: 14px; }
  .dash-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e2eaf4; box-shadow: 0 -4px 16px rgba(15,23,42,.08); }
  .dash-bar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12.5px; color: #64748b; }
  .dash-bar-info strong { font-size: 13.5px; color: #0f172a; }
  .dash-bar-info span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body { padding-bottom: 72px; }
}

/* Itération 5 — comparaison de propositions */
.cmp-pick { display: flex; width: fit-content; margin: 8px auto; align-items: center; gap: 5px; padding: 3px 8px; font-size: 12px; font-weight: 600; color: #4f46e5; background: rgba(255,255,255,.95); border: 1px solid #c7d2fe; border-radius: 999px; cursor: pointer; }
.cmp-pick input { width: 14px; height: 14px; accent-color: #6366f1; }
.cmp-dialog { width: min(980px, 100%); max-height: 92vh; display: flex; flex-direction: column; background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 12px 40px rgba(15,23,42,.25); }
.cmp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cmp-scroll { overflow: auto; border: 1px solid #e2eaf4; border-radius: 12px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cmp-table th, .cmp-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #eef2f8; color: #1e293b; overflow-wrap: anywhere; }
.cmp-table thead th { position: sticky; top: 0; background: #f8fafc; font-size: 14px; color: #0f172a; z-index: 1; }
.cmp-table tbody th { width: 150px; font-weight: 600; color: #475569; background: #fafafc; }
.cmp-table tr.is-diff td { background: #f5f7ff; }
.cmp-table td.is-best { font-weight: 700; color: #4338ca; }
.cmp-star { font-size: 11px; font-weight: 600; color: #4f46e5; }
.cmp-note { margin: 10px 0 0; font-size: 12px; color: #64748b; }
.cmp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.cmp-foot-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #4f46e5; }
@media (max-width: 640px) { .cmp-dialog { padding: 14px; } .cmp-table tbody th { width: 96px; } }

/* Itération 6 — carte des lieux */
.map-panel { padding: 16px 24px; background: #fff; border-bottom: 1px solid #e2eaf4; }
.map-stage { position: relative; border: 1px solid #e2eaf4; border-radius: 12px; background: #f5f7ff; overflow: hidden; }
.map-svg { display: block; width: 100%; height: auto; }
.map-grid { stroke: #e2e8f0; stroke-width: 1; }
.map-pin { cursor: pointer; outline: none; }
.map-pin circle { fill: #6366f1; stroke: #fff; stroke-width: 3; transition: r .15s; }
.map-pin:hover circle, .map-pin:focus circle { r: 18; }
.map-pin:focus circle { stroke: #0f172a; }
.map-pin.is-selected circle { fill: #4338ca; }
.map-num { fill: #fff; font: 700 13px 'DM Sans', system-ui, sans-serif; pointer-events: none; }
.map-label { fill: #0f172a; font: 600 12.5px 'DM Sans', system-ui, sans-serif; paint-order: stroke; stroke: #f5f7ff; stroke-width: 4px; }
.map-scale { stroke: #334155; stroke-width: 3; stroke-linecap: round; }
.map-scale-text { fill: #475569; font: 600 11.5px 'DM Sans', system-ui, sans-serif; }
.map-pop { position: absolute; transform: translate(-50%, 22px); display: flex; flex-direction: column; gap: 4px; min-width: 210px; max-width: 280px; padding: 10px 12px; background: #fff; border: 1px solid #c7d2fe; border-radius: 12px; box-shadow: 0 6px 20px rgba(15,23,42,.15); font-size: 13px; color: #334155; z-index: 2; }
.map-pop strong { color: #0f172a; font-size: 14px; }
.map-pop-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.map-pop-actions .dash-btn-primary, .map-pop-actions .dash-btn-secondary { padding: 6px 12px; min-height: 34px; font-size: 13px; text-decoration: none; }
.map-note, .map-empty { margin: 8px 0 0; font-size: 12px; color: #64748b; }
.venue-card-premium.map-hl { outline: 3px solid #6366f1; outline-offset: 2px; }
@media (max-width: 640px) { .map-panel { padding: 12px; } .map-label { font-size: 11px; } }
.map-pop.is-above { transform: translate(-50%, calc(-100% - 22px)); }

/* Itération 7 — simulateur de budget */
.sim-panel { padding: 16px 24px; background: #fff; border-bottom: 1px solid #e2eaf4; }
.sim-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.sim-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #4f46e5; }
.sim-select { max-width: 100%; border: 1px solid #e2eaf4; border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 13.5px; background: #fff; }
.sim-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #334155; cursor: pointer; }
.sim-lock input { accent-color: #6366f1; }
.sim-grid { display: grid; gap: 8px; }
.sim-row { display: grid; grid-template-columns: minmax(110px, 1.2fr) 3fr 110px 96px; gap: 10px; align-items: center; }
.sim-name { font-size: 13.5px; font-weight: 600; color: #0f172a; overflow-wrap: anywhere; }
.sim-row input[type=range] { width: 100%; accent-color: #6366f1; }
.sim-number { width: 100%; border: 1px solid #e2eaf4; border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 13.5px; text-align: right; }
.sim-delta { font-size: 12px; color: #64748b; text-align: right; }
.sim-delta.is-up { color: #b45309; }
.sim-delta.is-down { color: #4f46e5; }
.sim-sum { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 14px; padding: 12px 14px; background: #f5f7ff; border-radius: 12px; }
.sim-total strong { display: block; font-size: 26px; color: #0f172a; line-height: 1.1; }
.sim-total small { color: #64748b; font-size: 12px; }
.sim-facts { flex: 1 1 260px; display: grid; gap: 4px; font-size: 13.5px; color: #334155; }
.sim-facts p { margin: 0; }
.sim-env.is-over { color: #b91c1c; font-weight: 700; }
.sim-notes { color: #64748b; font-size: 12.5px; }
.sim-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sim-hint, .sim-empty { margin: 8px 0 0; font-size: 12px; color: #64748b; }
@media (max-width: 640px) { .sim-panel { padding: 12px; } .sim-row { grid-template-columns: 1fr 1fr; } .sim-row input[type=range] { grid-column: 1 / -1; } }

/* Itération 8 — rétroplanning */
.plan-panel { padding: 0; }
.plan-summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; list-style: none; border-left: 5px solid #4f46e5; border-radius: 16px; background: #eef2ff; }
.plan-summary::-webkit-details-marker { display: none; }
.plan-summary-title { font-size: 20px; font-weight: 800; color: #1e1b4b; }
.plan-summary-toggle { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; background: #4f46e5; color: #fff; font-size: 14px; font-weight: 700; }
.plan-summary-toggle::after { content: 'Afficher ▾'; }
.plan-panel[open] .plan-summary-toggle::after { content: 'Masquer ▴'; }
.plan-panel[open] .plan-summary { border-radius: 16px 16px 0 0; margin-bottom: 14px; }
.plan-choice { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; grid-column: 1 / -1; }
.plan-choice-btn { padding: 6px 12px; border-radius: 999px; border: 1px solid #4f46e5; background: #fff; color: #4f46e5; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.plan-choice-btn.is-on { background: #4f46e5; color: #fff; }
.plan-choice-btn.is-muted { border-color: #cbd5e1; color: #475569; }
.plan-choice-btn.is-muted.is-on { background: #64748b; border-color: #64748b; color: #fff; }
.plan-cal { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.plan-cal-label { font-size: 12.5px; color: #64748b; }
.plan-cal-link { padding: 6px 12px; border-radius: 999px; border: 1px solid #cbd5e1; background: #fff; color: #1e293b; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.plan-cal-link:hover, .plan-cal-link:focus-visible { border-color: #4f46e5; color: #4f46e5; }
.plan-item.is-validated { border-color: #86efac; background: #f0fdf4; }
.plan-item.is-aside { opacity: 0.55; }
.plan-summary:focus-visible { outline: 2px solid #6366f1; outline-offset: -2px; border-radius: 16px; }
.plan-body { padding: 0 20px 20px; }
.plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: #0f172a; }
.plan-text { margin: 8px 0; font-size: 13.5px; line-height: 1.5; color: #475569; }
.plan-date-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan-date-row input { max-width: 200px; text-align: left; }
.plan-track { position: relative; height: 10px; margin: 16px 6px 6px; border-radius: 999px; background: #e2e8f0; }
.plan-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #6366f1; border: 2px solid #fff; box-shadow: 0 0 0 1px #c7d2fe; }
.plan-dot.is-default { background: #94a3b8; }
.plan-dot.is-late { background: #b91c1c; }
.plan-dot.is-today { background: #0f172a; }
.plan-dot.is-event { background: #f0b429; width: 16px; height: 16px; margin: -8px 0 0 -8px; }
.plan-legend { margin: 4px 0 12px; font-size: 12px; color: #64748b; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plan-item { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 12px; background: #fafafc; border: 1px solid #e2eaf4; border-radius: 10px; }
.plan-item.is-late { border-color: #fecaca; background: #fef2f2; }
.plan-item.is-default { background: #fff; border-style: dashed; }
.plan-when { font-size: 13px; font-weight: 700; color: #4f46e5; }
.plan-main { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: #1e293b; min-width: 0; overflow-wrap: anywhere; }
.plan-main span { color: #64748b; font-size: 12.5px; }
.plan-main em { font-style: normal; font-size: 12px; color: #64748b; }
.plan-main .plan-late { color: #b91c1c; font-weight: 600; }
@media (max-width: 640px) { .plan-item { grid-template-columns: 1fr; gap: 4px; } .plan-body { padding: 0 14px 16px; } }
.map-tile { image-rendering: auto; }
.map-leader { stroke: #4338ca; stroke-width: 2; stroke-dasharray: 3 3; }
.map-dot { fill: #4338ca; stroke: #fff; stroke-width: 1.5; }
.map-legend { margin: 10px 0 0; padding-left: 22px; columns: 2; font-size: 13px; color: #334155; }
.map-legend li { break-inside: avoid; margin-bottom: 2px; }
@media (max-width: 640px) { .map-legend { columns: 1; } }
.map-scale-text { paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.map-scale { filter: drop-shadow(0 0 2px #fff); }

/* Fil de l'expert : hauteur bornée, barre de défilement à droite. */
#chatWindow-accompagnateur { max-height: min(62vh, 560px); overflow-y: auto; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #a5b4fc #eef2ff; }
#chatWindow-accompagnateur::-webkit-scrollbar { width: 10px; }
#chatWindow-accompagnateur::-webkit-scrollbar-track { background: #eef2ff; border-radius: 999px; }
#chatWindow-accompagnateur::-webkit-scrollbar-thumb { background: #a5b4fc; border-radius: 999px; }
#chatWindow-accompagnateur::-webkit-scrollbar-thumb:hover { background: #6366f1; }
/* Zone de saisie de l'expert : fond clair coloré pour repérer où écrire. */
#chatInputField-accompagnateur { background: #eef2ff !important; border: 1.5px solid #a5b4fc !important; color: #0f172a; min-height: 44px; }
#chatInputField-accompagnateur::placeholder { color: #6366f1; opacity: 0.75; }
#chatInputField-accompagnateur:focus { background: #fff !important; border-color: #6366f1 !important; }
/* Réponses rapides dans la colonne de gauche, sous le parcours des experts. */
.sidebar-quick-replies-empty { margin: 0; padding: 10px 12px; border: 1px dashed #cbd5e1; border-radius: 12px; font-size: 12.5px; color: #64748b; }
.sidebar-quick-replies:has(.accompagnateur-clarification-message) .sidebar-quick-replies-empty { display: none; }
.sidebar-quick-replies .accompagnateur-clarification-message { display: block; max-width: none; width: 100%; margin: 0 0 10px; padding: 0; }
.sidebar-quick-replies .accompagnateur-clarification-card { width: 100%; padding: 12px; border-radius: 12px; box-shadow: none; }
.sidebar-quick-replies .accompagnateur-clarification-heading { flex-direction: column; align-items: flex-start; gap: 6px; }
.sidebar-quick-replies .accompagnateur-clarification-title { font-size: 13px; }
.sidebar-quick-replies .accompagnateur-clarification-subtitle, .sidebar-quick-replies .accompagnateur-clarification-footer { font-size: 11.5px; }
.sidebar-quick-replies .accompagnateur-clarification-options { gap: 6px; }
