/* share.css — Panneau « Partager » v3 (public/partager/share.js) */
html.ps-lock, html.ps-lock body { overflow: hidden; }
.ps-root { position: fixed; inset: 0; z-index: 10000; background: rgba(15, 23, 42, .45); display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; overflow: auto; }
.ps-panel { position: relative; width: 100%; max-width: 620px; background: #fff; color: #1f2328; border-radius: 14px; box-shadow: 0 12px 40px rgba(2, 6, 23, .3);
  font: 14px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; overflow: hidden; text-align: left; }
.ps-panel * { box-sizing: border-box; }
.ps-head { padding: 14px 18px 12px; border-bottom: 1px solid #e6e8eb; display: flex; flex-direction: column; gap: 10px; }
.ps-top { display: flex; align-items: center; justify-content: space-between; }
.ps-top h2 { margin: 0; font-size: 18px; }
.ps-close { border: 0; background: none; font-size: 24px; line-height: 1; color: #57606a; cursor: pointer; padding: 4px 8px; }
.ps-sum { background: #f7f7fd; border: 1px solid #e3e2f5; border-radius: 10px; padding: 8px 12px; }
.ps-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ps-lab { font-size: 12px; color: #57606a; }
.ps-col { display: flex; flex-direction: column; gap: 4px; }
.ps-chip { padding: 5px 10px; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; border: 1px solid #d0d7de; background: #fff; color: #1f2328; }
.ps-chip.is-on { border-color: #c7d2fe; background: #eef2ff; color: #3730a3; font-weight: 600; }
.ps-lines { display: flex; flex-direction: column; padding: 4px 0; }
.ps-line { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 18px; border: 0; border-bottom: 1px solid #f0f1f3; background: #fff; font: inherit; color: #1f2328; cursor: pointer; text-align: left; }
.ps-line:hover { background: #f8f9fb; }
.ps-line.is-open { background: #f7f7fd; }
.ps-line-sub { padding: 8px 18px 8px 60px; background: #f8f9fb; }
.ps-send { cursor: default; }
.ps-send:hover { background: #fff; }
.ps-line-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ps-line-lab { font-size: 15px; }
.ps-line-sub .ps-line-lab { font-size: 14px; }
.ps-line-sub-t { font-size: 12px; color: #57606a; }
.ps-line-r { font-size: 16px; color: #8c959f; }
.ps-nowrap { white-space: nowrap; flex: 1; }
.ps-targets { display: flex; gap: 8px; }
.ps-target { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #e6e8eb; border-radius: 999px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; color: #1f2328; }
.ps-target:hover { border-color: #c7d2fe; background: #eef2ff; }
.ps-dot { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 13px; }
.ps-dot-s { width: 24px; height: 24px; font-size: 11px; }
.ps-enc { padding: 12px 18px 14px 60px; border-bottom: 1px solid #e6e8eb; background: #fbfbfe; display: flex; flex-direction: column; gap: 10px; }
.ps-enc-sub { padding-left: 96px; }
.ps-input { width: 100%; font: inherit; font-size: 14px; color: #1f2328; border: 1px solid #d0d7de; border-radius: 8px; padding: 8px; }
.ps-btn { align-self: flex-start; display: inline-block; padding: 7px 14px; border: 1px solid #c7d2fe; border-radius: 10px; background: #eef2ff; color: #3730a3; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; }
.ps-btn:hover { border-color: #6b6dd2; }
.ps-btn.ps-main { background: #3730a3; color: #fff; border-color: #3730a3; }
.ps-note { margin: 0; font-size: 12px; color: #57606a; }
.ps-abo { display: flex; flex-direction: column; gap: 8px; max-width: 440px; }
.ps-check { display: block; font-size: 12px; color: #57606a; }
.ps-check a { color: #3730a3; }
.ps-trap { position: absolute; left: -9999px; }
.ps-abo-msg { font-size: 13px; }
.ps-err { color: #b91c1c; }
.ps-ok { margin: 0; padding: 10px 12px; background: #ecfdf5; border-radius: 10px; font-size: 13px; }
.ps-qr { display: flex; gap: 14px; align-items: center; }
.ps-qr img { background: #fff; border: 1px solid #d0d7de; border-radius: 6px; padding: 4px; flex: none; }
.ps-qr > div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ps-code { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; background: #fff; border: 1px solid #d0d7de; border-radius: 8px; padding: 8px; }
.ps-toast { position: sticky; bottom: 12px; margin: 8px auto 12px; width: max-content; max-width: calc(100% - 24px); background: #1f2328; color: #fff; font-size: 13px; padding: 8px 14px; border-radius: 999px; }
.ps-toast[hidden] { display: none; }
/* Sélection sur la page : case sur chaque événement, barre en bas */
.ps-pickable { position: relative; outline: 2px dashed #c7d2fe; outline-offset: 2px; }
.ps-pick { position: absolute; bottom: 8px; right: 8px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; background: #fff; border: 1px solid #c7d2fe; border-radius: 8px;
  font: 600 13px/1 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: #3730a3; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.ps-pick input { width: 18px; height: 18px; margin: 0; accent-color: #3730a3; }
.ps-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10001; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px;
  background: #1f2328; color: #fff; font: 14px/1.3 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; box-shadow: 0 -4px 16px rgba(0,0,0,.2); }
.ps-bar-btns { display: flex; gap: 8px; }
.ps-bar button { padding: 7px 14px; border-radius: 8px; font: inherit; cursor: pointer; }
.ps-bar-cancel { background: none; color: #fff; border: 1px solid #57606a; }
.ps-bar-ok { background: #fff; color: #1f2328; border: 0; font-weight: 600 !important; }
html.ps-selecting body { padding-bottom: 64px; }
/* Boutons des pages (style des boutons de la barre des pages thème) */
.commune-actions, .news-actions { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.news-title-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.commune-actions .blstdbutton, .ps-page-btn { flex: 0 0 auto; white-space: nowrap; color: #3730a3; padding: .35em .7em; border: 1px solid #c7d2fe; border-radius: 12px;
  background: #eef2ff; font: inherit; font-size: .95rem; font-weight: normal; cursor: pointer; }
.commune-actions .blstdbutton:hover, .ps-page-btn:hover { background: #667eea; border-color: #6b6dd2; color: #fff; }
.ps-page-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; line-height: 1.2; }
.evt-title-btns { display: inline-flex; gap: 6px; flex: none; font-weight: normal; font-size: .9rem; }
.evt-title-btns .ps-page-btn { font-size: .85rem; padding: .3em .65em; }
.ps-icon { flex: none; }
.evt-topbar-r { display: flex; gap: 8px; align-items: center; }
/* Bouton « Partager » d'une carte d'événement */
.ps-card-share { cursor: pointer; }
/* Aperçu du PDF (Liste, Fiche) */
.ps-prev { padding: 12px 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.ps-prev-box { position: relative; height: min(70vh, 780px); border: 1px solid #d0d7de; border-radius: 8px; overflow: hidden; background: #f6f7f9; }
.ps-prev-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.ps-prev-box.is-loading .ps-aff-wait { display: block; }
.ps-prev-err { padding: 16px; }
.ps-prev-btns { display: flex; justify-content: flex-end; gap: 8px; }
.ps-prev-btns .ps-btn { align-self: auto; }
/* Vue « Affiche » : options à gauche, aperçu à droite (A4 794 × 1123 px réduite) */
@font-face { font-family: 'Anton'; src: url('/partager/fonts/anton-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'DM Serif Display'; src: url('/partager/fonts/dm-serif-display-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('/partager/fonts/fredoka-latin-600-normal.woff2') format('woff2'); font-display: swap; }
.ps-panel.ps-wide { max-width: 920px; }
.ps-back { border: 0; background: none; color: #3730a3; font: inherit; font-size: 14px; cursor: pointer; padding: 4px 6px 4px 0; }
.ps-wide .ps-top h2 { flex: 1; margin-left: 8px; }
.ps-aff { display: grid; grid-template-columns: 1fr 300px; gap: 18px; padding: 14px 18px 18px; align-items: start; }
.ps-aff-opts { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding-top: 6px; }
/* Champ encadré, intitulé posé sur le cadre (comme Form.vue) */
.ps-fld { position: relative; border: 1px solid #8c959f; border-radius: 6px; padding: 14px 10px 9px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ps-fld-l { position: absolute; left: 9px; top: -9px; background: #fff; padding: 0 5px; font-size: 13px; line-height: 16px; color: #1f2328; font-weight: 600; white-space: nowrap; }
.ps-fld-t { padding: 0; }
.ps-fld-in { width: 100%; border: 0; background: transparent; font: inherit; font-size: 14px; color: #1f2328; padding: 11px 10px 8px; border-radius: 6px; }
.ps-fld-in:focus { outline: 2px solid #c7d2fe; outline-offset: 0; }
.ps-fld-t:focus-within { border-color: #3730a3; }
.ps-fld-row { display: flex; flex-wrap: wrap; gap: 16px 12px; }
.ps-fld-row > .ps-fld { flex: 1 1 180px; }
.ps-fld-row > .ps-fld-auto { flex: 0 1 auto; }
.ps-fld .ps-note { margin: 0; }
.ps-aff-sec { display: flex; flex-direction: column; gap: 8px; }
.ps-aff-h { font-weight: 600; font-size: 14px; }
.ps-aff-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.ps-aff-side .ps-btn { align-self: stretch; text-align: center; }
.ps-aff-prev { position: relative; width: 300px; height: 424px; overflow: hidden; border-radius: 4px; box-shadow: 0 2px 10px rgba(2, 6, 23, .18); background: #fff; }
.ps-aff-frame { width: 794px; height: 1123px; border: 0; transform: scale(.3778); transform-origin: 0 0; pointer-events: none; }
.ps-aff-wait { position: absolute; inset: auto 8px 8px auto; background: rgba(31, 35, 40, .8); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 999px; display: none; }
.ps-aff-prev.is-loading .ps-aff-wait { display: block; }
.ps-aff-big { font-size: 13px; color: #3730a3; text-align: center; }
.ps-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 92px; padding: 6px 4px; border: 1px solid #d0d7de; border-radius: 10px; background: #fff;
  font: inherit; font-size: 12px; line-height: 1.25; color: #1f2328; cursor: pointer; text-align: center; }
.ps-opt:hover { border-color: #c7d2fe; }
.ps-opt.is-on { border-color: #3730a3; background: #eef2ff; box-shadow: 0 0 0 1px #3730a3 inset; font-weight: 600; color: #3730a3; }
.ps-opt-t { display: flex; justify-content: center; }
.ps-opt i { display: block; min-width: 0; min-height: 0; border: 1px solid #8c959f; border-radius: 1px; background: #fff; }
.ps-opt i.m { background: #dfe3e8; border-style: dashed; }
.ps-opt .wf { display: flex; width: 72px; height: 54px; padding: 3px; border: 1px solid #c9ced6; border-radius: 3px; background: #fff; }
.ps-opt .r { display: flex; gap: 2px; flex: 1; min-height: 0; }
.ps-opt .c { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ps-opt .pg { display: flex; flex-direction: column; gap: 2px; width: 46px; height: 64px; padding: 3px; border: 1px solid #c9ced6; border-radius: 3px; background: #fff; }
.ps-opt .pg > i.hd, .ps-opt .pg > i.ft { flex: 0 0 7px; background: #f0f2f5; border-color: #c3c9d1; }
.ps-opt .pb { flex: 1; display: flex; flex-direction: column; gap: 2px; min-height: 0; }
.ps-opt .pb.g2 { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
.ps-opt .pb i.e { flex: 1; background: #fff7ea; border-color: #c58a2d; }
.ps-aff-pair { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.ps-swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #d0d7de; cursor: pointer; padding: 0;
  font: 700 13px/1 'DM Serif Display', Georgia, serif; }
.ps-swatch.is-on { box-shadow: 0 0 0 2px #3730a3; }
.ps-font { font-size: 15px; }
.ps-notice { position: fixed; inset: 0; z-index: 10002; background: rgba(15, 23, 42, .5); display: flex; align-items: center; justify-content: center; padding: 18px; }
.ps-notice-in { max-width: 440px; background: #fff; border-radius: 12px; padding: 20px 22px; box-shadow: 0 12px 40px rgba(2, 6, 23, .3); display: flex; flex-direction: column; gap: 10px; }
.ps-notice-in h3 { margin: 0 0 2px; font: italic 400 24px/1.15 'DM Serif Display', Georgia, serif; }
.ps-notice-in p { margin: 0; font-size: 14px; color: #1f2328; }
.ps-notice-in .ps-btn { align-self: flex-end; min-width: 80px; text-align: center; margin-top: 6px; }
@media (max-width: 700px) {
  .ps-aff { grid-template-columns: 1fr; padding: 12px 14px 16px; }
  .ps-aff-side { position: static; order: -1; align-items: center; }
  .ps-aff-prev { width: 200px; height: 283px; }
  .ps-aff-frame { transform: scale(.2519); }
  .ps-opt { width: 92px; }
}
@media (max-width: 700px) {
  .ps-root { padding: 0; align-items: flex-end; }
  .ps-panel { border-radius: 14px 14px 0 0; max-height: 94vh; overflow-y: auto; }
  .ps-head, .ps-line { padding-left: 14px; padding-right: 14px; }
  .ps-line-sub { padding-left: 50px; }
  .ps-enc { padding: 12px 14px 14px; }
  .ps-target { padding: 4px; }
}
