/* ==========================================================================
   PANORA · CARTE INTERACTIVE — STYLES
   Toutes les règles sont préfixées .pm pour cohabiter avec Squarespace.
   ========================================================================== */

.pm {
  /* palette de marque */
  --pm-cream: #F3F2E9;
  --pm-paper: #FBFAF4;
  --pm-deep: #3B6269;
  --pm-ink: #23393D;
  --pm-mist: #81A9AD;
  --pm-sage: #C2C5B2;
  --pm-green: #718568;
  --pm-ochre: #C4B159;
  --pm-terra: #AE6A5A;
  --pm-muted: #5F7376;
  --pm-line: rgba(59, 98, 105, .18);
  --pm-shadow: 0 18px 50px -18px rgba(24, 44, 48, .45);
  /* typographie : Americana et Poppins sont déjà chargées par le site */
  --pm-display: Americana, "Americana BT", Georgia, serif;          /* titres : police de marque, déjà chargée par le site */
  --pm-body: Poppins, "Helvetica Neue", Arial, sans-serif;          /* texte : Poppins, déjà chargée par le site (300, 400, 500, 700) */
  /* mise en page : recherche en tête, la photo comme pièce maîtresse,
     fiche flottante à droite (ordinateur) ou panneau inférieur (mobile) */

  color: var(--pm-ink);
  font-family: var(--pm-body);
  font-size: 16px;
  line-height: 1.5;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  -webkit-font-smoothing: antialiased;
  /* propriétés héritées : on repart de zéro, quel que soit le thème du site */
  letter-spacing: normal; word-spacing: normal; text-transform: none; text-indent: 0;
  text-align: start; font-style: normal; font-weight: 400; text-shadow: none; white-space: normal;
}
.pm *, .pm *::before, .pm *::after { box-sizing: border-box; }
/* Neutralise les styles de titres et de paragraphes du site hôte (Squarespace). */
/* Chaque règle ci-dessous garde une spécificité d'une classe : elle l'emporte sur les
   sélecteurs de balises du thème (button, h2, p, a, section…) et cède devant les classes .pm-*. */
.pm :where(h2, h3, h4, p, ul, ol, li) { margin: 0; padding: 0; text-transform: none; letter-spacing: normal; font-family: inherit; color: inherit; }
.pm :where(p, li) { font-size: inherit; line-height: inherit; font-weight: inherit; }
.pm :where(h2, h3, h4) { line-height: inherit; }
.pm :where(li) { list-style: inherit; }
.pm :where(header, section, aside, div) { position: static; z-index: auto; float: none; margin: 0; padding: 0; border: 0; background: none; width: auto; height: auto; min-height: 0; max-width: none; box-shadow: none; }
.pm :where(img, svg) { max-width: none; }
.pm :where(button, input) { text-transform: none; letter-spacing: normal; }
.pm :where(label, summary) { text-transform: inherit; letter-spacing: inherit; font-weight: inherit; }
.pm [hidden] { display: none !important; }
.pm :where(button) { font: inherit; color: inherit; }
.pm :focus-visible { outline: 2px solid var(--pm-ochre); outline-offset: 2px; border-radius: 6px; }
.pm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pm-skip {
  position: absolute; left: 0; top: 0; z-index: 30;
  background: var(--pm-deep); color: var(--pm-cream); border: 0; border-radius: 8px; padding: 10px 14px; cursor: pointer;
}
.pm-skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.pm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.pm-eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--pm-green); }
.pm-title { margin: 0; font-family: var(--pm-display); font-weight: 400; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: .02em; color: var(--pm-deep); text-wrap: balance; }
.pm-sub { margin: 8px 0 0; color: var(--pm-muted); font-size: 15.5px; }
.pm-lang { display: inline-flex; border: 1px solid var(--pm-line); border-radius: 999px; padding: 3px; background: var(--pm-paper); }
.pm-lang button { border: 0; background: none; padding: 6px 13px; border-radius: 999px; font-size: 13px; letter-spacing: .08em; cursor: pointer; color: var(--pm-muted); }
.pm-lang button[aria-pressed="true"] { background: var(--pm-deep); color: var(--pm-cream); }

/* ---------- Bandeau de démonstration ---------- */
.pm-demo {
  border: 1px dashed rgba(174, 106, 90, .55); background: rgba(174, 106, 90, .07);
  border-radius: 12px; padding: 10px 14px; font-size: 13.5px; color: #6d3f34;
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
}
.pm-demo strong { letter-spacing: .12em; text-transform: uppercase; font-size: 11.5px; font-weight: 600; }
.pm-demo details { flex: 1 1 100%; }
.pm-demo summary { cursor: pointer; font-weight: 500; width: fit-content; }
.pm-scn { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 10px; }
.pm-scn button {
  text-align: left; border: 1px solid rgba(174, 106, 90, .35); background: var(--pm-paper); border-radius: 10px;
  padding: 8px 11px; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
}
.pm-scn button:hover { border-color: var(--pm-terra); }
.pm-scn button[aria-pressed="true"] { border-color: var(--pm-terra); box-shadow: inset 0 0 0 1px var(--pm-terra); }
.pm-scn b { font-weight: 600; font-size: 13.5px; color: var(--pm-ink); }
.pm-scn span { font-size: 12.5px; color: var(--pm-muted); line-height: 1.35; }
.pm-linkbtn { border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: inherit; font-size: inherit; }

/* ---------- Recherche ---------- */
.pm-search {
  position: relative; display: grid; grid-template-columns: 1.15fr 1.15fr .9fr .9fr auto; align-items: stretch;
  background: var(--pm-paper); border: 1px solid var(--pm-line); border-radius: 16px; padding: 6px;
  box-shadow: 0 10px 30px -22px rgba(24, 44, 48, .5);
}
.pm-field {
  border: 0; background: none; text-align: left; padding: 9px 16px; border-radius: 11px; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 1px; position: relative;
}
button.pm-field { cursor: pointer; }
button.pm-field:hover, button.pm-field[aria-expanded="true"] { background: rgba(129, 169, 173, .16); }
.pm-field + .pm-field::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--pm-line); }
.pm-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--pm-muted); }
.pm-value { font-size: 16px; color: var(--pm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-value.is-empty { color: var(--pm-muted); }
.pm-step { display: flex; align-items: center; gap: 10px; }
.pm-step output { min-width: 1.2em; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.pm-step button {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--pm-line); background: none; cursor: pointer;
  display: grid; place-items: center; color: var(--pm-deep); padding: 0;
}
.pm-step button:hover:not(:disabled) { background: rgba(129, 169, 173, .2); }
.pm-step button:disabled { opacity: .35; cursor: default; }
.pm-go {
  border: 0; border-radius: 11px; background: var(--pm-deep); color: var(--pm-cream); padding: 0 24px; min-height: 52px;
  font-size: 14.5px; font-weight: 500; letter-spacing: .02em; text-transform: none; cursor: pointer; transition: background .2s ease;
  white-space: nowrap;
}
.pm-go:hover { background: #2f5057; }
.pm-go[aria-busy="true"] { opacity: .75; cursor: progress; }
.pm-msg { margin: -8px 4px 0; color: #8d4a3b; font-size: 14.5px; }
.pm-msg:empty { display: none; }

/* ---------- Calendrier ---------- */
.pm-cal {
  position: absolute; z-index: 40; left: 0; top: calc(100% + 8px); width: min(100%, 660px);
  background: var(--pm-paper); border: 1px solid var(--pm-line); border-radius: 16px; box-shadow: var(--pm-shadow); padding: 16px 18px 14px;
}
.pm-cal-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pm-cal-hint { margin: 0; font-size: 14px; color: var(--pm-muted); }
.pm-cal-nav { display: flex; gap: 6px; }
.pm-cal-nav button, .pm-ctl {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--pm-line); background: var(--pm-paper); cursor: pointer;
  display: grid; place-items: center; color: var(--pm-deep); padding: 0;
}
.pm-cal-nav button:disabled { opacity: .3; cursor: default; }
.pm-months { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.pm-month h3 { margin: 6px 0 8px; text-align: center; font-family: var(--pm-body); font-weight: 500; font-size: 15px; letter-spacing: .06em; text-transform: capitalize; color: var(--pm-deep); }
.pm-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.pm-dow { text-align: center; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--pm-muted); padding: 4px 0 6px; }
.pm-day {
  border: 0; background: none; height: 38px; cursor: pointer; font-size: 14.5px; font-variant-numeric: tabular-nums;
  border-radius: 999px; position: relative; padding: 0;
}
.pm-day:hover:not(:disabled) { background: rgba(129, 169, 173, .28); }
.pm-day:disabled { color: rgba(35, 57, 61, .28); cursor: default; }
.pm-day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--pm-ochre); }
.pm-day.is-in, .pm-day.is-preview { background: rgba(194, 197, 178, .5); border-radius: 0; }
.pm-day.is-start, .pm-day.is-end { background: var(--pm-deep); color: var(--pm-cream); border-radius: 999px; }
.pm-day.is-start:hover:not(:disabled), .pm-day.is-end:hover:not(:disabled) { background: var(--pm-deep); }
.pm-day.is-start.has-end { border-radius: 999px 0 0 999px; }
.pm-day.is-end { border-radius: 0 999px 999px 0; }
.pm-cal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13.5px; color: var(--pm-muted); }

/* ---------- Résumé + onglets ---------- */
.pm-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; min-height: 40px; }
.pm-summary { margin: 0; font-size: 15.5px; color: var(--pm-ink); flex: 1 1 320px; }
.pm-summary b { font-weight: 600; color: var(--pm-deep); }
.pm-summary a { color: var(--pm-deep); text-underline-offset: 3px; }
.pm-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pm-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--pm-line); background: var(--pm-paper); border-radius: 999px; padding: 9px 15px 9px 11px; font-size: 13.5px; cursor: pointer; color: var(--pm-muted); }
.pm-toggle b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; background: rgba(59, 98, 105, .1); color: var(--pm-deep); }
.pm-toggle[aria-pressed="true"] { background: var(--pm-deep); color: var(--pm-cream); border-color: var(--pm-deep); }
.pm-toggle[aria-pressed="true"] b { background: var(--pm-cream); }
.pm-tabs { display: inline-flex; border: 1px solid var(--pm-line); border-radius: 999px; padding: 3px; background: var(--pm-paper); }
.pm-tabs button { border: 0; background: none; padding: 7px 15px; border-radius: 999px; font-size: 13.5px; cursor: pointer; color: var(--pm-muted); display: inline-flex; gap: 7px; align-items: center; }
.pm-tabs button[aria-selected="true"] { background: var(--pm-deep); color: var(--pm-cream); }

/* ---------- Carte ---------- */
.pm-mapwrap { position: relative; z-index: 3; scroll-margin-top: 12px; border-radius: 18px; background: #1c2a2c; height: clamp(380px, 56vh, 580px); box-shadow: var(--pm-shadow); }
.pm-mapwrap.is-expanded { position: fixed; inset: 0; z-index: 9990; height: auto; border-radius: 0; }
.pm-mapwrap.is-expanded .pm-card { max-height: calc(100% - 28px); }
.pm-viewport { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.pm-viewport.is-dragging { cursor: grabbing; }
.pm-viewport:focus-visible { outline: 3px solid var(--pm-ochre); outline-offset: -3px; border-radius: 18px; }
/* Le zoom change la taille réelle de la scène (largeur, hauteur) : texte et photo restent nets. */
.pm-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.pm-stage.is-anim { transition: transform .45s cubic-bezier(.2, .7, .2, 1), width .45s cubic-bezier(.2, .7, .2, 1), height .45s cubic-bezier(.2, .7, .2, 1); }
.pm-img { display: block; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.pm-layer { position: absolute; inset: 0; }

.pm-paths { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.pm.show-site .pm-paths { opacity: 1; }
.pm-path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.pm-path.is-access-bg { stroke: rgba(20, 34, 37, .55); stroke-width: 7; }
.pm-path.is-access { stroke: var(--pm-cream); stroke-width: 3; stroke-dasharray: 1 9; }
.pm-path.is-closed { stroke: #d99a8b; stroke-width: 2.5; stroke-dasharray: 7 7; }

/* Ancre : point exact sur la photo ; son contenu garde une taille constante à l'écran. */
.pm-anchor { position: absolute; width: 0; height: 0; z-index: 2; }
.pm-anchor.is-top { z-index: 6; }
.pm-anchor:hover, .pm-anchor:focus-within { z-index: 30; }
.pm-unit::before { content: ""; position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--pm-cream); box-shadow: 0 0 0 1.5px rgba(35, 57, 61, .7); }
.pm-stem { position: absolute; left: -1px; top: 3px; width: 2px; height: calc(var(--off) - 18px); background: rgba(243, 242, 233, .9); box-shadow: 0 0 4px rgba(0, 0, 0, .55); border-radius: 2px; }
.pm-marker {
  position: absolute; left: -22px; top: calc(var(--off) - 22px); width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
}
.pm-dot {
  --sc: 1; --rot: 0deg;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; position: relative;
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0;
  background: var(--pm-cream); color: var(--pm-deep);
  box-shadow: 0 0 0 2px rgba(243, 242, 233, .95), 0 6px 14px rgba(0, 0, 0, .45);
  transform: rotate(var(--rot)) scale(var(--sc));
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), background .25s ease, color .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.pm-num { display: inline-block; transform: rotate(calc(-1 * var(--rot))); }
/* forme = configuration : cercle (deux chambres), carré (une chambre), losange (studio) */
.pm-marker.is-shape-square .pm-dot { border-radius: 9px; width: 30px; height: 30px; }
.pm-marker.is-shape-diamond .pm-dot { border-radius: 7px; width: 27px; height: 27px; --rot: 45deg; }
.pm-marker:hover .pm-dot, .pm-marker:focus-visible .pm-dot { --sc: 1.12; }
.pm-marker:focus-visible { outline: none; }
.pm-marker:focus-visible .pm-dot { box-shadow: 0 0 0 2px var(--pm-cream), 0 0 0 5px var(--pm-ochre), 0 6px 14px rgba(0, 0, 0, .45); }
.pm-badge {
  position: absolute; right: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; display: none; place-items: center;
  color: #fff; box-shadow: 0 0 0 1.5px var(--pm-cream); z-index: 1;
}
.pm-badge svg { width: 10px; height: 10px; }

.pm-marker.is-available .pm-dot { background: var(--pm-mist); color: #14292d; }
.pm-marker.is-available .pm-badge { display: grid; background: var(--pm-green); }
/* Indisponible : pastille pâle et effacée, pour que l'œil aille d'abord aux loges libres. */
.pm-marker.is-unavailable .pm-dot { background: rgba(243, 242, 233, .66); color: rgba(35, 57, 61, .6); font-weight: 500; --sc: .82; box-shadow: 0 0 0 1px rgba(243, 242, 233, .5), 0 2px 6px rgba(0, 0, 0, .2); }
.pm-marker.is-unavailable .pm-badge { width: 13px; height: 13px; right: 3px; top: 3px; }
.pm-marker.is-unavailable .pm-badge svg { width: 8px; height: 8px; }
.pm-anchor:has(.is-unavailable) .pm-stem { opacity: .45; }
.pm-marker.is-available .pm-dot { --sc: 1.08; box-shadow: 0 0 0 2.5px var(--pm-cream), 0 6px 14px rgba(0, 0, 0, .5); }
.pm-marker.is-available:hover .pm-dot, .pm-marker.is-available:focus-visible .pm-dot { --sc: 1.18; }
.pm-marker.is-unavailable .pm-num { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.pm-marker.is-unavailable .pm-badge { display: grid; background: var(--pm-terra); }
.pm-marker.is-unknown .pm-dot { background: rgba(35, 57, 61, .72); color: var(--pm-cream); box-shadow: 0 0 0 2px rgba(35, 57, 61, .72), 0 6px 14px rgba(0, 0, 0, .4); outline: 1.5px dashed var(--pm-cream); outline-offset: -1.5px; }
.pm-marker.is-unknown .pm-badge { display: grid; background: var(--pm-ochre); color: var(--pm-ink); }
.pm-marker.is-loading .pm-dot { animation: pm-pulse 1.1s ease-in-out infinite; }
.pm-marker.is-selected .pm-dot {
  background: var(--pm-deep); color: var(--pm-cream); --sc: 1.22;
  box-shadow: 0 0 0 2px var(--pm-cream), 0 0 0 8px rgba(243, 242, 233, .28), 0 8px 18px rgba(0, 0, 0, .5);
}
.pm-marker.is-selected .pm-num { text-decoration: none; }
@keyframes pm-pulse { 50% { opacity: .45; } }

/* Repères du site : stationnements, bornes, accès, bacs, bâtiment de service */
.pm-feat { z-index: 1; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.pm-feat.is-always, .pm-feat.is-on, .pm.show-site .pm-feat { opacity: 1; pointer-events: auto; }
.pm-chip {
  position: absolute; transform: translate(-50%, -50%); border: 0; padding: 0 6px; height: 24px; min-width: 24px; border-radius: 999px; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px; cursor: default; font-size: 12px; line-height: 1;
  background: rgba(27, 42, 45, .86); color: var(--pm-cream); box-shadow: 0 0 0 1.5px rgba(243, 242, 233, .8), 0 3px 8px rgba(0, 0, 0, .35);
}
.pm-chip b { font-weight: 600; }
.pm-chip small { font-size: 11px; font-weight: 400; letter-spacing: .02em; }
.pm-chip.is-lot { height: 28px; padding: 0 9px; font-size: 13px; background: var(--pm-cream); color: var(--pm-deep); box-shadow: 0 0 0 1.5px var(--pm-deep), 0 4px 10px rgba(0, 0, 0, .4); }
.pm-chip.is-lot { transform: translate(-50%, calc(-100% - 7px)); }
.pm-chip.is-lot::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 7px; margin-left: -1px; background: var(--pm-deep); }
.pm-chip.is-lot svg { color: #9a8424; margin-left: 2px; }
.pm-chip.is-stall { height: 17px; min-width: 22px; padding: 0 4px; font-size: 9.5px; letter-spacing: .02em; background: rgba(243, 242, 233, .92); color: var(--pm-deep); box-shadow: 0 0 0 1px rgba(35, 57, 61, .55), 0 2px 5px rgba(0, 0, 0, .3); }
.pm-feat.is-on .pm-chip.is-stall, .pm-feat.is-on .pm-chip.is-lot { box-shadow: 0 0 0 2px var(--pm-ochre), 0 0 0 6px rgba(196, 177, 89, .3), 0 4px 10px rgba(0, 0, 0, .4); }
.pm-chip.is-beach { background: var(--pm-cream); color: var(--pm-deep); gap: 4px; padding: 0 8px 0 6px; box-shadow: 0 0 0 1.5px var(--pm-mist), 0 3px 8px rgba(0, 0, 0, .35); }
/* l'infobulle du bâtiment de service s'ouvre vers le bas, à l'écart du stationnement voisin */
.pm-chip.is-service .pm-tip { bottom: auto; top: calc(100% + 6px); }
.pm-chip.is-closed { background: var(--pm-terra); color: #fff; height: 22px; min-width: 22px; padding: 0; }
.pm-chip.is-closed svg { width: 10px; height: 10px; }
.pm-tag {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-size: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(27, 42, 45, .86); color: var(--pm-cream); box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
}
.pm-tag.is-access { transform: translate(8px, -50%); }
.pm-tag.is-closed { transform: translate(18px, -50%); background: rgba(174, 106, 90, .95); color: #fff; }
.pm-tip {
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  background: rgba(27, 42, 45, .92); color: var(--pm-cream); font-size: 12.5px; font-weight: 400; padding: 6px 10px; border-radius: 8px; line-height: 1.35;
  opacity: 0; transition: opacity .18s ease; text-align: center; z-index: 3;
}
.pm-tip small { display: block; opacity: .75; font-size: 11.5px; }
.pm-chip:hover .pm-tip, .pm-chip:focus .pm-tip, .pm-marker:hover .pm-tip, .pm-marker:focus-visible .pm-tip { opacity: 1; }
.pm-marker .pm-tip { bottom: calc(100% - 2px); }
@media (hover: none) { .pm-marker .pm-tip { display: none; } }

.pm-controls { position: absolute; left: 14px; top: 14px; display: flex; flex-direction: column; gap: 8px; z-index: 8; }
.pm-ctl { background: rgba(251, 250, 244, .94); border-color: transparent; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); width: 40px; height: 40px; }
.pm-ctl:hover:not(:disabled) { background: #fff; }
.pm-ctl:disabled { opacity: .5; cursor: default; }
.pm-hint, .pm-wheel {
  position: absolute; left: 50%; transform: translateX(-50%); z-index: 7; pointer-events: none;
  background: rgba(27, 42, 45, .78); color: var(--pm-cream); font-size: 13px; padding: 7px 13px; border-radius: 999px; white-space: nowrap;
  transition: opacity .4s ease;
}
.pm-hint { bottom: 14px; }
.pm-wheel { top: 50%; margin-top: -18px; opacity: 0; }
.pm-wheel.is-on { opacity: 1; }
.pm-hint.is-off { opacity: 0; }
.pm-tagdemo {
  position: absolute; right: 14px; bottom: 14px; z-index: 6; pointer-events: none; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(174, 106, 90, .92); color: #fff; padding: 5px 10px; border-radius: 999px;
}

/* ---------- Légende ---------- */
.pm-legends { display: flex; flex-direction: column; gap: 8px; margin: -4px 2px 0; }
.pm-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--pm-muted); }
.pm-legend li { display: inline-flex; align-items: center; gap: 9px; }
.pm-legend .pm-marker { position: relative; left: auto; top: auto; margin: 0; width: 26px; height: 26px; cursor: default; pointer-events: none; }
.pm-legend .pm-dot { width: 22px; height: 22px; font-size: 11px; --sc: 1 !important; box-shadow: 0 0 0 1px var(--pm-line), 0 2px 5px rgba(0, 0, 0, .18); }
.pm-legend .is-shape-square .pm-dot { width: 20px; height: 20px; border-radius: 6px; }
.pm-legend .is-shape-diamond .pm-dot { width: 18px; height: 18px; border-radius: 5px; }
.pm-legend .pm-badge { width: 12px; height: 12px; right: -3px; top: -3px; }
.pm-legend .pm-badge svg { width: 8px; height: 8px; }
.pm-legend .pm-num { text-decoration: none !important; }
.pm-legend .pm-chip { position: static; transform: none; }
.pm-legend .is-unavailable .pm-dot { background: #e4e2d8; color: rgba(35, 57, 61, .55); }

/* ---------- Fiche ---------- */
.pm-card {
  position: absolute; z-index: 12; top: 14px; right: 14px; width: 344px; overflow: auto;
  background: var(--pm-paper); border-radius: 16px; box-shadow: 0 24px 60px -16px rgba(10, 22, 25, .65);
  animation: pm-in .32s cubic-bezier(.2, .7, .2, 1);
}
@keyframes pm-in { from { opacity: 0; transform: translateY(10px); } }
.pm-photo { position: relative; height: 196px; background: #26383b; border-radius: 16px 16px 0 0; overflow: hidden; }
.pm-slides { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pm-slides::-webkit-scrollbar { display: none; }
.pm-slides:focus-visible { outline-offset: -3px; }
.pm-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; position: relative; background-repeat: no-repeat; background-color: #26383b; }
.pm-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-ring { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid var(--pm-cream); box-shadow: 0 0 0 2px rgba(35, 57, 61, .6), 0 0 0 9px rgba(243, 242, 233, .22); }
.pm-sl-btn { position: absolute; top: 50%; margin-top: -15px; width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; background: rgba(251, 250, 244, .9); color: var(--pm-ink); z-index: 2; }
.pm-sl-btn.is-prev { left: 8px; } .pm-sl-btn.is-next { right: 8px; }
.pm-sl-btn:disabled { opacity: 0; pointer-events: none; }
.pm-photo-tag { position: absolute; left: 12px; bottom: 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--pm-cream); background: rgba(27, 42, 45, .6); padding: 4px 9px; border-radius: 999px; pointer-events: none; }
.pm-sl-count { position: absolute; right: 12px; bottom: 10px; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--pm-cream); background: rgba(27, 42, 45, .6); padding: 4px 9px; border-radius: 999px; pointer-events: none; }
.pm-close { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(251, 250, 244, .92); cursor: pointer; display: grid; place-items: center; color: var(--pm-ink); padding: 0; z-index: 2; }
.pm-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.pm-card-type { margin: 0; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--pm-green); }
.pm-card-title { margin: 2px 0 0; font-family: var(--pm-display); font-weight: 400; font-size: 24px; letter-spacing: .03em; color: var(--pm-deep); line-height: 1.15; }
.pm-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; font-size: 14px; }
.pm-facts li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.pm-facts svg { flex: none; margin-top: 1px; color: var(--pm-deep); width: 18px; height: 18px; }
.pm-p { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--pm-deep); box-shadow: inset 0 0 0 1.3px var(--pm-deep); }
.pm-avail { border-top: 1px solid var(--pm-line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.pm-pill { display: inline-flex; align-items: center; gap: 7px; width: fit-content; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px 5px 8px; border-radius: 999px; font-weight: 500; }
.pm-pill i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.pm-pill i svg { width: 10px; height: 10px; }
.pm-pill.is-available { background: rgba(113, 133, 104, .16); color: #4c5d45; }
.pm-pill.is-available i { background: var(--pm-green); }
.pm-pill.is-unavailable { background: rgba(174, 106, 90, .14); color: #8d4a3b; }
.pm-pill.is-unavailable i { background: var(--pm-terra); }
.pm-pill.is-unknown { background: rgba(196, 177, 89, .2); color: #6c5f1f; }
.pm-pill.is-unknown i { background: var(--pm-ochre); color: var(--pm-ink); }
.pm-pill.is-neutral { background: rgba(59, 98, 105, .09); color: var(--pm-muted); padding-left: 11px; }
.pm-avail p { margin: 0; font-size: 14.5px; color: var(--pm-ink); }
.pm-avail .pm-fine { font-size: 13px; color: var(--pm-muted); }
.pm-price { font-size: 19px; color: var(--pm-deep); font-variant-numeric: tabular-nums; }
.pm-alt { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: var(--pm-muted); }
.pm-alt button { border: 1px solid var(--pm-line); background: none; border-radius: 999px; min-width: 34px; height: 30px; padding: 0 9px; cursor: pointer; font-size: 13.5px; color: var(--pm-deep); font-variant-numeric: tabular-nums; }
.pm-alt button:hover { background: rgba(129, 169, 173, .2); }
.pm-actions { display: flex; flex-direction: column; gap: 10px; }
.pm-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; border: 0; cursor: pointer;
  background: var(--pm-deep); color: var(--pm-cream) !important; border-radius: 11px; min-height: 50px; padding: 0 18px;
  font-size: 14.5px; font-weight: 500; letter-spacing: .02em; text-transform: none; transition: background .2s ease;
}
.pm-cta:hover { background: #2f5057; }
.pm-cta.is-ghost { background: none; color: var(--pm-deep) !important; box-shadow: inset 0 0 0 1px var(--pm-deep); }
.pm-cta.is-ghost:hover { background: rgba(59, 98, 105, .07); }
.pm-more { align-self: center; font-size: 14px; color: var(--pm-deep); text-underline-offset: 4px; }

/* ---------- Calendrier d'une loge ---------- */
.pm-ucal { border: 1px solid var(--pm-line); border-radius: 12px; padding: 10px 12px 10px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.pm-ucal-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pm-ucal-title { margin: 0; font-size: 13.5px !important; font-weight: 500; color: var(--pm-deep) !important; }
.pm-ucal .pm-cal-nav button { width: 30px; height: 30px; }
.pm-ucal-month { margin: 0; text-align: center; font-size: 13.5px !important; letter-spacing: .06em; text-transform: capitalize; color: var(--pm-muted) !important; }
.pm-ucal .pm-day { height: 40px; font-size: 13.5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1; border-radius: 9px; }
.pm-dp { font-size: 9px; font-weight: 500; color: #4c5d45; letter-spacing: 0; }
.pm-day.is-single .pm-dp { color: var(--pm-terra); }
.pm-day.is-start .pm-dp, .pm-day.is-end .pm-dp { color: var(--pm-cream); }
.pm-day.is-nostart:disabled { color: rgba(35, 57, 61, .5); }
.pm-day.is-nostart .pm-dp { opacity: .6; }
.pm-ucal .pm-day.is-start, .pm-ucal .pm-day.is-end, .pm-ucal .pm-day.is-in, .pm-ucal .pm-day.is-open:not(.is-end) { border-radius: 9px; }
.pm-ucal-key.is-single b { color: var(--pm-terra); font-size: 11px; }
.pm-ucal-note { margin: 2px 0 0 !important; font-size: 11.5px !important; line-height: 1.4; color: var(--pm-muted) !important; }
.pm-est { font-size: 15px !important; }
.pm-est b { font-weight: 600; color: var(--pm-deep); }
.pm-cal-key { margin: 10px 0 0; font-size: 12.5px; color: var(--pm-muted); }
.pm-cal-same { margin: 10px 0 0; font-size: 13.5px; color: var(--pm-muted); }
.pm-cal-same a { color: var(--pm-deep); text-underline-offset: 3px; }
.pm-ucal .pm-dow { padding: 2px 0 3px; }
.pm-day.is-occ { color: rgba(35, 57, 61, .38); text-decoration: line-through; background: repeating-linear-gradient(135deg, rgba(174, 106, 90, .16) 0 4px, transparent 4px 8px); border-radius: 6px; }
.pm-day.is-open:not(.is-end) { background: rgba(129, 169, 173, .2); border-radius: 0; }
.pm-day.is-open:hover:not(:disabled) { background: rgba(129, 169, 173, .45); }
.pm-ucal-foot { margin: 4px 0 0 !important; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 12.5px !important; color: var(--pm-muted) !important; }
.pm-ucal-key { display: inline-flex; align-items: center; gap: 6px; }
.pm-ucal-key i { width: 14px; height: 14px; border-radius: 4px; background: repeating-linear-gradient(135deg, rgba(174, 106, 90, .3) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--pm-line); }
.pm-ucal-open { align-self: flex-start; color: var(--pm-deep); font-size: 14px; }

/* ---------- Comment réserver ---------- */
.pm-how { border-top: 1px solid var(--pm-line); padding-top: 22px; margin-top: 6px; display: flex; flex-direction: column; gap: 16px; }
.pm-how h3 { margin: 0; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; font-family: var(--pm-body); color: var(--pm-green); }
.pm-how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 34px; }
.pm-how li { display: flex; gap: 14px; align-items: flex-start; }
.pm-how-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--pm-deep); box-shadow: inset 0 0 0 1px var(--pm-deep); font-variant-numeric: tabular-nums; }
.pm-how h4 { margin: 4px 0 4px; font-family: var(--pm-display); font-weight: 400; font-size: 18px; letter-spacing: .03em; color: var(--pm-deep); }
.pm-how p { margin: 0; font-size: 14.5px; color: var(--pm-muted); }
/* Sous les trois étapes : même grille de trois colonnes, pour occuper toute la largeur. */
.pm-how-more { display: grid; grid-template-columns: 1fr 2fr; gap: 16px 34px; align-items: start; border-top: 1px solid var(--pm-line); padding-top: 16px; }
.pm-how-tip { color: var(--pm-ink) !important; }
.pm-how-note { font-size: 13.5px !important; border-left: 2px solid var(--pm-sage); padding-left: 14px !important; }

/* ---------- Liste ---------- */
.pm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pm-row {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 6px 16px; align-items: center;
  background: var(--pm-paper); border: 1px solid var(--pm-line); border-radius: 14px; padding: 14px 16px;
}
.pm-row.is-off { opacity: .72; }
.pm-row-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(59, 98, 105, .09); color: var(--pm-deep); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.pm-row h3 { margin: 0; font-family: var(--pm-display); font-weight: 400; font-size: 17px; letter-spacing: .03em; color: var(--pm-deep); }
.pm-row-meta { margin: 2px 0 0; font-size: 14px; color: var(--pm-muted); }
.pm-row-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 7px; font-size: 13.5px; color: var(--pm-muted); }
.pm-row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pm-row-actions .pm-cta { min-height: 42px; font-size: 13.5px; padding: 0 16px; }
.pm-listhead { margin: 0 0 4px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--pm-green); }

/* ---------- Réglage des repères ---------- */
.pm-edit { border: 1px solid var(--pm-line); background: var(--pm-paper); border-radius: 14px; padding: 16px 18px; display: grid; gap: 12px; font-size: 14.5px; }
.pm-edit h3 { margin: 0; font-family: var(--pm-body); font-size: 15px; font-weight: 600; color: var(--pm-deep); }
.pm-edit p { margin: 0; color: var(--pm-muted); max-width: 70ch; }
.pm-edit textarea { width: 100%; min-height: 190px; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; border: 1px solid var(--pm-line); border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--pm-ink); resize: vertical; }
.pm-edit-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pm-btn { border: 1px solid var(--pm-deep); background: none; color: var(--pm-deep); border-radius: 10px; padding: 8px 14px; cursor: pointer; font-size: 14px; }
.pm-btn:hover { background: rgba(59, 98, 105, .07); }
.pm-btn.is-solid { background: var(--pm-deep); color: var(--pm-cream); }
.pm.is-edit [data-drag] { cursor: move; touch-action: none; }
.pm.is-edit .pm-feat { opacity: 1; pointer-events: auto; }
.pm.is-edit .is-inactive .pm-marker .pm-dot { background: rgba(243, 242, 233, .55); color: var(--pm-ink); outline: 1.5px dashed var(--pm-ink); outline-offset: -1.5px; }

.pm-foot { margin: 0; font-size: 13px; color: var(--pm-muted); }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .pm { gap: 14px; }
  .pm-search { grid-template-columns: 1fr 1fr; }
  .pm-search .pm-field:nth-child(3)::before { display: none; }
  .pm-search .pm-field:nth-child(n+3) { border-top: 1px solid var(--pm-line); border-radius: 0; margin-top: 4px; padding-top: 12px; }
  .pm-go { grid-column: 1 / -1; margin-top: 6px; }
  .pm-months { grid-template-columns: 1fr; }
  .pm-month + .pm-month { display: none; }
  .pm-cal { padding: 14px 12px 12px; }
  .pm-day { height: 42px; }
  .pm-mapwrap { height: clamp(300px, 50vh, 420px); border-radius: 14px; }
  .pm-controls { flex-direction: row; left: 12px; top: auto; bottom: 12px; }
  .pm-hint { bottom: 64px; }
  .pm-tagdemo { bottom: auto; top: 12px; right: 12px; }
  .pm-viewport:focus-visible { border-radius: 14px; }
  .pm-card {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: min(82vh, 640px); z-index: 9995;
    border-radius: 20px 20px 0 0; box-shadow: 0 -18px 50px -10px rgba(10, 22, 25, .55); padding-bottom: env(safe-area-inset-bottom);
    animation: pm-up .36s cubic-bezier(.2, .7, .2, 1);
  }
  @keyframes pm-up { from { transform: translateY(40%); opacity: 0; } }
  .pm-photo { height: 210px; border-radius: 20px 20px 0 0; }
  .pm-how ol { grid-template-columns: 1fr; }
  .pm-how-more { grid-template-columns: 1fr; }
  .pm-tools { width: 100%; justify-content: space-between; }
  .pm-tag { font-size: 11px; padding: 4px 8px; }
  .pm-chip.is-lot small { display: none; }
  .pm-photo::before { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(243, 242, 233, .8); z-index: 2; }
  .pm-row { grid-template-columns: 46px 1fr; }
  .pm-row-actions { grid-column: 1 / -1; justify-content: stretch; }
  .pm-row-actions > * { flex: 1 1 140px; }
  .pm-bar { align-items: flex-start; }
}
@media (min-width: 761px) { .pm-hint { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .pm *, .pm *::before, .pm *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   BLINDAGE TYPOGRAPHIQUE (v1.2, tailles revues en v1.3)
   Constaté sur panoraloges.ca le 19 nov. 2026 : le thème Squarespace et le CSS
   personnalisé du site imposent leur propre police aux titres h3/h4, aux
   paragraphes et aux boutons, et une taille de 50 px aux titres h4. Ces règles
   passaient devant celles de la carte. Les règles ci-dessous les neutralisent :
   toute la carte suit --pm-body, et seuls quatre titres suivent --pm-display.
   Le préfixe #panora-map leur donne priorité sur toute règle de thème à base de classes.
   Pour changer une police, modifier --pm-body ou --pm-display en tête de fichier.
   ========================================================================== */
#panora-map :where(p, li, a, button, input, label, span, small, b, strong, output, summary, h2, h3, h4) { font-family: inherit !important; }
#panora-map .pm-title, #panora-map .pm-card-title, #panora-map .pm-row h3, #panora-map .pm-how h4 { font-family: var(--pm-display) !important; font-weight: 400; text-transform: none; color: var(--pm-deep); }
#panora-map .pm-title { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: .02em; margin: 0; }
#panora-map .pm-card-title { font-size: 24px; line-height: 1.15; letter-spacing: .03em; margin: 2px 0 0; }
#panora-map .pm-row h3 { font-size: 17px; line-height: 1.5; letter-spacing: .03em; margin: 0; }
#panora-map .pm-how h4 { font-size: 18px; line-height: 1.5; letter-spacing: .03em; margin: 4px 0 4px; }
#panora-map .pm-how h3 { font-size: 12px; line-height: 1.5; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; color: var(--pm-green); margin: 0; }
#panora-map .pm-month h3 { font-size: 15px; line-height: 1.5; letter-spacing: .06em; text-transform: capitalize; font-weight: 500; color: var(--pm-deep); margin: 6px 0 8px; text-align: center; }
