:root {
  --green: #1f5f3a; --green-dark: #154a2b; --green-soft: #e4efe7;
  --ink: #1a1a1a; --ink-soft: #4a4a45; --paper: #fbfaf6; --card: #ffffff; --line: #cfcbbd;
  --red: #b3261e;
  --warn-bg: #fff1d6; --warn-ink: #6b4200;
  --ok-bg: #dcefe0; --ok-ink: #14532d;
  --bad-bg: #fbe0dd; --bad-ink: #7a1b14;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
html.big { font-size: 118%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.45; padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 50; }
:focus-visible { outline: 3px solid #0b57d0; outline-offset: 2px; }

.top { background: var(--green); color: #fff; padding-top: env(safe-area-inset-top); }
.top-in { max-width: 600px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { font-weight: 600; font-size: 1.1rem; }
.txt-size { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); border-radius: 8px; font-size: .8rem; padding: 6px 10px; min-height: 36px; cursor: pointer; }
.txt-size[aria-pressed="true"] { background: #fff; color: var(--green); }

main { max-width: 600px; margin: 0 auto; padding: 16px; outline: none; }
h1 { font-size: 1.3rem; margin: 4px 0 12px; line-height: 1.25; }
h2 { font-size: 1.1rem; margin: 18px 0 8px; }
p { margin: 0 0 10px; }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }
.loading { color: var(--ink-soft); }

button, .btn { font: inherit; min-height: 56px; padding: 0 18px; border-radius: var(--radius); border: 2px solid var(--green); background: #fff; color: var(--green); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
button svg, .btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.primary { background: var(--green); color: #fff; }
.primary:active { background: var(--green-dark); }
.block { display: flex; width: 100%; }
.danger { border-color: var(--red); color: var(--red); }
.link { border: none; background: none; min-height: 44px; padding: 0 4px; text-decoration: underline; font-weight: 500; }
button[disabled] { opacity: .55; cursor: default; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.chip { min-height: 44px; padding: 0 14px; border-width: 1.5px; font-weight: 500; font-size: .9rem; border-color: var(--line); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--green-soft); border-color: var(--green); color: var(--green-dark); font-weight: 600; }
.chip-label { font-size: .85rem; color: var(--ink-soft); margin: 10px 0 6px; }

.locrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); justify-content: flex-start; margin-bottom: 12px; text-align: left; font-weight: 500; }
.locrow .loctext { flex: 1; text-align: left; }
.panel { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }

label.lbl { display: block; font-weight: 600; margin: 14px 0 6px; }
.req { color: var(--red); }
input[type=text], input[type=email], input[type=date], input[type=search], input[type=time], textarea, select { font: inherit; width: 100%; min-height: 52px; padding: 10px 12px; border: 1.5px solid #8a867a; border-radius: var(--radius); background: #fff; color: var(--ink); }
textarea { min-height: 96px; resize: vertical; }
.err { color: var(--bad-ink); font-weight: 600; margin: 6px 0 0; font-size: .9rem; }
.hint { color: var(--ink-soft); font-size: .85rem; margin: 4px 0 0; }
.sugg { list-style: none; margin: 6px 0 0; padding: 0; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.sugg button { width: 100%; justify-content: flex-start; border: none; border-bottom: 1px solid var(--line); border-radius: 0; min-height: 52px; color: var(--ink); font-weight: 500; text-align: left; }
.sugg li:last-child button { border-bottom: none; }
.picked { display: flex; align-items: center; gap: 8px; color: var(--ok-ink); font-weight: 600; margin-top: 6px; }
.picked svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.card { display: flex; gap: 12px; width: 100%; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; color: var(--ink); text-decoration: none; }
.card:active { background: #f3f1ea; }
.thumb { width: 72px; height: 96px; border-radius: 8px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-body { flex: 1; min-width: 0; }
.card-date { font-weight: 600; font-size: 1rem; margin: 0; }
.card-place { margin: 2px 0 0; }
.card-meta { margin: 4px 0 6px; color: var(--ink-soft); font-size: .9rem; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: .85rem; font-weight: 600; }
.badge svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.badge.a-confirmer { background: var(--warn-bg); color: var(--warn-ink); }
.badge.confirme { background: var(--ok-bg); color: var(--ok-ink); }
.badge.signale { background: var(--bad-bg); color: var(--bad-ink); }

.poster { width: 100%; max-height: 380px; object-fit: contain; background: #efede4; border-radius: var(--radius); display: block; border: 1.5px solid var(--line); }
.poster-empty { height: 150px; border-radius: var(--radius); background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-weight: 500; }
.poster-btn { padding: 0; border: none; background: none; min-height: 0; width: 100%; display: block; margin-bottom: 12px; }
.row { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; }
.row svg { width: 26px; height: 26px; fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.big-date { font-size: 1.15rem; font-weight: 600; margin: 8px 0 4px; }
.spacer { height: 10px; }
.banner { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--radius); padding: 10px 12px; font-size: .9rem; margin-bottom: 14px; }
.empty { text-align: center; padding: 24px 8px; }
.modbox { border: 2px dashed var(--green); border-radius: var(--radius); padding: 12px; margin-top: 18px; }

.bottom { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1.5px solid var(--line); display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); z-index: 10; }
.bottom a { flex: 1; max-width: 200px; min-height: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-soft); text-decoration: none; font-size: .78rem; font-weight: 600; }
.bottom svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bottom a.on { color: var(--green); }
.bottom a.nav-main { color: #fff; background: var(--green); margin: 8px 6px; border-radius: 14px; min-height: 52px; }
.bottom a.nav-main.on { background: var(--green-dark); }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.overlay[hidden] { display: none; }
.sheet { background: var(--paper); width: 100%; max-width: 600px; max-height: 92vh; overflow: auto; border-radius: 16px 16px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.sheet h2 { margin-top: 0; font-size: 1.25rem; }
.viewer { background: #000; align-items: center; }
.viewer img { max-width: 100%; max-height: 100%; touch-action: pinch-zoom; }
.viewer .close { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; background: #fff; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom)); background: #222; color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 40; max-width: 90%; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s; text-align: center; }
.toast.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* cartes façon petites annonces : grande affiche, texte dessous */
.card { flex-direction: row; align-items: flex-start; gap: 12px; padding: 10px; overflow: hidden; }
.card-img { position: relative; flex: 0 0 116px; width: 116px; align-self: flex-start; background: var(--green-soft); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.card-img img { width: 100%; height: auto; max-height: 180px; object-fit: contain; display: block; background: #efede4; }
.card-body .badge { margin-bottom: 6px; }
.card-body { padding: 2px 44px 2px 0; }
.card-date { font-size: 1rem; }
.card-place { margin: 2px 0 0; color: var(--ink-soft); }
.card-desc { margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.banner.bad { background: var(--bad-bg); color: var(--bad-ink); font-weight: 600; }

/* sélecteur d'affiche : l'input invisible recouvre le bouton */
.file-wrap { position: relative; }
.btn-look { font: inherit; min-height: 56px; padding: 0 18px; border-radius: var(--radius); border: 2px solid var(--green); background: #fff; color: var(--green); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-look svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.btn-look.primary { background: var(--green); color: #fff; }
.btn-look.block { display: flex; width: 100%; }
.file-over { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.file-wrap:focus-within .btn-look { outline: 3px solid #f2b705; outline-offset: 2px; }

/* curseur de distance */
.radius-val { font-size: 1.2rem; font-weight: 600; color: var(--green); margin: 4px 0 0; }
input.radius { width: 100%; height: 44px; accent-color: var(--green); margin: 0; }
input.radius::-webkit-slider-thumb { width: 32px; height: 32px; }
.radius-scale { display: flex; justify-content: space-between; font-size: .8rem; color: #555; margin: -4px 4px 8px; }

.searchrow { display: flex; gap: 8px; margin: 0 0 10px; }
.searchbar { flex: 1; min-width: 0; }
.filtbtn { width: 100%; justify-content: space-between; margin-bottom: 10px; }
.dayrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.sortsel { width: 100%; min-height: 48px; font: inherit; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 10px; background: #fff; color: var(--ink); }
.card-wrap { position: relative; }
.heart { position: absolute; top: 6px; right: 6px; width: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; }
.heart svg, .favbtn svg { width: 26px; height: 26px; fill: none; stroke: var(--ink-soft); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.heart[aria-pressed="true"] svg, .favbtn[aria-pressed="true"] svg { fill: #c0392b; stroke: #c0392b; }
.favbtn { margin: 8px 0 4px; }
.saved { display: flex; gap: 8px; align-items: stretch; margin-bottom: 10px; }
.saved-go { flex: 1; display: flex; align-items: center; gap: 8px; text-align: left; justify-content: flex-start; text-decoration: none; color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); min-height: 52px; }
input.searchbar, input.dayin { min-height: 52px; font: inherit; font-size: 1rem; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; background: #fff; color: var(--ink); -webkit-appearance: none; appearance: none; }

.badge.annule { background: #fbe4e0; color: #8e1b0f; }
.tagline { margin: 2px 0 4px; font-size: .9rem; font-weight: 600; color: var(--green-dark); }

.card-body { font-size: .95rem; }
.card-body .badge { font-size: .8rem; padding: 3px 8px; }
.card-date { font-size: .98rem; }
.card-desc { -webkit-line-clamp: 2; font-size: .9rem; color: var(--ink-soft); }

.rowhead { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 8px; }
.rowhead h2 { margin: 0; }
.seeall { min-height: 44px; padding: 0 12px; border: none; background: transparent; color: var(--green); font-weight: 700; font-size: 1rem; }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 16px; margin: 0 -16px; padding: 4px 16px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-item { position: relative; flex: 0 0 calc((min(100vw, 600px) - 40px) / 2.5); scroll-snap-align: start; }
.rail-card { display: block; color: var(--ink); text-decoration: none; }
.rail-img { background: #efede4; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 120px; }
.rail-img img { width: 100%; height: auto; max-height: 230px; object-fit: contain; display: block; }
.rail-date { margin: 8px 0 0; font-weight: 600; font-size: .88rem; }
.rail-place { margin: 2px 0 0; color: var(--ink-soft); font-size: .88rem; }
.rail-warn { margin: 6px 0 0; color: #8e1b0f; font-weight: 700; font-size: .85rem; }
.rail-item .heart { top: 6px; right: 6px; width: 44px; min-height: 44px; }

.clearall { display: block; margin: -2px 0 10px; font-weight: 600; }

.spinner{width:22px;height:22px;flex:none;border:3px solid var(--line,#d8d8d8);border-top-color:var(--brand,#1f6feb);border-radius:50%;animation:spin 0.9s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spinner{animation-duration:3s}}

.acc{border-bottom:1px solid var(--line)}
.acc-h{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:56px;padding:0 2px;background:none;border:0;border-radius:0;text-align:left;color:var(--ink)}
.acc-t{font-weight:700;flex:none}
.acc-v{flex:1;text-align:right;color:var(--ink-soft);font-size:.92rem;overflow-wrap:anywhere}
.acc-c{flex:none;display:inline-flex;transition:transform .15s}
.acc.open .acc-c{transform:rotate(180deg)}
.acc-b{padding:4px 0 14px}
.locline{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.locline .loctext{flex:1}
.sumbox{background:#fff;border:1.5px solid var(--line);border-radius:var(--radius);padding:14px;margin-bottom:14px}
.sum-t{font-weight:700;margin:0 0 8px}
.chip.crit{background:var(--green-soft);border-color:var(--green);color:var(--green-dark)}

.gobar{position:sticky;bottom:84px;z-index:5;background:linear-gradient(to top,#fff 70%,rgba(255,255,255,0));padding:14px 0 4px;margin-top:6px}

.chip.crit{display:inline-flex;align-items:center;padding:0;gap:0}
.chip.crit button{background:none;border:0;font:inherit;color:inherit;cursor:pointer;min-height:44px}
.chip.crit .crit-l{padding:0 6px 0 14px}
.chip.crit .crit-x{padding:0 14px 0 8px;opacity:.7}
.locedit{display:block;margin:6px 0;text-align:left}

.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px 12px;margin-top:12px}
.grid2 .rail-item{flex:none;min-width:0}
.sumbox.compact{padding:12px}
.bigsearch{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:0 16px;border:1.5px solid var(--line);border-radius:999px;background:#fff;color:var(--ink-soft);font:inherit;font-size:1.05rem;text-align:left;margin-bottom:10px}
.chip.crit.empty{background:#fff;border-style:dashed;color:var(--ink-soft)}
.chip.crit.empty .crit-l{padding:0 14px}

/* v7 : accueil compact */
.sumbox.compact{padding:8px 10px;margin-bottom:4px}
.bigsearch{min-height:42px;margin-bottom:8px;font-size:1rem}
.sumbox .chips{gap:6px;margin:0}
.sumbox.compact .chips{flex-wrap:nowrap}
.sumbox.compact .chip.crit{flex:1 1 0;min-width:0;justify-content:center}
.chip.crit{min-height:34px;font-size:.85rem}
.chip.crit button{min-height:34px;font-size:.85rem}
.chip.crit .crit-l{padding:0 4px 0 12px}
.chip.crit .crit-x{padding:0 12px 0 6px}
.chip.crit.empty .crit-l{padding:0 8px}
.rowhead{margin:8px 0 0}
.rowhead h2{font-size:1rem}
.seeall{min-height:36px;font-size:.95rem}
.rail{padding-bottom:4px}
.rail-item{flex-basis:calc((min(100vw,600px) - 40px) / 3.1)}
.rail-img{min-height:100px}
.rail-img img{max-height:150px}
.rail-date{margin:4px 0 0;font-size:.8rem}
.rail-place{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rail-item .heart{width:36px;min-height:36px}
.rail-img img{max-height:128px}
.rail-img{min-height:90px}
.rowhead{margin:4px 0 0}
/* v8 : les longs textes ne doivent pas élargir les cartes */
.rail-item{min-width:0;overflow:hidden}
.rail-card{display:block;min-width:0}
.rail-date{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.chip.crit .crit-l{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sumbox.compact .chip.crit:first-child{flex:2 1 0}

/* ===== v9 : style plus moderne, tailles normales, mise en page ordinateur ===== */
:root { --line: #e2dfd3; --radius: 14px; --shadow: 0 1px 2px rgba(20,40,25,.06), 0 4px 14px rgba(20,40,25,.06); }
body { background: #f6f5f0; }
button, .btn { min-height: 46px; padding: 0 16px; border-width: 1.5px; font-size: .97rem; transition: background .15s, border-color .15s, transform .05s; }
button:active, .btn:active { transform: scale(.985); }
button svg, .btn svg { width: 20px; height: 20px; }
@media (hover: hover) { button:hover, .btn:hover { background: var(--green-soft); } .primary:hover { background: var(--green-dark); } .danger:hover { background: var(--bad-bg); } }
.primary { box-shadow: 0 2px 6px rgba(31,95,58,.25); }
input[type=text], input[type=email], input[type=date], input[type=search], input[type=time], textarea, select { min-height: 46px; border-color: #b9b5a6; }
.locrow { min-height: 48px; }
.chip { min-height: 38px; font-size: .88rem; border-radius: 999px; }
.chip.crit { min-height: 34px; }
.panel, .sumbox { box-shadow: var(--shadow); border-color: transparent; }
.top { box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.top-in { padding: 8px 16px; }
.txt-size { min-height: 32px; font-size: .75rem; padding: 4px 10px; }
.bottom a { min-height: 58px; font-size: .72rem; }
.bottom svg { width: 22px; height: 22px; }
.bottom a.nav-main { min-height: 44px; margin: 7px 6px; }
body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
.rail-img, .card-img, .poster { box-shadow: var(--shadow); }
.heart { width: 36px; min-height: 36px; }
.heart svg { width: 20px; height: 20px; }
h1 { font-size: 1.25rem; }
.rail-card:hover .rail-img { transform: translateY(-2px); }
.rail-img { transition: transform .15s; }

/* pages de formulaire et fiche : colonne centrée, lisible sur ordinateur */
main { max-width: 720px; }
main.v-accueil { max-width: 1100px; }
.top-in { max-width: 1100px; }

/* publier : champs compacts, bouton Publier toujours visible */
.pubhead { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.pubhead .poster { width: 96px; max-height: 140px; flex-shrink: 0; }
.pubhead .pubtxt { flex: 1; min-width: 0; }
.pubhead h1 { margin: 0 0 4px; }
.stickybar { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 5; background: linear-gradient(to top, #f6f5f0 70%, rgba(246,245,240,0)); padding: 14px 0 6px; margin-top: 10px; }
details.more { border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; padding: 0 12px; margin: 14px 0 4px; }
details.more > summary { min-height: 46px; display: flex; align-items: center; font-weight: 600; cursor: pointer; color: var(--green-dark); }
details.more[open] { padding-bottom: 12px; }

/* partage */
.sharebox { text-align: center; }
.sharebox .qr { width: 200px; height: 200px; margin: 10px auto; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.sharebox .qr svg { width: 100%; height: 100%; display: block; }
.urlrow { display: flex; gap: 8px; margin: 10px 0; }
.urlrow input { flex: 1; min-width: 0; font-size: .85rem; }
.sharegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.justpub { background: var(--ok-bg); color: var(--ok-ink); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 12px; }
.justpub strong { display: block; margin-bottom: 8px; }

/* mes publications */
.mine { display: flex; gap: 12px; background: #fff; border-radius: var(--radius); padding: 10px; margin-bottom: 10px; box-shadow: var(--shadow); }
.mine-img { flex: 0 0 64px; width: 64px; height: 88px; border-radius: 8px; overflow: hidden; background: var(--green-soft); }
.mine-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mine-body { flex: 1; min-width: 0; }
.mine-title { font-weight: 600; margin: 0; }
.mine-sub { margin: 2px 0 6px; color: var(--ink-soft); font-size: .88rem; }
.mine-act { display: flex; gap: 6px; flex-wrap: wrap; }
.mine-act button, .mine-act a { min-height: 36px; padding: 0 12px; font-size: .85rem; }
.pill-state { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); margin-bottom: 4px; }
.pill-state.past { background: #ecebe4; color: var(--ink-soft); }

/* ordinateur */
@media (min-width: 900px) {
  .rail { margin: 0; padding: 4px 4px 12px; scroll-padding: 0; }
  .rail-item { flex-basis: 190px; }
  .rail-img img { max-height: 260px; }
  .rail-img { min-height: 160px; }
  .rail-date, .rail-place { font-size: .9rem; }
  .grid2 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px 16px; }
  .sumbox.compact { max-width: 760px; }
  .bottom { position: sticky; bottom: 0; }
  .rail::-webkit-scrollbar { display: block; height: 8px; }
  .rail { scrollbar-width: thin; }
}

/* ---- v10 : bandes reporté / annulé, lot ---- */
.poster-wrap, .rail-img, .card-img { position: relative; }
.band { position: absolute; left: 0; right: 0; top: 42%; padding: 10px 6px; text-align: center; font-weight: 800; letter-spacing: .12em; color: #fff; pointer-events: none; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.band.postponed { background: rgba(245, 124, 0, .62); }
.band.cancelled { background: rgba(211, 47, 47, .62); }
.band.small { padding: 3px 2px; font-size: .62rem; letter-spacing: .06em; top: 40%; }
.batchrow .mine-body input[type=text], .batchrow .mine-body input[type=search] { width: 100%; }
.batchrow .two { gap: 6px; }

/* v13 */
.rail-title,.card-title{font-weight:700;margin:6px 0 0;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rail-title{font-size:.9rem}.card-title{font-size:1rem}
.livebar{width:100%;margin-bottom:8px}

/* v14 */
.rail-title{margin:0 0 6px;font-size:.92rem}
.cat-co{color:#1565c0}.cat-ev{color:#6a3fb5}
.rail-desc{margin:4px 0 0;font-size:.82rem;color:var(--ink-soft);line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fblock{margin:14px 0}
.fblock .chip-label{font-weight:700;margin:0 0 6px}

/* v18 */
.orgtag{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:999px;background:#ede7f6;color:#4527a0;font-size:.78rem;font-weight:700}
.orgtag.good{background:#e0f2f1;color:#00695c}
.program{margin:14px 0;padding:12px;border-radius:12px;background:var(--surface-1,#f5f5f5)}
.prog-day{font-weight:700;margin:10px 0 2px}
.prog-row{display:flex;gap:10px;margin:4px 0}
.prog-time{min-width:84px;font-weight:700}
.prog-label{font-weight:600}
.rail-prog{margin:3px 0 0;font-size:.8rem;color:var(--ink-soft);line-height:1.25}
.progedit{border:1px solid #ddd;border-radius:12px;padding:10px;margin:10px 0}
.progedit .prow{display:grid;grid-template-columns:1fr 84px 36px;gap:6px;margin-bottom:6px}
.checkrow{display:flex;align-items:center;gap:10px;margin:14px 0;font-weight:600}.checkrow input{width:22px;height:22px}

/* v19 */
.pchips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.pchip{background:#eef3fb;border:1px solid #c9d8f0;border-radius:999px;padding:3px 10px;font-size:.85rem}
.rich-p{margin:0 0 8px;white-space:pre-wrap}.rich-list{margin:0 0 8px;padding-left:22px}
.richbar{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}.richbar button{min-height:40px;min-width:44px;padding:4px 10px}
.notif.unread{border-left:4px solid #1565c0;font-weight:600}
