/* ==========================================================================
   Composants interactifs (listes maison, recherche, calendrier, modale,
   panneau latéral, chat, cartes de visite, publication)
   ========================================================================== */
/* Barres de défilement masquées sur tout le site (le défilement reste actif). */
html, body, * { scrollbar-width: none !important; -ms-overflow-style: none !important; }
*::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }

.native-hidden { position: absolute !important; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; border: 0; opacity: 0; pointer-events: none; overflow: hidden; clip: rect(0 0 0 0); }
.js .nojs-only { display: none !important; }
[hidden] { display: none !important; }

/* --- Liste déroulante --- */
.cs, .cb, .dp { position: relative; margin-top: 6px; font-weight: 400; }
.vis-row .cs { margin-top: 0; min-width: 190px; }
.cs-trigger { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-size: .95rem; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.cs-trigger:hover { border-color: var(--brand-line); }
.cs-trigger:focus-visible, .cs.open .cs-trigger { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.cs-trigger > .icon:last-child { margin-left: auto; color: var(--muted); transition: transform .15s; }
.cs.open .cs-trigger > .icon:last-child { transform: rotate(180deg); }
.cs-value { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.placeholder { color: var(--muted); }
.cs-list { display: none; position: absolute; z-index: 80; left: 0; right: 0; top: calc(100% + 6px); max-height: 280px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overscroll-behavior: contain; }
.cs.open .cs-list, .cb.open .cs-list { display: block; }
.cs.up .cs-list { top: auto; bottom: calc(100% + 6px); }
.cs-list li[role="option"] { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: .92rem; }
.cs-list li[role="option"] .icon { margin-left: auto; color: var(--brand); }
.cs-list li.active { background: var(--surface-2); }
.cs-list li.selected { color: var(--brand); font-weight: 600; }
.cs-group { padding: 10px 12px 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cs-empty { padding: 12px; color: var(--muted); font-size: .9rem; text-align: center; }

/* --- Recherche avec suggestions --- */
.cb-input { padding-left: 42px; }
.cb-ico { position: absolute; left: 14px; top: 13px; color: var(--muted); pointer-events: none; }
.cb.has-value .cb-input { font-weight: 600; }
.cb-main { flex: 1; }
.cb-sub { color: var(--muted); font-size: .8rem; }

/* --- Calendrier --- */
.dp-trigger .icon:first-child { color: var(--brand); }
.dp-value { flex: 1; }
.dp-value::first-letter { text-transform: uppercase; }
.dp-pop { display: none; position: absolute; z-index: 80; top: calc(100% + 6px); left: 0; width: 320px; max-width: calc(100vw - 32px); padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
.dp.open .dp-pop { display: block; }
.dp-inline .dp-pop { position: static; width: 100%; max-width: none; margin-top: 8px; box-shadow: none; }
.dp-inline .dp-trigger { cursor: default; }
.dp-inline .dp-trigger:focus-visible { box-shadow: none; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dp-title { font-weight: 700; }
.dp-title::first-letter { text-transform: uppercase; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dp-dow { text-align: center; font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; padding: 4px 0; }
.dp-day { aspect-ratio: 1; min-height: 36px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; }
.dp-day:hover:not(:disabled) { background: var(--brand-soft); color: var(--brand); }
.dp-day.today { box-shadow: inset 0 0 0 1.5px var(--brand-line); color: var(--brand); font-weight: 700; }
.dp-day.selected, .dp-day.selected:hover { background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.dp-day:disabled { color: var(--muted); opacity: .35; cursor: not-allowed; }

/* --- Fenêtre modale --- */
dialog.modal { padding: 0; border: 0; background: transparent; max-width: 520px; width: calc(100% - 32px); max-height: calc(100dvh - 32px); overflow: visible; color: var(--text); }
dialog.modal::backdrop { background: rgba(10, 10, 40, .55); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: pop .18s ease-out; }
.modal-card { background: var(--surface); border-radius: 24px; padding: 22px; box-shadow: var(--shadow-lg); max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }
.modal-head h2 { margin: 0; flex: 1; font-size: 1.2rem; }
.modal-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); flex: none; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.choices { border: 0; padding: 0; gap: 8px; }
.choices legend { padding: 0 0 6px; }
.choice { display: block; cursor: pointer; font-weight: 400; position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice-box { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 44px; border: 1.5px solid var(--line); border-radius: 14px; position: relative; transition: border-color .15s, background .15s; }
.choice-box::before { content: ""; position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--brand-line); background: var(--surface); box-sizing: border-box; }
.choice-box small { color: var(--muted); font-size: .8rem; }
.choice input:checked + .choice-box { border-color: var(--brand); background: var(--brand-soft); }
.choice input:checked + .choice-box::before { border: 5px solid var(--brand); }
.choice input:focus-visible + .choice-box { outline: 3px solid var(--brand); outline-offset: 2px; }
.form-error { color: var(--danger) !important; font-weight: 600; }

/* --- Notifications éphémères --- */
.toasts { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: #15152b; color: #fff; padding: 10px 18px; border-radius: 99px; font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-lg); transition: opacity .3s, transform .3s; }
.toast-error { background: var(--danger); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* --- Panneau latéral --- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(10, 10, 40, .45); opacity: 0; transition: opacity .25s; }
.drawer-backdrop.open { opacity: 1; }
.drawer { position: fixed; z-index: 75; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--surface); box-shadow: -20px 0 60px rgba(10, 10, 60, .2); transform: translateX(100%); transition: transform .25s ease-out; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-content { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.drawer-loading { padding: 40px; text-align: center; color: var(--muted); }
body.drawer-lock { overflow: hidden; }
.panel-hero { position: relative; display: flex; align-items: center; gap: 16px; padding: 28px 64px 22px 22px; color: #fff; overflow: hidden; }
.panel-hero::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .1) 0 2px, transparent 2px 30px); pointer-events: none; }
.panel-hero > * { position: relative; z-index: 1; }
.panel-title h2 { margin: 0; font-size: 1.3rem; color: #fff; }
.panel-title p { margin: 2px 0 0; opacity: .9; font-size: .88rem; }
.panel-close { position: absolute !important; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .2); color: #fff; cursor: pointer; z-index: 2; }
.panel-close:hover { background: rgba(255, 255, 255, .32); }
.vc-date.vc-date-lg { width: 64px; height: 68px; flex: none; }
.panel-body { padding: 4px 22px 28px; }
.panel-sec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.panel-sec h3 { margin-bottom: 8px; }
.panel-sec h3 .icon { color: var(--brand); }
.panel-danger { padding-top: 18px; }
.panel-page { padding: 0; overflow: hidden; }
.count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: .75rem; font-weight: 700; }
.seg-choice { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.seg-opt { flex: 1; cursor: pointer; font-weight: 600; font-size: .86rem; position: relative; }
.seg-opt input { position: absolute; opacity: 0; }
.seg-opt span { display: block; text-align: center; padding: 9px 10px; border-radius: 10px; color: var(--muted); white-space: nowrap; }
.seg-opt input:checked + span { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.seg-opt input:focus-visible + span { outline: 3px solid var(--brand); }
.plan-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.plan-item { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.plan-item form { margin: 0; display: flex; }
.plan-item.is-done .plan-label { text-decoration: line-through; color: var(--muted); }
.plan-check { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--brand-line); background: var(--surface); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.plan-item.is-done .plan-check { background: var(--ok); border-color: var(--ok); }
.plan-kind { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none; }
.kind-attraction { background: var(--brand-soft); color: var(--brand); }
.kind-spectacle { background: #fff0e8; color: #e8590c; }
.kind-restaurant { background: #e6f7ef; color: #138a4b; }
.kind-autre { background: var(--surface-2); color: var(--muted); }
.plan-label { flex: 1; min-width: 0; font-size: .92rem; overflow-wrap: anywhere; }
.plan-time { display: inline-block; margin-right: 8px; font-variant-numeric: tabular-nums; color: var(--brand); }
.iconbtn-sm { width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.iconbtn-sm:hover:not(:disabled) { color: var(--danger); background: var(--surface-2); }
.dp-head .iconbtn-sm:hover:not(:disabled) { color: var(--brand); }
.iconbtn-sm:disabled { opacity: .3; cursor: not-allowed; }
.plan-add { gap: 12px; background: var(--surface-2); padding: 14px; border-radius: 14px; }
.plan-add input, .plan-add .cs-trigger { background: var(--surface); }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.people li { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 99px; font-size: .88rem; }
.people a { color: var(--text); font-weight: 600; text-decoration: none; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: .72rem; font-weight: 600; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }

/* --- Chat --- */
.chat { display: flex; flex-direction: column; gap: 10px; }
.chat-list { list-style: none; margin: 0; padding: 12px; display: flex; flex-direction: column; gap: 8px; max-height: 340px; min-height: 140px; overflow-y: auto; background: var(--surface-2); border-radius: 16px; }
.chat-msg { max-width: 85%; align-self: flex-start; background: var(--surface); padding: 8px 12px; border-radius: 16px 16px 16px 6px; box-shadow: var(--shadow); }
.chat-msg.mine { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-radius: 16px 16px 6px 16px; }
.chat-meta { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 2px; }
.chat-msg.mine .chat-meta { color: inherit; opacity: .8; }
.chat-meta a { color: inherit; }
.chat-body { display: block; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .92rem; }
.chat-empty { margin: auto; color: var(--muted); font-size: .88rem; text-align: center; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { margin: 0; border-radius: 99px; }
.chat-form .btn { border-radius: 99px; width: 46px; padding: 0; min-height: 46px; flex: none; }

/* --- Cartes de visite --- */
.visit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.visit-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.visit-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(21, 21, 70, .12); }
.visit-card.is-past { opacity: .6; }
.vc-art { position: relative; height: 96px; padding: 12px; display: flex; align-items: flex-start; justify-content: space-between; overflow: hidden; }
.vc-art::before { content: ""; position: absolute; inset: auto -10% -45% -10%; height: 90%; border-top: 4px solid rgba(255, 255, 255, .35); border-radius: 50% 50% 0 0; transform: rotate(-6deg); }
.vc-art::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 2px, transparent 2px 26px); }
.vc-date { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 56px; border-radius: 14px; background: rgba(255, 255, 255, .95); color: #2b2bea; font-size: .68rem; text-transform: uppercase; font-weight: 600; letter-spacing: .04em; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.vc-date b { font-size: 1.35rem; line-height: 1; letter-spacing: 0; }
.vc-flag { position: relative; z-index: 1; background: rgba(0, 0, 0, .28); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.vc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.vc-park { font-weight: 600; line-height: 1.3; }
.vc-loc { color: var(--muted); font-size: .8rem; display: flex; align-items: center; gap: 4px; }
.vc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vis-badge.vis-everyone { background: var(--brand-soft); color: var(--brand); }
.vis-badge.vis-friends { background: var(--ok-soft); color: var(--ok); }

/* --- Publication --- */
.composer { padding: 14px; }
.composer-row { display: flex; align-items: flex-end; gap: 10px; }
.composer-row textarea { flex: 1; margin: 0; min-height: 44px; height: 44px; max-height: 320px; resize: none; border-radius: 22px; background: var(--surface-2); border-color: transparent; padding: 10px 16px; line-height: 1.45; }
.composer-row textarea:focus { background: var(--surface); }
.composer-row textarea { overflow-y: hidden; scrollbar-width: thin; }
.composer-row textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer-row > .avatar { margin-bottom: 1px; }
.composer-toggle { border: 0; background: var(--surface-2); color: var(--brand); cursor: pointer; flex: none; }
.composer-toggle .icon { transition: transform .2s; }
.composer-toggle.open .icon { transform: rotate(180deg); }
.composer-send { flex: none; border-radius: 99px; }
.composer-more { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
[data-feed-list].loading { opacity: .5; transition: opacity .15s; }

@media (max-width: 760px) {
  dialog.modal { width: 100%; max-width: none; margin: auto 0 0; max-height: 92dvh; }
  .modal-card { border-radius: 24px 24px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 92dvh; }
  dialog.modal[open] { animation: sheet .22s ease-out; }
  .drawer { width: 100%; }
  .panel-body { padding: 4px 16px calc(28px + env(safe-area-inset-bottom)); }
  .panel-hero { padding: 24px 60px 18px 16px; }
  .visit-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .vc-art { height: 80px; }
  .composer-send span { display: none; }
  .composer-row > .avatar { display: none; }
  .composer-row { gap: 8px; }
  .composer-send { width: 44px; padding: 0; }
  .has-tabbar .toasts { bottom: calc(var(--tabbar-h) + 16px); }
}
@media (max-width: 380px) { .visit-grid { grid-template-columns: 1fr; } }
@keyframes sheet { from { transform: translateY(40px); opacity: .4; } }


/* --- Popups Messages / Notifications --- */
.pop-backdrop { position: fixed; inset: 0; z-index: 80; background: transparent; }
.popover { position: fixed; z-index: 85; top: 72px; right: max(16px, calc((100vw - 1140px) / 2 + 16px)); width: 400px; max-height: min(640px, calc(100dvh - 96px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-6px); transition: opacity .15s, transform .15s; overflow: hidden; }
.popover.open { opacity: 1; transform: none; }
.pop-content { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.pop-head { display: flex; align-items: center; gap: 8px; padding: 14px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.pop-head h2 { margin: 0; flex: 1; font-size: 1.1rem; }
.pop-head [data-pop-back] { margin-left: -8px; }
.pop-peer { flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; }
.pop-body { overflow-y: auto; padding: 6px; flex: 1; overscroll-behavior: contain; }
.pop-list { list-style: none; margin: 0; padding: 0; }
.pop-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--text); }
.pop-row:hover { background: var(--surface-2); }
.pop-row.is-unread { background: var(--brand-soft); }
.pop-row.is-unread::before { display: none; }
.pop-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pop-row-top { display: flex; justify-content: space-between; gap: 8px; }
.pop-row-sub { color: var(--muted); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-row-sub.strong { color: var(--text); white-space: normal; }
.pop-row.is-unread .pop-row-sub { color: var(--text); font-weight: 600; }
.pop-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 16px; color: var(--muted); text-align: center; }
.pop-empty p { margin: 0; }
.pop-label { margin: 12px 12px 6px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pop-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
.pop-note { padding: 8px 14px 12px; margin: 0; }
.pop-thread { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 12px; flex: 1; min-height: 0; }
.dm-list { flex: 1; max-height: none; min-height: 240px; }
.notif-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; background: var(--brand-soft); color: var(--brand); }
.notif-like { background: #ffe9ec; color: #d0263b; }
.notif-moderation_decision, .notif-appeal_outcome, .notif-report_outcome { background: var(--warn-soft); color: var(--warn); }
.notif-pass_expiring { background: var(--ok-soft); color: var(--ok); }

/* --- Staff : badge de rôle et accès au panneau --- */
.role-badge { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); }
.menu-list a.menu-admin { background: linear-gradient(135deg, #2b2bea, #7a3cf0); color: #fff; margin-bottom: 4px; padding: 12px; align-items: center; }
.menu-list a.menu-admin:hover { background: linear-gradient(135deg, #1d1dc9, #6a2ce0); }
.menu-admin span { display: flex; flex-direction: column; line-height: 1.3; }
.menu-admin small { opacity: .85; font-size: .75rem; font-weight: 500; }

@media (max-width: 760px) {
  .popover { top: 0; right: 0; left: 0; bottom: 0; width: auto; max-width: 100vw; max-height: none; overflow-x: hidden; touch-action: pan-y; border-radius: 0; border: 0; transform: translateY(16px); padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .pop-backdrop { background: rgba(10, 10, 40, .4); }
  body.pop-lock { overflow: hidden; }
  .role-badge { display: none; }
}


/* --- Panneau d'administration --- */
.staff-main { max-width: 1320px; }
.staff-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.staff-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.staff-id { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, #2b2bea, #7a3cf0); color: #fff; }
.staff-id b { display: block; }
.staff-id small { opacity: .85; font-size: .78rem; }
.staff-id-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .2); flex: none; }
.staff-nav { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: var(--shadow); }
.staff-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; }
.staff-nav a:hover { background: var(--surface-2); color: var(--text); }
.staff-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.staff-nav-label { margin: 10px 12px 4px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.staff-back { display: flex; align-items: center; gap: 6px; padding: 0 12px; font-size: .85rem; font-weight: 600; text-decoration: none; }
.staff-content { min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--muted); box-shadow: var(--shadow); }
a.kpi:hover { border-color: var(--brand-line); }
.kpi-n { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.kpi-l { font-size: .82rem; font-weight: 500; }
.kpi-brand { background: linear-gradient(135deg, #2b2bea, #7a3cf0); color: rgba(255, 255, 255, .85); border: 0; }
.kpi-brand .kpi-n { color: #fff; }
.stat-list { list-style: none; margin: 0; padding: 0; }
.stat-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.stat-list li:first-child { border-top: 0; }
.stat-list b { font-size: 1.1rem; }
.seg-wrap { flex-wrap: wrap; width: auto; }
.danger-details { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.danger-details summary { cursor: pointer; font-weight: 600; }
.danger-details[open] summary { margin-bottom: 12px; }
.summary-btn { cursor: pointer; color: var(--brand); margin: 0; }
.add-park { grid-template-columns: 1fr 1fr 110px auto; margin: 14px 0; }
.park-admin summary { cursor: pointer; }
.park-admin[open] summary { margin-bottom: 8px; }
.attr-title { margin-top: 18px; }
.attr-admin { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.attr-admin li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.attr-admin form { margin: 0; }
.attr-edit { display: flex; gap: 8px; flex: 1; min-width: 240px; }
.attr-edit input { margin: 0; min-height: 40px; padding: 8px 12px; }

@media (max-width: 1020px) {
  .staff-shell { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .staff-side { position: static; }
  .staff-id { display: none; }
  .staff-nav { flex-direction: row; overflow-x: auto; padding: 6px; border-radius: 14px; }
  .staff-nav a { white-space: nowrap; padding: 8px 12px; }
  .staff-nav-label { display: none; }
  .staff-back { display: none; }
}
@media (max-width: 760px) {
  .add-park { grid-template-columns: 1fr; }
  /* Tableaux en cartes empilées sur téléphone */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { border: 0; padding: 2px 0; overflow-wrap: anywhere; }
  .table td:empty { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-n { font-size: 1.6rem; }
}


/* --- Confirmation maison --- */
.confirm-modal { max-width: 420px; }
.confirm-card { padding: 24px; }
.confirm-text { font-size: 1.02rem; font-weight: 500; margin: 0 0 20px; white-space: pre-line; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 760px) { .confirm-actions .btn { flex: 1; } .confirm-modal .modal-card { border-radius: 24px 24px 0 0; } }

/* --- Badges --- */
.badge-verified { display: inline-flex; vertical-align: -3px; margin-left: 4px; color: #1d9bf0; }
.badge-verified-inline { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #1d9bf0; color: #fff; font-size: .7rem; font-weight: 800; }
.badge-plus { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin-left: 4px; border-radius: 6px; background: linear-gradient(135deg, #f0a500, #ef5b2b); color: #fff; font-size: .78rem; font-weight: 800; line-height: 1; vertical-align: 2px; }
h1 .badge-plus { font-size: 1rem; height: 24px; min-width: 24px; vertical-align: 6px; }
h1 .badge-verified svg { width: 24px; height: 24px; }
.tag-plus { background: linear-gradient(135deg, #f0a500, #ef5b2b); color: #fff; }

/* --- Publicités --- */
.ad-card { padding: 12px 14px; border-style: dashed; }
.ad-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.ad-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ad-why summary { font-size: .74rem; color: var(--muted); cursor: pointer; list-style: none; text-decoration: underline; }
.ad-why summary::-webkit-details-marker { display: none; }
.ad-why[open] { flex-basis: 100%; }
.ad-why p { margin: 6px 0 0; color: var(--muted); }
.ad-body { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); }
.ad-img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.ad-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .9rem; }
.ad-text span { color: var(--muted); }
.ad-text .ad-cta { color: var(--brand); font-weight: 600; font-size: .85rem; }
.ad-compact .ad-body { flex-direction: column; align-items: stretch; }
.ad-compact .ad-img { width: 100%; height: 120px; }

/* --- RideTogether+ --- */
.plus-hero { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: 24px; color: #fff; margin-bottom: 18px; background: linear-gradient(135deg, #2b2bea, #7a3cf0 60%, #ef5b2b); }
.plus-hero h1 { color: #fff; margin: 0; }
.plus-hero p { margin: 4px 0 0; opacity: .9; }
.plus-logo { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #fff; color: #ef5b2b; font-size: 2.2rem; font-weight: 800; flex: none; }
.plus-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 10px; }
.plus-list li { display: flex; gap: 10px; align-items: flex-start; }
.plus-list .icon { color: var(--ok); margin-top: 3px; }
.plus-price b { display: block; font-size: 1.8rem; font-weight: 800; }
.plus-price span { color: var(--muted); font-size: .88rem; }
.plus-status { font-size: .95rem; }
.center-actions { justify-content: center; margin-top: 16px; }
.inline-flex { display: inline-flex; gap: 8px; align-items: center; }
.inline-flex .cs { margin: 0; min-width: 200px; }

/* --- Vérification d'identité --- */
.verify-box { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--brand-soft); color: var(--text); margin-bottom: 16px; }
.verify-box > .icon { color: var(--brand); flex: none; margin-top: 2px; }
.verify-box p { margin: 2px 0 8px; }
.verify-ok { display: flex; gap: 16px; align-items: flex-start; border-color: #1d9bf0; }
.verify-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #e6f4fe; color: #1d9bf0; flex: none; }
.steps { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.verify-note a { font-weight: 600; }

/* --- Salons de groupe --- */
.group-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, #2b2bea, #7a3cf0); color: #fff; flex: none; }
.group-ico-lg { width: 42px; height: 42px; border-radius: 14px; }
.pop-group-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.pop-group-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-group-title small { color: var(--muted); font-weight: 500; font-size: .75rem; }
.pop-head form { margin: 0; }
.group-members { font-size: .82rem; color: var(--muted); }
.group-members summary { cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-event { align-self: center; font-size: .75rem; color: var(--muted); background: var(--surface); padding: 3px 12px; border-radius: 99px; }
.pop-page { padding: 0; overflow: hidden; }


/* --- Validation des champs --- */
.field-error input, .field-error textarea, .field-error .cs-trigger, .field-error .cb-input, .field-error .dp-trigger { border-color: var(--danger) !important; box-shadow: 0 0 0 4px var(--danger-soft) !important; }
.field-error.check, .field-error .choice-box, fieldset.field-error { border-color: var(--danger); color: var(--danger); }
.removing { opacity: 0; transform: scale(.98); transition: opacity .25s, transform .25s; }

/* --- Modification en ligne --- */
.inline-edit { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.inline-edit textarea { min-height: 60px; }
.inline-edit-actions { display: flex; gap: 8px; justify-content: flex-end; }
.chat-msg.mine .inline-edit textarea { color: var(--text); }
.chat-msg .linklike { font-size: .72rem; margin-left: 6px; color: inherit; opacity: .85; }
dialog.modal-wide { max-width: 640px; }
.modal-ico-warn { background: var(--danger-soft); color: var(--danger); }
.report-choices { max-height: 46vh; overflow-y: auto; }
.report-choices .choice-box { padding-top: 9px; padding-bottom: 9px; }
.report-choices .choice-box::before { top: 11px; }
.popover-form { position: absolute; z-index: 30; right: 0; margin-top: 8px; width: min(340px, 90vw); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-lg); }
.inline-form { position: relative; }

/* --- Profil --- */
.profile-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 22px; }
.profile-cover { height: 150px; background: linear-gradient(120deg, #2b2bea, #7a3cf0 55%, #ef5b2b); position: relative; }
.profile-cover::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .1) 0 2px, transparent 2px 34px); }
.profile-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 0 24px; margin-top: -56px; position: relative; z-index: 1; flex-wrap: wrap; }
.profile-avatar .avatar { width: 112px; height: 112px; border: 5px solid var(--surface); box-shadow: var(--shadow); }
.profile-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-bottom: 6px; }
.profile-ident { padding: 12px 24px 22px; }
.profile-ident h1 { margin: 0 0 6px; }
.profile-meta { display: flex; gap: 6px 18px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; margin: 0 0 10px; }
.profile-meta span { display: inline-flex; align-items: center; gap: 6px; }
.profile-bio { margin: 0 0 10px; }
.profile-passes { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.stats-block { margin-bottom: 26px; }
.stat-tiles { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 14px; margin-bottom: 12px; }
.stat-tile { display: flex; flex-direction: column; gap: 2px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.stat-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 8px; }
.stat-num { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.stat-num small { font-size: .9rem; font-weight: 600; margin-left: 2px; color: var(--muted); }
.stat-label { color: var(--muted); font-size: .85rem; font-weight: 500; }
.stat-sub { font-size: .75rem; color: var(--muted); margin-top: 4px; }
.stat-hero { background: linear-gradient(135deg, #2b2bea, #7a3cf0); color: #fff; border: 0; }
.stat-hero .stat-ico { background: rgba(255, 255, 255, .2); color: #fff; }
.stat-hero .stat-num small, .stat-hero .stat-label, .stat-hero .stat-sub { color: rgba(255, 255, 255, .85); }
.stat-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.stat-row span { padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.stat-row b { color: var(--text); }
.top-parks h3 { margin-bottom: 12px; }
.top-parks h3 .icon { color: var(--star); }
.top-parks ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.top-parks li { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr auto; gap: 12px; align-items: center; }
.top-parks a { font-weight: 600; text-decoration: none; color: var(--text); }
.bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #2b2bea, #7a3cf0); transition: width .6s ease-out; }

/* --- Mes données --- */
.data-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.data-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; }
.data-tile b { font-size: 1.4rem; }
.data-tile span { font-size: .78rem; color: var(--muted); }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.privacy-grid .card { margin: 0; }
.privacy-grid .form + .form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.input-row { display: flex; gap: 8px; margin-top: 6px; }
.input-row input { margin: 0; }
.input-row input:disabled { background: var(--surface-2); color: var(--muted); }
.switch-row { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; padding: 6px 0; }
.switch-row input { position: absolute; opacity: 0; }
.switch { flex: none; width: 42px; height: 24px; border-radius: 99px; background: var(--line); position: relative; transition: background .15s; margin-top: 2px; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch-row input:checked + .switch { background: var(--brand); }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
.switch-row input:focus-visible + .switch { outline: 3px solid var(--brand); outline-offset: 2px; }
.switch-row input:disabled + .switch { opacity: .5; }
.retention-list { padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; }
.danger-zone details summary { list-style: none; }
.danger-zone details[open] summary { margin-bottom: 12px; }

@media (max-width: 1020px) {
  .stat-tiles { grid-template-columns: 1fr 1fr; }
  .stat-hero { grid-column: 1 / -1; }
  .data-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .data-tile { padding: 10px; }
  .data-tile span { overflow-wrap: anywhere; }
  .privacy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .profile-cover { height: 110px; }
  .profile-top { padding: 0 16px; margin-top: -48px; }
  .profile-avatar .avatar { width: 92px; height: 92px; }
  .profile-ident { padding: 10px 16px 18px; }
  .top-parks li { grid-template-columns: 1fr auto; }
  .top-parks .bar { grid-column: 1 / -1; grid-row: 2; }
  .popover-form { right: auto; left: 0; }
}


/* --- Photos de parcs --- */
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.has-photo::before, .has-photo::after { display: none !important; }
.park-art.has-photo, .vc-art.has-photo { background: #222; }

.vc-art.has-photo > :not(.cover-img), .panel-hero.has-photo > :not(.cover-img), .park-hero.has-photo > :not(.cover-img) { position: relative; z-index: 1; }
.panel-hero.has-photo .cover-img, .park-hero.has-photo .cover-img { filter: brightness(.55); }
.vc-art.has-photo { background-image: none; }
.park-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.park-gallery figure { margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.park-gallery img { width: 100%; height: 160px; object-fit: cover; display: block; }
.park-gallery figcaption { font-size: .72rem; color: var(--muted); padding: 6px 10px; }
.admin-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.admin-photos figure { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.admin-photos img { width: 100%; height: 110px; object-fit: cover; display: block; }
.admin-photos figcaption { font-size: .72rem; color: var(--muted); padding: 6px 8px 2px; }
.admin-photos .row-actions { padding: 6px 8px 8px; }
.photo-add { background: var(--surface-2); padding: 14px; border-radius: 14px; margin-bottom: 8px; }

/* --- Date : saisie au clavier + calendrier --- */
.dp-field { display: flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 0 6px 0 0; transition: border-color .15s, box-shadow .15s; }
.dp-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.dp-field .dp-input { border: 0; box-shadow: none !important; background: transparent; flex: 1; min-width: 0; margin: 0; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.dp-hint { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.dp-hint::first-letter { text-transform: uppercase; }
.dp-toggle { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--brand-soft); color: var(--brand); cursor: pointer; flex: none; }
.dp-toggle:hover, .dp.open .dp-toggle { background: var(--brand); color: var(--brand-ink); }
.dp-msg { margin: 4px 0 0; font-size: .82rem; color: var(--danger); }
.dp-msg:empty { display: none; }
.dp-invalid .dp-field, .field-error .dp-field { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.field-error .dp-field .dp-input { box-shadow: none !important; border-color: transparent !important; }

/* --- Fenêtre « Signaler » --- */
.modal-title { flex: 1; min-width: 0; }
.modal-title h2 { margin: 0; font-size: 1.2rem; }
.report-steps { margin: 2px 0 0; }
.report-form[data-step="1"] [data-step-label="2"], .report-form[data-step="2"] [data-step-label="1"] { display: none; }
.report-form[data-step="1"] [data-step-pane="2"], .report-form[data-step="2"] [data-step-pane="1"] { display: none; }
.report-progress { height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 12px 0 14px; }
.report-progress span { display: block; height: 100%; width: 50%; background: var(--danger); border-radius: 99px; transition: width .25s ease; }
.report-form[data-step="2"] .report-progress span { width: 100%; }
.report-step { display: flex; flex-direction: column; gap: 12px; animation: fadein .18s ease-out; }
.report-q { margin: 0; font-weight: 700; }
.report-group { margin: 6px 0 0; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.report-choices { max-height: 52vh; overflow-y: auto; gap: 6px; }
.choice-row { flex-direction: row !important; align-items: center; justify-content: space-between; }
.choice-row b { font-weight: 600; font-size: .92rem; }
.choice-row .icon { color: var(--muted); flex: none; }
.report-choices .choice-box { padding-left: 14px; }
.report-choices .choice-box::before { display: none; }
.report-choices .choice:hover .choice-box, .report-choices .choice input:checked + .choice-box { border-color: var(--danger); background: var(--danger-soft); }
.report-chosen { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--danger-soft); }
.report-chosen > span { display: flex; flex-direction: column; }
.report-form:not(.is-illegal) [data-illegal-only], .report-form.is-illegal [data-legal-only] { display: none; }
.report-sent { position: relative; text-align: center; padding: 30px 22px 22px; }
.report-sent h2 { margin: 12px 0 6px; font-size: 1.3rem; }
.report-sent > p { margin: 0 0 16px; color: var(--muted); }
.report-sent-close { position: absolute; top: 12px; right: 12px; }
.report-sent-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.report-next { list-style: none; margin: 0 0 18px; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.report-next li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.report-next .icon { color: var(--brand); flex: none; margin-top: 1px; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* --- Notifications : suppression --- */
.notif-item { display: flex; align-items: center; gap: 2px; transition: opacity .2s, transform .2s; }
.notif-item .pop-row { flex: 1; min-width: 0; }
.notif-del { margin: 0; flex: none; }
.notif-del .iconbtn { color: var(--muted); opacity: .55; }
.notif-item:hover .notif-del .iconbtn, .notif-del .iconbtn:focus-visible { opacity: 1; }
.notif-del .iconbtn:hover { color: var(--danger); }
.pop-head form { margin: 0; }
.pop-head .linklike { text-decoration: none; color: var(--muted); font-weight: 600; }
.pop-head .linklike:hover { color: var(--danger); }
.removing { opacity: 0; transform: translateX(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
@media (hover: none) { .notif-del .iconbtn { opacity: 1; } }

/* --- Amis --- */
.friend-box { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.friend-box form { margin: 0; }
.member-results { margin-top: 10px; }
.member-results:empty { display: none; }
.member-row { padding: 10px 0; }
.member-link { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); text-decoration: none; min-width: 0; }
.member-link:hover { color: var(--brand); }

/* --- Badges --- */
.ubadge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 99px; font-size: .78rem; font-weight: 700; line-height: 1.2; vertical-align: middle; background: var(--brand-soft); color: var(--brand); }
.ubadge-ok { background: var(--ok-soft); color: var(--ok); }
.ubadge-warn { background: var(--warn-soft); color: var(--warn); }
.ubadge-danger { background: var(--danger-soft); color: var(--danger); }
.ubadge-pink { background: #ffe6f4; color: #c2187a; }
.ubadge-gold { background: linear-gradient(135deg, #fff1c2, #ffd76a); color: #7a5200; }
.ubadge-dark { background: #1d1d35; color: #fff; }
@media (prefers-color-scheme: dark) { .ubadge-pink { background: #3d1530; color: #ff8fd0; } .ubadge-dark { background: #e9e9ff; color: #16162b; } }
.profile-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.badge-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-opt { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 99px; cursor: pointer; font-weight: 400; }
.badge-opt:has(input:checked) { border-color: var(--brand); background: var(--surface-2); }
.badge-opt input { margin: 0; }
.badge-admin summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; }
.badge-admin[open] summary { margin-bottom: 12px; }

/* --- Logo et bannière des parcs --- */
.park-initials.has-logo, .park-hero-initials.has-logo { padding: 5px; overflow: hidden; }
.park-initials.has-logo img, .park-hero-initials.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.park-art.has-photo .park-initials { display: grid; }
.park-visuals { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 8px; }
.visual-slot { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; align-items: flex-start; }
.visual-preview { position: relative; flex: none; display: grid; place-items: center; border-radius: 12px; overflow: hidden; color: #fff; }
.visual-logo .visual-preview { width: 72px; height: 72px; background: #fff; border: 1px solid var(--line); }
.visual-logo .visual-preview img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.visual-logo .visual-preview .park-initials { position: static; box-shadow: none; }
.visual-banner .visual-preview { width: 128px; height: 72px; }
.visual-banner .visual-preview img { width: 100%; height: 100%; object-fit: cover; }
.visual-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.visual-info p, .visual-info form { margin: 0; }
.visual-upload { width: 100%; }
.visual-upload summary { list-style: none; display: inline-flex; cursor: pointer; }
.visual-upload summary::-webkit-details-marker { display: none; }
.visual-upload[open] .form { margin-top: 10px; }
.export-row .row-actions { align-items: flex-start; }

/* --- Recherche globale (fenêtre « loupe ») --- */
@media (min-width: 761px) { .popover-search { width: 440px; } }
.search-head { gap: 6px; padding: 10px 10px 10px 12px; }
.search-field { position: relative; flex: 1; margin: 0; }
.search-field input { min-height: 42px; padding: 9px 12px 9px 40px; border-radius: 12px; background: var(--surface-2); border-color: transparent; }
.search-field input:focus { background: var(--surface); }
.search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); display: grid; pointer-events: none; }
.search-empty { padding: 40px 16px; }
.popover-search .pop-row:focus-visible { outline: none; background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.popover-search .pop-row-main .strong { font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.search-park { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; overflow: hidden; }
.search-park-logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .95); color: #2b2bea; font-weight: 800; font-size: .72rem; overflow: hidden; }
.search-park-logo.has-logo { padding: 3px; }
.search-park-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* --- Maintenance et bêta --- */
.banner-danger { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.banner-beta { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.banner a { color: inherit; }
.brand { position: relative; }
.beta-tag { position: relative; top: -10px; margin-left: 4px; padding: 2px 6px; border-radius: 6px; background: var(--brand); color: var(--brand-ink); font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: top; }
.pill-beta { display: inline-block; margin-bottom: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.input-locked { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.gate-card { padding: 40px 28px; }
.gate-card h1 { margin: 14px 0 8px; }
.gate-ico { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 22px; background: var(--brand-soft); color: var(--brand); }
.gate-ico-warn { background: var(--warn-soft); color: var(--warn); }
.gate-message { padding: 12px 16px; border-radius: 14px; background: var(--surface-2); text-align: left; }
.mode-card { border: 1.5px solid transparent; }
.mode-card.mode-on { border-color: var(--brand); }
.mode-card.mode-warn { border-color: var(--danger); }
.mode-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.mode-head > div { flex: 1; }
.mode-head h2 { margin: 0 0 4px; }
.mode-head p { margin: 0; }
.mode-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); flex: none; }
.mode-warn .mode-ico { background: var(--danger-soft); color: var(--danger); }
.nav-pill { margin-left: auto; font-size: .65rem; padding: 2px 6px; }
.invitations-table { margin-top: 16px; }

/* --- Assistant d'installation --- */
.setup-head { text-align: center; margin: 8px 0 20px; }
.setup-head h1 { margin: 12px 0 4px; }
.setup-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; counter-reset: none; }
.setup-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); text-align: center; }
.setup-steps li span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-weight: 800; }
.setup-steps li.current { color: var(--brand); }
.setup-steps li.current span { background: var(--brand); color: var(--brand-ink); }
.setup-steps li.done span { background: var(--ok-soft); color: var(--ok); }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none; font-weight: 800; }
.check-list .ok .check-ico { background: var(--ok-soft); color: var(--ok); }
.check-list .ko .check-ico { background: var(--danger-soft); color: var(--danger); }
.check-list .opt .check-ico { background: var(--surface-2); color: var(--muted); }
.mail-help { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.mail-help summary { cursor: pointer; font-weight: 700; }
.mail-help ul { margin: 6px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.mail-help code, .card code { font-size: .85em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

/* --- Mises à jour --- */
.version-tag { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); }
.update-progress { border: 1.5px solid var(--brand); }
.update-bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 12px 0; }
.update-bar span { display: block; height: 100%; width: 40%; border-radius: 99px; background: var(--brand); animation: update-slide 1.4s ease-in-out infinite; }
@keyframes update-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.update-row .body { margin: 4px 0 0; white-space: pre-line; }

/* --- Boutons-icônes en <button> (fermeture des fenêtres…) : même rendu que les liens --- */
button.iconbtn { border: 0; background: transparent; font: inherit; cursor: pointer; padding: 0; flex: none; }
.modal-head .iconbtn, .report-sent-close { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); color: var(--muted); transition: background .15s, color .15s; }
.modal-head .iconbtn:hover, .report-sent-close:hover { background: var(--line); color: var(--text); }
.modal-head .iconbtn:focus-visible, .report-sent-close:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* --- Fenêtres sur mobile : défilement vertical uniquement, rien ne dépasse --- */
body:has(dialog[open]) { overflow: hidden; }
dialog.modal { overflow-x: hidden; }
.modal-card { overflow-x: hidden; overscroll-behavior: contain; touch-action: pan-y; }
.modal-card input, .modal-card select, .modal-card textarea, .modal-card .cs, .modal-card .cb, .modal-card .dp { max-width: 100%; }
.modal-card .dp-pop { max-width: 100%; }

/* --- Commentaires (page et fenêtre) --- */
.comments-list { display: flex; flex-direction: column; }
.comments-empty { margin: 8px 0 12px; }
.comments-list > .comment:first-child { border-top: 0; }
.comment-form { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; }
.comment-form textarea { flex: 1; margin: 0; min-height: 44px; height: 44px; max-height: 200px; resize: none; border-radius: 22px; background: var(--surface-2); border-color: transparent; padding: 10px 16px; line-height: 1.45; overflow-y: hidden; }
.comment-form textarea:focus { background: var(--surface); }
.comment-send { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
dialog.modal-comments { max-width: 560px; }
.comments-modal { display: flex; flex-direction: column; max-height: min(720px, calc(100dvh - 32px)); overflow: hidden; }
.comments-modal .modal-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.comments-modal .comments-list { flex: 1; min-height: 80px; overflow-y: auto; overscroll-behavior: contain; margin: 0 -22px; padding: 0 22px; }
.comments-modal .comment-form { padding-top: 12px; border-top: 1px solid var(--line); }
.comment.removing { opacity: 0; transition: opacity .25s; }
@media (max-width: 760px) {
  .comments-modal { max-height: 88dvh; }
  .comments-modal .comments-list { margin: 0 -16px; padding: 0 16px; }
}

/* --- Visionneuse de photos --- */
.photos a[data-lightbox] { cursor: zoom-in; }
dialog.lightbox { padding: 0; border: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(6, 6, 20, .82); color: #fff; overflow: hidden; touch-action: pan-y; }
dialog.lightbox::backdrop { background: rgba(6, 6, 20, .4); backdrop-filter: blur(6px); }
dialog.lightbox[open] { animation: lb-in .18s ease-out; }
@keyframes lb-in { from { opacity: 0; } }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 56px 16px calc(48px + env(safe-area-inset-bottom)); }
.lb-img { width: auto; height: auto; max-width: min(880px, calc(100vw - 160px)); max-height: min(600px, calc(100dvh - 180px)); object-fit: contain; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); background: #000; user-select: none; -webkit-user-drag: none; }
@media (max-width: 760px) { .lb-img { max-width: calc(100vw - 32px); max-height: 70dvh; } }
.lb-close, .lb-nav { position: absolute; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background .15s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .26); }
.lb-close:focus-visible, .lb-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-close { top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; }
.lb-nav { top: 50%; width: 48px; height: 48px; margin-top: -24px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-count { position: absolute; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom)); text-align: center; font-size: .9rem; font-weight: 600; opacity: .85; }
@media (max-width: 760px) { .lb-nav { display: none; } }

/* --- Parcs (administration) : import RCDB, filtres, pagination --- */
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; border: 0; padding: 0; margin: 4px 0 12px; }
.country-grid legend { padding: 0 0 6px; }
.card-inner { padding: 14px 16px; border-radius: 16px; margin-top: 12px; }
.park-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.park-filters label { margin: 0; flex: 0 1 200px; }
.park-filters .park-filter-q { flex: 1 1 260px; }
.park-filters input, .park-filters select, .park-filters .cs { margin-top: 0; }
.park-admin summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.park-admin-logo { width: 28px; height: 28px; border-radius: 8px; object-fit: contain; background: var(--surface-2); }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 18px 0; }

/* --- Champs d'heure (visites) : jamais plus larges que leur colonne, téléphone compris --- */
.row-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.row-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
input[type="time"] { min-width: 0; max-width: 100%; display: block; -webkit-appearance: none; appearance: none; }
input[type="time"]::-webkit-date-and-time-value { text-align: left; }
.drawer, .drawer-content, .panel-body { overflow-x: hidden; }
.drawer-content { touch-action: pan-y; }
@media (max-width: 760px) {
  .row-2, .row-3 { grid-template-columns: minmax(0, 1fr); }
}

/* --- Coaster count --- */
.coaster-hero { display: flex; align-items: center; gap: 18px; margin: 4px 0 18px; flex-wrap: wrap; }
.coaster-hero h1 { margin: 0; }
.coaster-hero p { margin: 4px 0 0; }
.coaster-hero > div:nth-child(2) { flex: 1; min-width: 200px; }
.coaster-total { display: grid; place-items: center; min-width: 96px; height: 96px; padding: 0 14px; border-radius: 28px; background: linear-gradient(135deg, var(--brand), #7a3cf0); color: #fff; line-height: 1.1; text-align: center; box-shadow: var(--shadow-lg); }
.coaster-total b { font-size: 2.2rem; }
.coaster-total span { font-size: .78rem; font-weight: 600; opacity: .9; }
.coaster-search input { margin: 6px 0 4px; }
.coaster-hint { margin: 10px 0; }
.coaster-results:not(:empty) { margin: 6px 0 12px; }
.coaster-park + .coaster-park { margin-top: 14px; }
.coaster-park-name { font-size: .95rem; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.coaster-park-name a { color: var(--text); text-decoration: none; }
.coaster-park-name a:hover { color: var(--brand); }
.coaster-list { display: flex; flex-wrap: wrap; gap: 8px; }
.coaster-form { margin: 0; }
.coaster-toggle { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 14px 7px 8px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.coaster-toggle:hover { border-color: var(--brand-line); }
.coaster-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.coaster-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coaster-check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); color: transparent; flex: none; transition: inherit; }
.coaster-toggle.is-on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.coaster-toggle.is-on .coaster-check { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.coaster-toggle:disabled { opacity: .6; cursor: wait; }
.coaster-head { margin-bottom: 4px; }
.coaster-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.coaster-profile { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 14px; align-items: start; }
.top-coasters ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.coaster-details summary { cursor: pointer; font-weight: 700; }
.coaster-details[open] summary { margin-bottom: 12px; }
@media (max-width: 760px) { .coaster-profile { grid-template-columns: minmax(0, 1fr); } .coaster-total { min-width: 80px; height: 80px; } }

/* --- Top coasters --- */
.top-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.top-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); cursor: grab; }
.top-row.dragging { opacity: .5; border-style: dashed; }
.top-rank { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-weight: 800; flex: none; }
.top-row:nth-child(1) .top-rank { background: #f7c948; color: #4a3500; }
.top-row:nth-child(2) .top-rank { background: #d9dde6; color: #2f3542; }
.top-row:nth-child(3) .top-rank { background: #e7a46b; color: #4a2400; }
.top-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { display: flex; gap: 2px; }
.top-actions form { margin: 0; }

/* --- Pages légales : éditeur (administration) et page publique --- */
.legal-admin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.legal-admin-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.legal-admin-list li:first-child { border-top: 0; }
.legal-admin-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); flex: none; }
.legal-admin-main { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.text-warn { color: var(--warn); font-weight: 600; }
.legal-editor { display: flex; flex-direction: column; gap: 12px; }
.legal-toolbar { display: flex; flex-wrap: wrap; gap: 6px; position: sticky; top: 72px; z-index: 5; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.legal-toolbar .chip { cursor: pointer; }
.legal-panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.legal-source textarea { margin: 0; min-height: 60vh; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.55; resize: vertical; }
.legal-preview-wrap { position: sticky; top: 140px; }
.legal-preview-label { margin: 0 0 6px; }
.legal-preview { max-height: 70vh; overflow-y: auto; padding: 4px 18px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.legal-actions { display: flex; gap: 10px; }
.legal-reset { margin-top: 12px; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
.legal-updated { margin-top: 2em; }
@media (max-width: 960px) { .legal-panes { grid-template-columns: minmax(0, 1fr); } .legal-preview-wrap { position: static; } .legal-source textarea { min-height: 40vh; } }

/* --- Recadrage de la photo de profil --- */
dialog.modal-crop { max-width: 420px; }
.crop-card { display: flex; flex-direction: column; gap: 14px; }
.crop-view { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 18px; background: #111; cursor: grab; touch-action: none; user-select: none; }
.crop-view.grabbing { cursor: grabbing; }
.crop-view:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.crop-img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-mask { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .5); pointer-events: none; }
.crop-zoom-row { display: flex; align-items: center; gap: 12px; margin: 0; }
.crop-zoom { flex: 1; min-height: 0; padding: 0; border: 0; accent-color: var(--brand); background: transparent; }

/* --- Boutons discrets (remplacent les liens soulignés servant d'actions) --- */
.btn-quiet, .back, .link-strong { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 99px; background: var(--surface-2); color: var(--text); font: inherit; font-size: .85rem; font-weight: 600; line-height: 1.3; text-decoration: none; cursor: pointer; vertical-align: middle; transition: background .15s, color .15s; }
.btn-quiet:hover, .back:hover, .link-strong:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.btn-quiet:focus-visible, .back:focus-visible, .link-strong:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-quiet .icon { flex: none; }
.btn-quiet-xs { padding: 2px 9px; font-size: .74rem; font-weight: 600; }
.btn-quiet-danger { color: var(--danger); }
.btn-quiet-danger:hover { background: var(--danger-soft); color: var(--danger); }
.quiet-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.banner .btn-quiet { margin-left: 8px; background: rgba(255, 255, 255, .22); color: inherit; }
.banner .btn-quiet:hover { background: rgba(255, 255, 255, .35); color: inherit; }
.msg-me .msg-meta .btn-quiet { background: rgba(255, 255, 255, .2); color: inherit; opacity: 1; }
.stat-link { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.stat-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-link .stat-sub { display: inline-flex; align-items: center; gap: 4px; }
.stat-hero.stat-link, .stat-hero.stat-link .stat-num { color: #fff; }
.stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.stats-cards .card { margin: 0; }
.top-coasters .btn-quiet { margin-top: 10px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.top-coasters ol { counter-reset: top; padding: 0; }
.top-coasters li { display: flex; align-items: baseline; gap: 8px; grid-template-columns: none; }
.top-coasters li::before { counter-increment: top; content: counter(top); display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-size: .78rem; font-weight: 800; flex: none; align-self: center; }
.top-coasters li:nth-child(1)::before { background: #f7c948; color: #4a3500; }
.top-coasters li:nth-child(2)::before { background: #d9dde6; color: #2f3542; }
.top-coasters li:nth-child(3)::before { background: #e7a46b; color: #4a2400; }
.danger-zone { margin-top: 14px; }
.danger-zone > summary { list-style: none; }
.danger-zone > summary::-webkit-details-marker { display: none; }
.danger-zone[open] > .form { margin-top: 12px; padding: 14px; border: 1.5px solid var(--danger-soft); border-radius: 14px; }
.park-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.park-admin-actions form { margin: 0; }
/* Statistiques du profil : coaster count en grand, puis trois compteurs sur une ligne. */
.stat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-tiles .stat-hero { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .stat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat-tiles .stat-tile:not(.stat-hero) { padding: 12px 10px; }
  .stat-tiles .stat-tile:not(.stat-hero) .stat-num { font-size: 1.5rem; }
  .stat-tiles .stat-tile:not(.stat-hero) .stat-label { font-size: .75rem; }
  .stat-tiles .stat-tile:not(.stat-hero) .stat-ico { display: none; }
}
/* Fiche parc : coasters dans la colonne de droite. */
.park-coasters .coaster-head h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.coaster-list-col { flex-direction: column; flex-wrap: nowrap; align-items: stretch; margin: 12px 0; }
.coaster-list-col .coaster-toggle { width: 100%; }
/* Sur tablette et téléphone, les coasters du parc passent avant les publications. */
@media (max-width: 1020px) {
  .park-layout > .side { order: -1; }
  .park-layout .coaster-list-col { flex-direction: row; flex-wrap: wrap; }
  .park-layout .coaster-list-col .coaster-toggle { width: auto; }
}
/* Coaster count : liste à plat, nom du coaster et parc en petit dessous, filtres. */
.coaster-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 14px; }
.coaster-filters label { margin: 0; flex: 0 1 220px; }
.coaster-filters .coaster-filter-q { flex: 1 1 240px; }
.coaster-filters input, .coaster-filters select, .coaster-filters .cs { margin-top: 0; }
.coaster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.coaster-item { min-width: 0; }
.coaster-item .coaster-form, .coaster-item .coaster-toggle { width: 100%; }
.coaster-item .coaster-toggle { border-radius: 16px; padding: 9px 12px 9px 10px; text-align: left; }
.coaster-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.coaster-park-sub { font-size: .74rem; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coaster-toggle.is-on .coaster-park-sub { color: var(--brand); opacity: .8; }
.coaster-filter-empty { margin: 10px 0; }
@media (max-width: 760px) { .coaster-grid { grid-template-columns: minmax(0, 1fr); } }
.cert-trust p { margin: 0 0 8px; }
.cert-fp { word-break: break-all; font-size: .78em; }
/* Fiche membre : annulation d'une sanction. */
.decision-row { flex-wrap: wrap; gap: 8px; }
.decision-cancel > summary { list-style: none; }
.decision-cancel > summary::-webkit-details-marker { display: none; }
.decision-cancel[open] { flex-basis: 100%; }
.decision-cancel[open] > .form { margin-top: 10px; padding: 12px; border: 1.5px solid var(--danger-soft); border-radius: 14px; }

/* --- E-mails (administration) : éditeur et aperçu réel dans un cadre --- */
.emails-tabs { margin-bottom: 16px; }
.email-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.email-editor > .card { margin: 0; }
.email-preview-wrap { position: sticky; top: 84px; }
.email-preview { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 18px; background: #f4f5fb; }
[data-audience-member][hidden] { display: none; }
@media (max-width: 1100px) { .email-editor { grid-template-columns: minmax(0, 1fr); } .email-preview-wrap { position: static; } .email-preview { height: 520px; } }
/* Profil : notifications push. */
.push-status { font-weight: 600; margin: 4px 0 8px; }
.push-status.is-on { color: var(--ok); }
.push-prefs { margin-top: 10px; gap: 8px; }
.push-devices { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.push-devices li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); }
.push-devices form { margin: 0; }

/* --- Présence, compte officiel, profil épuré --- */
.presence { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); font-weight: 500; }
.presence-dot { width: 9px; height: 9px; border-radius: 50%; background: #b6b8c8; flex: none; }
.presence.is-online { color: var(--ok); font-weight: 600; }
.presence.is-online .presence-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.profile-presence { margin: 0 0 6px; }
.badge-official { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 5px; border-radius: 6px; background: linear-gradient(135deg, #2b2bea, #7a3cf0); color: #fff; font-size: .68rem; font-weight: 800; vertical-align: middle; }
.official-line { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; color: var(--brand); font-weight: 600; font-size: .9rem; }
.profile-card { position: relative; }
.profile-gear { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--text); box-shadow: 0 4px 14px rgba(10, 10, 40, .18); transition: transform .15s, background .15s; }
.profile-gear:hover { background: #fff; transform: rotate(30deg); }
.profile-gear:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.follow-form { margin: 0; }

/* --- À propos (remplace le pied de page sur téléphone) --- */
.about-hero { text-align: center; margin: 10px 0 18px; }
.about-hero .logo { font-size: 1.8rem; }
.about-hero p { margin: 6px 0 0; }
.about-list { display: flex; flex-direction: column; padding-bottom: 8px; }
.about-list h2 { margin-bottom: 6px; }
.about-list a { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500; }
.about-list a:first-of-type { border-top: 0; }
.about-list a span { flex: 1; }
.about-list a > .icon:first-child { color: var(--brand); }
.about-list a > .icon:last-child { color: var(--muted); }
.about-list a:hover span { color: var(--brand); }
/* Téléphone, membre connecté (barre d'onglets) : pas de pied de page ; tout est dans « À propos ». */
@media (max-width: 760px) { body.has-tabbar .footer { display: none; } }

/* --- FAQ --- */
.faq { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.faq-item { margin: 0; padding: 0; overflow: hidden; }
.faq-item summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { flex: 1; }
.faq-item summary .icon { color: var(--muted); transition: transform .2s; flex: none; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item summary:hover span { color: var(--brand); }
.faq-answer { padding: 0 18px 16px; color: var(--text); }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-search input { margin: 0 0 14px; }
.faq-admin-row { display: flex; gap: 10px; align-items: flex-start; }
.faq-admin-row .faq-admin-main { flex: 1; min-width: 0; }
.faq-admin-row .top-actions { flex: none; }
.park-edit-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; align-items: end; }
.rcdb-coords { margin-top: 10px; }

/* --- Parcs : recherche, « autour de moi », filtres (panneau ; feuille en bas sur téléphone) --- */
.parks-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 16px; position: relative; }
.parks-search { position: relative; flex: 1 1 240px; margin: 0; }
.parks-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.parks-search input { margin: 0; padding-left: 42px; border-radius: 99px; }
.parks-near.is-on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.parks-filters { position: relative; }
.parks-filters > summary { list-style: none; cursor: pointer; }
.parks-filters > summary::-webkit-details-marker { display: none; }
.parks-filters[data-active] > summary { background: var(--brand-soft); color: var(--brand); }
.parks-filter-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(340px, 90vw); display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
.parks-filter-panel label { margin: 0; }
.parks-filter-panel .actions { display: flex; justify-content: space-between; align-items: center; }
.park-distance { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--brand); }
.parks-geo-msg { margin: -8px 0 14px; }
@media (max-width: 760px) {
  .parks-filter-panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; border-radius: 22px 22px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); z-index: 90; box-shadow: 0 -10px 40px rgba(10, 10, 40, .25); }
  .parks-filters[open]::before { content: ""; position: fixed; inset: 0; background: rgba(10, 10, 40, .4); z-index: 89; }
}

/* --- Amis : liste moderne (photo, présence, actions) --- */
.friends-search { margin: 0 0 8px; }
.friends-search .parks-search { display: block; }
.friends-block { margin: 18px 0; }
.friends-title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 10px; }
.friends-filter input { margin: 0 0 10px; border-radius: 99px; }
.people-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
/* Pas d'overflow: hidden (il cachait le menu « … ») : les coins sont arrondis sur les lignes. */
.people-list > .person:first-child { border-radius: 19px 19px 0 0; }
.people-list > .person:last-child { border-radius: 0 0 19px 19px; }
.people-list > .person:only-child { border-radius: 19px; }
.person:has(details[open]) { position: relative; z-index: 5; }
.people-list > .empty-soft { margin: 12px; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); transition: background .15s; }
.person:first-child { border-top: 0; }
.person:hover { background: var(--surface-2); }
.person-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; }
.person-avatar { position: relative; flex: none; }
.online-dot { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; border: 2.5px solid var(--surface); }
.person-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.person-text b { display: inline-flex; align-items: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.person-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.person-actions form { margin: 0; }
.person-btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; background: var(--surface-2); color: var(--text); border: 0; cursor: pointer; display: grid; place-items: center; list-style: none; line-height: 0; }
.person-btn .icon { display: block; }
.person-btn::-webkit-details-marker { display: none; }
.person-btn:hover { background: var(--brand-soft); color: var(--brand); }
@media (max-width: 760px) { .person { padding: 10px 12px; } .person-main { gap: 12px; } }

/* --- Visite partagée (invitation, publication) --- */
.shared-visit-hero { align-items: center; }
.visit-date-big { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: rgba(255, 255, 255, .95); color: var(--brand); line-height: 1; flex: none; z-index: 1; }
.visit-date-big b { font-size: 1.7rem; }
.visit-date-big span { font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.shared-visit .person { padding: 0 0 12px; border: 0; }
.shared-visit .person:hover { background: none; }

/* --- Messagerie : présence, invitation à une visite --- */
.pop-peer-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.pop-peer-text .presence { font-size: .72rem; }
.pop-head form { margin: 0; }
.visit-invite { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--brand-line); color: var(--text); text-decoration: none; max-width: 280px; }
.chat-msg.mine .visit-invite { background: rgba(255, 255, 255, .95); }
.visit-invite:hover { border-color: var(--brand); }
.visit-invite-date { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); line-height: 1; flex: none; }
.visit-invite-date b { font-size: 1.05rem; }
.visit-invite-date span { font-size: .62rem; font-weight: 700; text-transform: uppercase; }
.visit-invite-text { display: flex; flex-direction: column; min-width: 0; font-size: .85rem; }
.visit-invite-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visit-invite-text span { color: var(--brand); font-weight: 600; font-size: .78rem; }
.dm-invite-btn { flex: none; color: var(--brand); }
.dm-visit-picker { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface-2); max-height: 220px; overflow-y: auto; }
.dm-visit-picker button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; font: inherit; }
.dm-visit-picker button:hover { border-color: var(--brand); }

/* ---------------------------------------------------------------- Commentaires : fils de réponses */
.comment { display: flex; gap: 10px; align-items: flex-start; }
.comment-avatar { flex: none; line-height: 0; }
.comment-main { flex: 1; min-width: 0; }
.comment-main .body { overflow-wrap: anywhere; white-space: pre-line; }
.comment-reply { border-top: 0; padding: 8px 0 0; }
.replies { margin-top: 6px; }
.replies > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.replies > summary::-webkit-details-marker { display: none; }
.replies-list { margin-top: 2px; padding-left: 12px; border-left: 2px solid var(--line); }
.reply-form { margin-top: 8px; }
.reply-form textarea { min-height: 38px; height: 38px; padding: 8px 14px; }
.reply-form .comment-send { width: 38px; height: 38px; }
a.mention { color: var(--brand, var(--accent)); font-weight: 600; text-decoration: none; }
a.mention:hover { text-decoration: underline; }
@media (max-width: 560px) { .replies-list { padding-left: 8px; } }

/* ---------------------------------------------------------------- Composer : icônes et fenêtres */
.composer { position: relative; }
.composer-sheet-head { display: none; }
.composer-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0 52px; }
.composer-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; background: var(--brand-soft); color: var(--brand); border-radius: 99px; padding: 4px 4px 4px 12px; font-size: .82rem; font-weight: 600; }
.composer-chip button { border: 0; background: transparent; color: inherit; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; }
.composer-chip button:hover { background: rgba(0, 0, 0, .06); }
.composer-tools { display: flex; align-items: center; gap: 4px; margin: 10px 0 0 52px; flex-wrap: wrap; }
.composer-tool { display: inline-flex; align-items: center; gap: 6px; height: 38px; min-width: 38px; justify-content: center; padding: 0 8px; border: 0; border-radius: 99px; background: transparent; color: var(--brand); cursor: pointer; font: inherit; font-size: .85rem; font-weight: 600; position: relative; margin: 0; }
.composer-tool:hover, .composer-tool[aria-expanded="true"] { background: var(--brand-soft); }
.composer-tool:focus-within { outline: 2px solid var(--brand); outline-offset: 1px; }
.composer-tool.is-set::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--surface); }
.composer-vis { margin-left: auto; background: var(--surface-2); color: var(--text); padding: 0 12px; }
.composer-note { margin: 8px 0 0 52px; font-size: .75rem; }
.composer-pop { position: absolute; z-index: 30; left: 14px; right: 14px; top: calc(100% - 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; max-height: min(460px, 70vh); overflow-y: auto; animation: pop .15s ease-out; }
.composer-pop[hidden] { display: none; }
.composer-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.composer-pop-head b { display: inline-flex; align-items: center; gap: 8px; }
.composer-pop-head .iconbtn { width: 34px; height: 34px; }
.composer-pop-foot { display: flex; justify-content: flex-end; }
.composer-pop .small { margin: 0; }
.composer-pop .choice-list { display: flex; flex-direction: column; gap: 8px; }
.composer-visit-list { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.visit-pick { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; cursor: pointer; font: inherit; color: var(--text); }
.visit-pick[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.visit-pick-date { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; line-height: 1; flex: none; }
.visit-pick-date b { font-size: 1.05rem; }
.visit-pick-date span { font-size: .62rem; font-weight: 700; text-transform: uppercase; }
.visit-pick-text { display: flex; flex-direction: column; min-width: 0; }
.visit-pick-text small { color: var(--muted); }

/* Suggestions de mentions */
.mention-box { position: fixed; z-index: 200; list-style: none; margin: 0; padding: 6px; min-width: 220px; max-width: calc(100vw - 16px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.mention-box li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; cursor: pointer; }
.mention-box li[aria-selected="true"], .mention-box li:hover { background: var(--brand-soft); }
.mention-box li span { display: flex; flex-direction: column; line-height: 1.2; }
.mention-box small { color: var(--muted); font-size: .75rem; }

/* Visite jointe à une publication */
.post-visit { display: flex; align-items: center; gap: 14px; margin: 10px 0 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); text-decoration: none; }
.post-visit:hover { border-color: var(--brand-line, var(--brand)); }
.post-visit .visit-date-big { width: 56px; height: 56px; border-radius: 14px; background: var(--brand); color: #fff; }
.post-visit .visit-date-big b { font-size: 1.3rem; }
.post-visit-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.post-visit-text small { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-weight: 700; font-size: .75rem; text-transform: uppercase; }
.post-visit > .icon { color: var(--muted); flex: none; }

/* Mobile : composer en plein écran (façon X / Twitter) */
@media (max-width: 720px) {
  .composer-chips, .composer-tools, .composer-note { margin-left: 0; }
  .composer:not(.composer-full) .composer-tools, .composer:not(.composer-full) .composer-note, .composer:not(.composer-full) .composer-chips { display: none; }
  .composer.composer-full { position: fixed; inset: 0; z-index: 150; margin: 0; border-radius: 0; border: 0; display: flex; flex-direction: column; padding: calc(10px + env(safe-area-inset-top)) 16px calc(12px + env(safe-area-inset-bottom)); overflow-y: auto; animation: pop .18s ease-out; }
  .composer-full .composer-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
  .composer-full .composer-row { align-items: flex-start; flex: 1; }
  .composer-full .composer-row > .avatar { display: inline-block; }
  .composer-full .composer-row textarea, .composer-full .composer-row textarea:focus { border: 0; box-shadow: none; outline: 0; border-radius: 0; background: transparent; padding: 6px 0; min-height: 160px; max-height: none; font-size: 1.1rem; }
  .composer-full .composer-send { display: none; }
  .composer-full .composer-tools { order: 3; border-top: 1px solid var(--line); padding-top: 10px; }
  .composer-full .composer-chips { order: 2; }
  .composer-full .composer-note { order: 4; }
  .composer-full .composer-pop { position: fixed; left: 0; right: 0; top: auto; bottom: 0; border-radius: 22px 22px 0 0; max-height: 75dvh; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  html.sheet-open, html.sheet-open body { overflow: hidden; }
  html.sheet-open .tabbar { display: none; }
}

/* ---------------------------------------------------------------- Programme : choix du type par icônes */
.kind-picker { border: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.kind-picker legend { padding: 0 0 8px; font-weight: 600; font-size: .9rem; }
.kind-opt { position: relative; cursor: pointer; margin: 0; }
.kind-opt input { position: absolute; opacity: 0; }
.kind-opt span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1.5px solid var(--line); border-radius: 14px; text-align: center; transition: border-color .15s, background .15s; }
.kind-opt b { font-size: .8rem; font-weight: 600; }
.kind-opt .icon { color: var(--brand); }
.kind-opt:hover span { border-color: var(--brand-line); }
.kind-opt input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.kind-opt input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.kind-config { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; animation: pop .15s ease-out; }
.kind-config[hidden] { display: none; }

/* ---------------------------------------------------------------- Chargement global */
.top-loader { position: fixed; z-index: 400; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.top-loader span { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, transparent, var(--brand), var(--brand-strong)); border-radius: 0 3px 3px 0; transform: translateX(-100%); }
.top-loader.on { opacity: 1; }
.top-loader.on span { animation: top-loader 1.1s ease-in-out infinite; }
@keyframes top-loader { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.is-loading { position: relative; pointer-events: none; }
.btn.is-loading, button.is-loading { color: transparent !important; }
.btn.is-loading > *, button.is-loading > * { visibility: hidden; }
.btn.is-loading::after, button.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--brand-ink, #fff) var(--brand-ink, #fff) var(--brand-ink, #fff) transparent; animation: spin .7s linear infinite; }
.btn-secondary.is-loading::after, .btn-outline.is-loading::after, .btn-quiet.is-loading::after, .iconbtn.is-loading::after, .chip.is-loading::after, .act.is-loading::after, .plan-check.is-loading::after { border-color: var(--brand) var(--brand) var(--brand) transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .top-loader.on span { animation-duration: 2.5s; } }

/* ---------------------------------------------------------------- Administration : textes du site */
.text-group > summary { display: flex; align-items: center; gap: 8px; }
.text-row { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.text-row:first-of-type { border-top: 0; }
.text-row.is-custom { background: linear-gradient(90deg, var(--brand-soft), transparent 60%); margin: 0 -20px; padding: 12px 20px; }
.text-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.text-meta code { font-size: .78rem; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.text-row textarea { min-height: 42px; resize: vertical; }
.text-default { margin: 0; }
.text-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.composer-visit-list > .btn-quiet { align-self: flex-start; }
.settings-about { margin-top: 28px; }
.settings-about > h2 { margin-bottom: 2px; }
.settings-about > p { margin: 0 0 12px; }

/* Bouton « … » (icône) bien centré */
.chip-icon { width: 36px; height: 36px; padding: 0; justify-content: center; line-height: 0; list-style: none; cursor: pointer; }
.chip-icon::-webkit-details-marker { display: none; }

/* Composer : visibilité en icône seule entre le texte et « Publier » (ordinateur) */
.composer-vis-inline { flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--brand); cursor: pointer; }
.composer-vis-inline:hover, .composer-vis-inline[aria-expanded="true"] { background: var(--brand-soft); }
.composer-vis-inline span { display: grid; place-items: center; line-height: 0; }
.composer-vis-inline span[hidden] { display: none; }
@media (min-width: 721px) {
  .composer-tools .composer-vis { display: none; }
  .composer-pop[data-pop="vis"] { left: auto; right: 14px; top: 68px; width: 320px; }
}
@media (max-width: 720px) {
  .composer-vis-inline { display: none; }
}
