/* Plan interactif du salon */
.plan-wrap {
  position: relative;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 14px 38px -14px rgba(94, 52, 134, 0.35);
  overflow: hidden;
  line-height: 0;
  border: 1px solid rgba(94, 52, 134, 0.1);
}
.plan-svg { width: 100%; height: auto; display: block; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.plan-wrap.is-zoomed .plan-svg { touch-action: none; cursor: grab; }
.plan-hall { stroke: #7d5aa6; stroke-width: 6; }
.plan-zone { stroke: #cdbbe3; stroke-width: 2; }
.plan-zone-label { font: 600 15px "Jost", system-ui, sans-serif; fill: #8a73a8; letter-spacing: 0.12em; text-transform: uppercase; }
.plan-door { fill: #e9b949; }
.plan-tools { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.plan-tools button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(94, 52, 134, 0.25);
  background: #fff; color: var(--violet-deep, #5e3486); font-size: 1.2rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(94, 52, 134, 0.18);
}
.plan-tools button:hover { background: var(--violet, #8a5cb8); color: #fff; }

.plan-stand { cursor: pointer; outline: none; transition: opacity 0.2s ease; }
.plan-rect { transition: fill 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease; }
.plan-stand.is-free .plan-rect { fill: #fff; stroke: #cbb6e4; stroke-width: 2.5; stroke-dasharray: 9 6; }
.plan-stand.is-taken .plan-rect { fill: var(--c); stroke: var(--c); stroke-width: 2.5; }
.plan-stand.is-free:hover .plan-rect, .plan-stand.is-free:focus-visible .plan-rect { fill: #f4ecfc; stroke: var(--violet, #8a5cb8); stroke-dasharray: none; }
.plan-stand.is-taken:hover .plan-rect, .plan-stand.is-taken:focus-visible .plan-rect { stroke: var(--violet-deep, #5e3486); stroke-width: 4.5; }
.plan-stand.is-selected .plan-rect { stroke: var(--violet-deep, #5e3486); stroke-width: 6; stroke-dasharray: none; }
.plan-stand.is-selected.is-free .plan-rect { fill: #f4ecfc; }
.plan-stand.is-dim { opacity: 0.2; }
.plan-logo-bg { fill: #fff; }
.plan-logo { pointer-events: none; }
.plan-badge { fill: #fff; stroke: #cbb6e4; stroke-width: 2; }
.plan-stand.is-taken .plan-badge { stroke: var(--c); stroke-width: 3; }
.plan-num { font: 700 15px "Jost", system-ui, sans-serif; fill: var(--violet-deep, #5e3486); pointer-events: none; }
.plan-name { font: 700 17px "Jost", system-ui, sans-serif; fill: #fff; pointer-events: none; paint-order: stroke; stroke: rgba(40, 20, 70, 0.28); stroke-width: 3px; stroke-linejoin: round; }

.plan-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 16px; line-height: 1.2; font-size: 0.88rem; color: var(--ink-soft, #5a4d6e); }
.plan-legend span { display: inline-flex; align-items: center; gap: 7px; }
.plan-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; background: var(--c, #fff); border: 2px solid var(--c, #cbb6e4); }
.plan-legend i.is-free { background: #fff; border-style: dashed; }
.plan-legend i.is-door { background: #e9b949; border-color: #e9b949; height: 6px; }

/* Page Rouen */
.plan-tools-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: center; margin: 0 auto 22px; }
.plan-search {
  min-width: 240px; padding: 11px 18px; border-radius: 999px; border: 1.5px solid rgba(94, 52, 134, 0.2);
  background: #fff; font: inherit; color: var(--ink, #2b1f3d);
}
.plan-search:focus { outline: none; border-color: var(--violet, #8a5cb8); box-shadow: 0 0 0 3px rgba(138, 92, 184, 0.15); }
.plan-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.plan-chip {
  border: 1.5px solid transparent; background: var(--lavande-light, #e5d3f5); color: var(--violet-deep, #5e3486);
  border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 0.9rem; cursor: pointer; transition: all 0.2s ease;
}
.plan-chip:hover { border-color: var(--violet, #8a5cb8); }
.plan-chip.is-active { background: var(--violet-deep, #5e3486); color: #fff; }
.plan-chip i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; background: var(--c, #8a5cb8); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(94,52,134,0.25); }
.plan-count { color: var(--ink-soft, #5a4d6e); font-size: 0.9rem; }

.plan-layout { display: grid; grid-template-columns: 1.8fr 1fr; gap: 26px; align-items: start; text-align: left; }
.plan-card {
  background: #fff; border-radius: 20px; padding: 26px; box-shadow: 0 10px 30px -12px rgba(94, 52, 134, 0.25);
  position: sticky; top: 96px; min-height: 160px;
}
.plan-card h3 { margin: 4px 0 8px; }
.plan-card p { margin: 10px 0 16px; }
.plan-card .muted { color: var(--ink-soft, #5a4d6e); margin: 0; }
.plan-card__logo {
  width: 100%; height: 140px; border-radius: 14px; background: var(--bg-pale, #faf6fd); margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; padding: 12px;
}
.plan-card__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.plan-pill { display: inline-block; font-size: 0.78rem; background: var(--lavande-light, #e5d3f5); color: var(--violet-deep, #5e3486); border-radius: 999px; padding: 3px 12px; }

.plan-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 34px; text-align: left; }
.plan-item {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid transparent; border-radius: 16px;
  padding: 10px 14px; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 6px 18px -10px rgba(94, 52, 134, 0.3);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.plan-item:hover { border-color: var(--violet, #8a5cb8); transform: translateY(-1px); }
.plan-item__logo { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 12px; background: var(--bg-pale, #faf6fd); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.plan-item__logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.plan-item__logo b { font-family: var(--font-display, serif); color: var(--violet-deep, #5e3486); font-size: 1.3rem; }
.plan-item__txt { display: flex; flex-direction: column; min-width: 0; }
.plan-item__txt strong { color: var(--violet-deep, #5e3486); font-weight: 600; }
.plan-item__txt small { color: var(--ink-soft, #5a4d6e); }
.plan-cta { margin-top: 30px; text-align: center; }

@media (max-width: 900px) {
  .plan-layout { grid-template-columns: 1fr; }
  .plan-card { position: static; }
}

/* Mode édition (administration) */
.plan-wrap.is-editing .plan-stand { cursor: move; }
.plan-wrap.is-editing .plan-svg { touch-action: none; }
.plan-handle__dot { fill: #fff; stroke: var(--violet-deep, #5e3486); stroke-width: 4; cursor: nwse-resize; }

/* Zone extérieure, entrée, jours */
.plan-outdoor { fill: #f1f7ea; stroke: #b9d3a3; stroke-width: 2.5; stroke-dasharray: 12 8; }
.plan-outdoor-label { font: 600 18px "Jost", system-ui, sans-serif; fill: #5f8a4b; letter-spacing: 0.1em; text-transform: uppercase; }
.plan-zone-sub { font-weight: 500; font-size: 13px; letter-spacing: 0.06em; opacity: 0.85; }
.plan-arch { fill: rgba(232, 196, 106, 0.35); stroke: #c9a24a; stroke-width: 2; }
.plan-entry-label { font: 700 15px "Jost", system-ui, sans-serif; fill: #8a6a1c; letter-spacing: 0.12em; text-transform: uppercase; }
.plan-stand.is-absent .plan-rect { fill: #fff; stroke: #d7cde6; stroke-dasharray: 3 7; stroke-width: 2; }
.plan-daytag { fill: rgba(255, 255, 255, 0.92); stroke: #cbb6e4; stroke-width: 1; }
.plan-daytag-text { font: 700 10.5px "Jost", system-ui, sans-serif; fill: #5e3486; letter-spacing: 0.06em; }
.plan-days { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.plan-day { border: 1.5px solid #cbb6e4; background: #fff; color: #5e3486; border-radius: 999px; padding: 9px 20px; font: 500 0.95rem "Jost", system-ui, sans-serif; cursor: pointer; transition: background 0.15s, color 0.15s; }
.plan-day:hover { background: #f4ecfc; }
.plan-day.is-active { background: #5e3486; border-color: #5e3486; color: #fff; }
.plan-dayinfo { display: inline-block; margin-top: 8px; font-size: 0.85rem; color: #5e3486; background: #f1e8fb; border-radius: 999px; padding: 3px 12px; }
