/* Plan d'accès interactif – couleurs du CHEL */
.chel-plan { --cp-navy: #1f3742; --cp-teal: #0f7c79; --cp-teal-l: #6ac2c1; --cp-green: #a9cb50; --cp-sky: #15aff7; --cp-red: #c8102e; --cp-bg: #f3f8f8; font-family: Raleway, "Segoe UI", Arial, sans-serif; color: var(--cp-navy); }
.chel-plan *, .chel-plan *::before, .chel-plan *::after { box-sizing: border-box; }
.cp-toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.cp-find { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .9rem; min-width: min(100%, 340px); }
.cp-find select { font: inherit; font-weight: 500; padding: .6em .8em; border: 1px solid #c9d6da; border-radius: 10px; background: #fff; color: var(--cp-navy); }
.cp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-btn { display: inline-flex; align-items: center; gap: 6px; padding: .6em 1.1em; border-radius: 999px; background: var(--cp-teal); color: #fff !important; font: inherit; font-weight: 700; font-size: .9rem; text-decoration: none !important; border: 2px solid var(--cp-teal); cursor: pointer; }
.cp-btn:hover { background: #0b625f; border-color: #0b625f; }
.cp-btn-ghost { background: #fff; color: var(--cp-teal) !important; }
.cp-btn-ghost:hover { background: #e8f4f4; }
.cp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.cp-map { position: relative; background: #fff; border-radius: 16px; box-shadow: 0 6px 24px rgba(31, 55, 66, .1); padding: 10px; }
.cp-map svg { display: block; width: 100%; height: auto; }

.cp-parking > * { fill: #d7ecf8; stroke: #a9d3ea; stroke-width: 1; }
.cp-pbadge rect { fill: var(--cp-sky); }
.cp-pbadge text { fill: #fff; font-weight: 800; font-size: 15px; text-anchor: middle; }
.cp-pbadge text.cp-pnum { fill: var(--cp-navy); font-size: 13px; }

.cp-b { cursor: pointer; outline: none; }
.cp-b .cp-shape { fill: #5d7480; transition: fill .15s; }
.cp-b[data-b="A"] .cp-shape, .cp-b[data-b="B"] .cp-shape, .cp-b[data-b="C"] .cp-shape, .cp-b[data-b="E"] .cp-shape { fill: #2f8582; }
.cp-b[data-b="D"] .cp-shape { fill: #2f8582; }
.cp-b[data-b="F"] .cp-shape { fill: #2f8582; }
.cp-b[data-b="G"] .cp-shape { fill: #8aab3a; }
.cp-b[data-b="H"] .cp-shape { fill: #9c4a3c; }
.cp-b[data-b="chapelle"] .cp-shape { fill: #7a8b93; }
.cp-b:hover .cp-shape, .cp-b:focus-visible .cp-shape, .cp-b.is-on .cp-shape { fill: var(--cp-navy); }
.cp-b[data-b="D"]:hover .cp-shape, .cp-b[data-b="D"]:focus-visible .cp-shape, .cp-b[data-b="D"].is-on .cp-shape { fill: var(--cp-red); }
.cp-b:focus-visible .cp-shape { stroke: var(--cp-sky); stroke-width: 3; }

.cp-letters { pointer-events: none; }
.cp-letters circle { fill: #fff; stroke: var(--cp-navy); stroke-width: 2; }
.cp-letters text { fill: var(--cp-navy); font-weight: 800; font-size: 13px; text-anchor: middle; }
.cp-letters g[data-l="D"] circle { stroke: var(--cp-red); }
.cp-letters g[data-l="D"] text { fill: var(--cp-red); }
.cp-letters g.is-on circle { fill: var(--cp-green); stroke: #fff; }
.cp-letters g.is-on text { fill: #fff; }

.cp-labels text { fill: var(--cp-navy); font-size: 11px; font-weight: 600; }
.cp-labels .cp-small { font-size: 9.5px; fill: #44606c; }
.cp-labels .cp-road { font-size: 11px; font-weight: 700; fill: #5e6d73; letter-spacing: .04em; }
.cp-entry rect { fill: #8c1d40; }
.cp-entry text { fill: #fff; font-size: 10px; font-weight: 800; text-anchor: middle; letter-spacing: .06em; }
.cp-north circle { fill: #fff; stroke: #c9d6da; }
.cp-north path { fill: var(--cp-navy); }
.cp-north text { font-size: 10px; font-weight: 800; text-anchor: middle; fill: var(--cp-navy); }

.cp-tip { position: absolute; z-index: 5; max-width: 300px; background: var(--cp-navy); color: #fff; border-radius: 12px; padding: 12px 14px; font-size: .86rem; line-height: 1.45; pointer-events: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.cp-tip strong { display: block; font-size: .95rem; margin-bottom: 4px; }
.cp-tip .cp-tl { color: #bfe3e2; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }
.cp-tip ul { margin: 2px 0 0; padding-left: 16px; }
.cp-tip .cp-more { margin-top: 6px; color: #bfe3e2; font-size: .78rem; }

.cp-side { display: flex; flex-direction: column; gap: 14px; }
.cp-detail { background: var(--cp-bg); border-radius: 14px; padding: 16px 18px; border-left: 5px solid var(--cp-green); min-height: 120px; }
.cp-detail h3 { margin: 0 0 2px; font-size: 1.1rem; color: var(--cp-navy); display: flex; align-items: center; gap: 8px; }
.cp-detail h3 .cp-badge { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--cp-navy); color: #fff; display: inline-grid; place-items: center; font-size: .8rem; }
.cp-detail.is-urg { border-left-color: var(--cp-red); }
.cp-detail.is-urg h3 .cp-badge { background: var(--cp-red); }
.cp-detail .cp-sub { margin: 0 0 8px; color: #4d6570; font-size: .88rem; }
.cp-detail h4 { margin: 10px 0 2px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--cp-teal); }
.cp-detail ul { margin: 0; padding-left: 18px; font-size: .92rem; }
.cp-detail li { margin: 2px 0; }
.cp-detail li.is-found { font-weight: 800; color: var(--cp-teal); }
.cp-detail .cp-park { margin: 10px 0 0; font-size: .88rem; display: flex; align-items: center; gap: 6px; }
.cp-detail .cp-park b { background: var(--cp-sky); color: #fff; border-radius: 5px; padding: 0 6px; }
.cp-detail .cp-alert { margin: 10px 0 0; background: var(--cp-red); color: #fff; border-radius: 8px; padding: 6px 10px; font-weight: 700; font-size: .88rem; }
.cp-hint { margin: 0; color: #4d6570; }
.cp-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cp-legend button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: #fff; border: 1px solid #dbe5e8; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: .9rem; color: var(--cp-navy); cursor: pointer; }
.cp-legend button:hover, .cp-legend button.is-on { border-color: var(--cp-teal); background: #eaf6f5; }
.cp-legend .cp-badge { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--cp-navy); display: inline-grid; place-items: center; font-weight: 800; font-size: .78rem; }
.cp-legend .is-urg .cp-badge { border-color: var(--cp-red); color: var(--cp-red); }
.cp-keys { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: #4d6570; }
.cp-keys i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.cp-keys .k-park { background: #d7ecf8; border: 1px solid #a9d3ea; }
.cp-keys .k-walk { height: 0; border-top: 2px dashed #1f3742; border-radius: 0; }
.cp-keys .k-urg { background: var(--cp-red); }

@media (max-width: 900px) {
  .cp-layout { grid-template-columns: 1fr; }
  .cp-tip { display: none !important; }
  .cp-legend { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .cp-legend { grid-template-columns: 1fr; } }
@media print {
  .cp-toolbar, .cp-tip { display: none !important; }
  .cp-layout { grid-template-columns: 1fr; }
  .cp-map { box-shadow: none; }
  .cp-detail { display: none; }
}

/* Mise en avant depuis une page de service (?b=…&p=…) */
.cp-target { margin: 0 0 16px; padding: 16px 20px; border-radius: 14px; background: #f3f8e6; border: 2px solid #a9cb50; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.cp-target-title { margin: 0; flex: 1 1 100%; font-size: 1.05rem; color: var(--cp-navy); }
.cp-target ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; flex: 1 1 auto; }
.cp-target li { display: flex; align-items: center; gap: 10px; }
.cp-target small { color: #5d6f77; }
.cp-step { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 9px; font-weight: 800; box-sizing: border-box; }
.cp-step.park { background: #15aff7; color: #fff; }
.cp-step.bat { background: #a9cb50; color: #1f3742; }
.cp-focus .cp-b .cp-shape { fill: #c5ced2; }
.cp-focus .cp-b.is-target .cp-shape { fill: #a9cb50; stroke: #6f8f22; stroke-width: 2.5; }
.cp-focus .cp-b:hover .cp-shape, .cp-focus .cp-b:focus-visible .cp-shape { fill: var(--cp-navy); }
.cp-focus .cp-letters g.is-target circle { fill: #fff; stroke: #6f8f22; stroke-width: 2.5; }
.cp-focus .cp-letters g.is-target text { fill: #1f3742; }
.cp-focus .cp-parking > * { fill: #e3e8ea; stroke: #d2d9dc; }
.cp-focus .cp-parking > .is-target { fill: #15aff7; stroke: #0a8fd0; stroke-width: 2; }
.cp-focus .cp-pbadge > g { opacity: .45; }
.cp-focus .cp-pbadge > g.is-target { opacity: 1; }
.cp-focus .cp-pbadge > g.is-target rect { fill: #0a8fd0; }
