/* Compléments de l'espace office (le reste vient de /magasin/style.css). */
.delta { font-size: 14px; font-weight: 800; }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 160px; padding-top: 8px; }
.bars div { flex: 1; min-width: 2px; background: var(--accent); border-radius: 4px 4px 0 0; position: relative; }
.bars div:hover { opacity: .75; }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.hbar { display: grid; grid-template-columns: 140px 1fr 60px; gap: 10px; align-items: center; font-size: 14px; margin: 6px 0; }
.hbar .track { height: 12px; border-radius: 6px; background: var(--bg); overflow: hidden; }
.hbar .fill { height: 100%; background: var(--accent); border-radius: 6px; }
.hbar b { text-align: right; }
#map { height: 420px; border-radius: 16px; overflow: hidden; border: 2px solid var(--line); }
.stop { display: grid; grid-template-columns: 1fr 140px auto; gap: 8px; align-items: start; padding: 12px; border-radius: 14px; background: var(--bg); }
.stop textarea { grid-column: 1 / -1; min-height: 60px; }
.code { font-family: Poppins, sans-serif; font-weight: 700; font-size: 38px; letter-spacing: 4px; }
.qr { width: 180px; height: 180px; }
.qr svg, .qr img { width: 100%; height: 100%; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--bg); }
.badge.on { background: var(--good-soft); color: var(--good); }
.swatch { width: 44px; height: 44px; padding: 2px; }
@media print { nav.side, .noprint, #toast { display: none !important; } main { padding: 0; } }
/* Éditeur de parcours sur carte (16/11) */
.trails-layout { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.bigmap, #map.bigmap { height: calc(100vh - 220px); min-height: 460px; }
.tcard { border-left: 6px solid var(--c, var(--accent)); background: var(--card); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.tcard.sel { outline: 3px solid var(--c); }
.tname { font-weight: 800; font-size: 17px; }
.toolbar { display: grid; gap: 8px; }
.seg { display: flex; gap: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; width: max-content; max-width: 100%; flex-wrap: wrap; }
.seg button { border: 0; border-radius: 0; background: var(--card); }
.seg button.on { background: var(--ink); color: #fff; }
.info { font-size: 15px; padding: 10px 12px; background: var(--bg); border-radius: 12px; }
.pin div { border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px #0006; color: #fff; font: 600 12px/1 Poppins, sans-serif; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; box-sizing: border-box; }
.stop.meet { grid-template-columns: 1fr auto; }
@media (max-width: 900px) { .trails-layout { grid-template-columns: 1fr; } .bigmap, #map.bigmap { height: 60vh; } }
.trails-dash { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 16px; }
#dashmap { height: 360px; border-radius: 16px; overflow: hidden; border: 2px solid var(--line); }
@media (max-width: 900px) { .trails-dash { grid-template-columns: 1fr; } }
.tdetail { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: 14px; }
.leaflet-tooltip.ptip { font: 600 12px Poppins, sans-serif; padding: 2px 8px; border-radius: 10px; }
.leaflet-tooltip.gtip { background: #8A4FB8; color: #fff; border-color: #8A4FB8; }
.wizard { background: var(--card); border: 2px solid var(--ink); border-radius: 16px; padding: 12px 14px; display: grid; gap: 10px; }
.wsteps { display: flex; gap: 6px; flex-wrap: wrap; }
.wsteps span { padding: 6px 12px; border-radius: 999px; background: var(--bg); font-weight: 800; font-size: 14px; color: var(--muted); }
.wsteps span.on { background: var(--orange); color: #fff; }
.wsteps span.done { background: var(--good-soft); color: var(--good); }
.wizmsg { font-size: 15px; }
.chip.on { background: var(--ink); color: #fff; }
button.ghost { border-color: var(--line); }
[hidden] { display: none !important; }
.mapwrap { position: relative; }
.busy { position: absolute; inset: 0; z-index: 1000; background: rgba(21, 23, 28, .45); display: flex; align-items: center; justify-content: center; border-radius: 16px; }
.busycard { background: #fff; border-radius: 18px; padding: 20px 24px; max-width: 460px; width: calc(100% - 32px); display: grid; gap: 10px; box-shadow: 0 10px 40px #0005; }
.busycard h2 { margin: 0; }
.busycard ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.busycard li.now { color: var(--ink); font-weight: 800; }
.busycard li.done { color: var(--good); }
.walker { display: flex; gap: 8px; height: 18px; align-items: center; }
.walker span { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); animation: step 1.2s infinite ease-in-out; }
.walker span:nth-child(2) { animation-delay: .15s; } .walker span:nth-child(3) { animation-delay: .3s; }
.walker span:nth-child(4) { animation-delay: .45s; } .walker span:nth-child(5) { animation-delay: .6s; }
@keyframes step { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-8px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .walker span { animation: none; opacity: .8; } }
button:disabled { opacity: .45; cursor: not-allowed; }
/* ---- Éditeur v2 (16/11) : carte plein écran, panneau à onglets, outils sur la carte ---- */
.editor { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 16px; height: calc(100vh - 150px); min-height: 560px; }
.side { background: var(--card); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; border: 2px solid var(--line); }
.tabs { display: flex; border-bottom: 2px solid var(--line); }
.tabs button { flex: 1; border: 0; border-radius: 0; background: transparent; padding: 14px 6px; font-size: 15px; color: var(--muted); }
.tabs button.on { color: var(--ink); box-shadow: inset 0 -3px 0 var(--orange); }
.count:not(:empty) { background: var(--orange); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 4px; }
.pane { flex: 1; overflow: auto; padding: 16px; display: grid; gap: 14px; align-content: start; }
.savebar { border-top: 2px solid var(--line); padding: 12px 16px; display: grid; gap: 8px; background: var(--card); }
.wizard { border: 0; padding: 0; background: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { padding: 8px 14px; }
.wide { width: 100%; justify-content: center; }
.info { display: grid; gap: 2px; padding: 12px 14px; }
.info .big { font: 700 26px/1.1 Poppins, sans-serif; }
.pcard { display: grid; grid-template-columns: 34px minmax(0, 1fr) 28px; gap: 10px; padding: 12px; border-radius: 14px; background: var(--bg); border: 2px solid transparent; }
.pcard.hl { border-color: var(--orange); background: #fff; }
.pnum { width: 30px; height: 30px; border-radius: 50%; background: #C9921F; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pnum.meet { background: #8A4FB8; }
.pbody { display: grid; gap: 8px; }
.ptitle { font-weight: 800; font-size: 16px; }
.pbody textarea { min-height: 110px; line-height: 1.4; }
.pcard .x { border: 0; background: transparent; padding: 4px; font-size: 16px; color: var(--muted); align-self: start; }
.pcard .x:hover { color: var(--bad); }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dates label { margin: 0; }
.mapwrap { position: relative; border-radius: 18px; overflow: hidden; border: 2px solid var(--line); }
.fullmap, #map.fullmap { position: absolute; inset: 0; height: 100%; border: 0; border-radius: 0; }
.mapsearch { position: absolute; top: 12px; left: 56px; right: 330px; max-width: 420px; z-index: 900; display: flex; gap: 6px; }
.mapsearch input { box-shadow: 0 2px 10px #0003; border: 0; }
.mapsearch button { box-shadow: 0 2px 10px #0003; }
.maptools { position: absolute; top: 12px; right: 12px; z-index: 900; display: grid; gap: 8px; justify-items: end; }
.maptools .seg { background: #fff; box-shadow: 0 2px 10px #0003; border: 0; }
.maptools .seg button { padding: 9px 12px; font-size: 14px; }
.iconrow { display: flex; gap: 6px; }
.iconrow button { width: 42px; height: 42px; padding: 0; justify-content: center; font-size: 18px; background: #fff; border: 0; box-shadow: 0 2px 10px #0003; }
.follow { background: #fff; padding: 6px 10px; border-radius: 10px; box-shadow: 0 2px 10px #0003; margin: 0; }
.maphint { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 900; background: rgba(21, 23, 28, .85); color: #fff; padding: 10px 14px; border-radius: 12px; font-size: 14px; pointer-events: none; }
.maphint:empty { display: none; }
@media (max-width: 1000px) {
  .editor { grid-template-columns: 1fr; height: auto; }
  .mapwrap { height: 65vh; order: -1; }
  .mapsearch { right: 12px; left: 56px; top: auto; bottom: 64px; }
}
.tabs button { font-size: 14px; white-space: nowrap; }
#relen { margin-top: 4px; }
/* Grand écran : l'éditeur prend toute la largeur, panneau de gauche plus large (16/11) */
main:has(.editor), main:has(.trails-layout) { max-width: none; }
.editor { grid-template-columns: clamp(400px, 34vw, 640px) minmax(0, 1fr); }
.trails-layout { grid-template-columns: clamp(300px, 28vw, 520px) minmax(0, 1fr); }
.card-lite { background: var(--bg); border-radius: 14px; padding: 12px 14px; }
.seefrom { background: #FFF6E0; color: #6B4E00; border-radius: 10px; padding: 8px 10px; }
.pkopt { justify-content: flex-start; text-align: left; font-weight: 700; padding: 8px 10px; border-width: 1px; }
.plancard { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; background: var(--ink); color: #fff; border-radius: 18px; padding: 16px 20px; }
.plancard .muted { color: #bbb; }
.plancard .planname { font: 700 24px/1.1 Poppins, sans-serif; color: var(--orange); }
.plancard ul { margin: 0; padding-left: 18px; columns: 2; font-size: 14px; }
.upsell { background: #F3ECFA; color: #4B2A6B; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.gactions { margin-top: 10px; }
@media (max-width: 900px) { .plancard { grid-template-columns: 1fr; } .plancard ul { columns: 1; } }

/* Formules et prix */
.plangrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:10px 0 22px}
.planopt{position:relative;border:1px solid #e3ddd3;border-radius:14px;padding:16px;background:#fff}
.planopt ul{margin:8px 0 0;padding-left:18px;font-size:13px}
.planopt.best{border:2px solid #E8572A;box-shadow:0 6px 20px rgba(232,87,42,.15)}
.planopt.cur{background:#faf7f2}
.planprice{font-size:15px;margin-top:6px}.planprice b{font-size:24px}
.ribbon{position:absolute;top:-11px;right:14px;background:#E8572A;color:#fff;font-size:11px;font-weight:700;padding:3px 10px;border-radius:20px}

/* Rencontres programmées : qui et quand */
.meetcard .msum{font-weight:600;line-height:1.35;margin-bottom:6px}
.meetcard .live{color:#2E7D5B;font-weight:700;white-space:nowrap}
.meetcard .mrow{border-top:1px solid #eee6da;padding:10px 0 4px;margin-top:8px}
.meetcard .mlab{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#8a7f70;margin-bottom:6px}
.meetcard select{width:100%}
.meetcard .alt{display:flex;gap:6px;align-items:center;margin-top:6px}
.meetcard .alt select{flex:1}
.seg{display:inline-flex;flex-wrap:wrap;gap:4px;background:#f3eee6;border-radius:10px;padding:3px;margin:2px 0}
.seg button{border:0;background:transparent;padding:6px 10px;border-radius:8px;font-size:13px;cursor:pointer;color:#5b5348}
.seg button.on{background:#fff;color:#1d1a16;font-weight:700;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.days{display:flex;gap:6px;margin-top:8px}
.days button{width:34px;height:34px;border-radius:50%;border:1px solid #d8d0c4;background:#fff;font-weight:700;cursor:pointer}
.days button.on{background:#8A4FB8;border-color:#8A4FB8;color:#fff}
.presets{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}

/* Programme de l'année */
.cal{display:flex;align-items:flex-end;gap:2px;height:96px;margin-top:10px}
.cal .wk{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative;height:100%}
.cal .bar{width:100%;border-radius:3px 3px 0 0}
.cal .em{position:absolute;top:0;font-size:12px;line-height:1}
.wk.haute .bar,.sw.haute{background:#E8572A}.wk.doux .bar,.sw.doux{background:#C9921F}.wk.calme .bar,.sw.calme{background:#d8d0c4}
.calm{position:relative;height:18px;font-size:11px;color:#8a7f70}.calm span{position:absolute;top:2px}
.calleg .sw{display:inline-block;width:10px;height:10px;border-radius:2px;margin:0 3px 0 10px;vertical-align:middle}
.sugg{display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:start;background:#fff;border:1px solid #e3ddd3;border-radius:14px;padding:14px}
.sugg.done{opacity:.75;background:#faf7f2}
.sugg.lvl-legendaire{border:2px solid #8A4FB8}
.sugg .sem{font-size:28px;line-height:1}
.sugg .stitle{margin-bottom:4px}
.sugg .lvl{font-size:11px;font-weight:700;padding:2px 8px;border-radius:20px;background:#f3eee6;margin-left:6px}
.sugg.lvl-rare .lvl{background:#fdf0d8;color:#8a5a00}.sugg.lvl-legendaire .lvl{background:#efe4f7;color:#5a2a80}
.sugg .sbody>div{margin-bottom:3px}
.sugg .sact{display:flex;flex-direction:column;gap:6px;min-width:150px}
.sugg .post{background:#faf7f2;border-radius:8px;padding:8px;margin:6px 0}
.sugg .ok{color:#2E7D5B;font-weight:700}
.evtag{display:inline-block;font-size:12px;font-weight:700;background:#efe4f7;color:#5a2a80;border-radius:20px;padding:2px 9px;margin-bottom:4px}
.warnmsg{color:#8a5a00;background:#fdf0d8;border-radius:8px;padding:6px 8px;margin:4px 0}
@media (max-width:700px){.sugg{grid-template-columns:36px 1fr}.sugg .sact{grid-column:1/-1}}

/* Typographie de l'espace pro : Poppins, sobre et lisible (remplace Barlow de la feuille partagée /magasin/style.css). */
body { font-family: Poppins, system-ui, sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
h1, .display, .logo { font-family: Poppins, sans-serif; font-style: normal; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: 30px; line-height: 1.15; }
h2 { font-weight: 600; letter-spacing: -0.01em; }
.kpi .value { font-family: Poppins, sans-serif; font-style: normal; font-weight: 700; font-size: 34px; letter-spacing: -0.02em; }
b, strong, .tname, .ptitle, .badge, .delta, .wsteps span, .busycard li.now, .pnum { font-weight: 600; }

/* Courbe d'évolution */
.evohead { margin: 8px 0 2px; font-size: 14px; } .evohead b { font-size: 26px; margin-right: 4px; }
.lchart { width: 100%; height: auto; display: block; margin: 6px 0; }
.lchart .grid { stroke: #eee6da; } .lchart .tick { font-size: 11px; fill: #8a7f70; }
.lchart .area { fill: rgba(232, 87, 42, .10); } .lchart .cur { fill: none; stroke: #E8572A; stroke-width: 2.5; stroke-linejoin: round; }
.lchart .prev { fill: none; stroke: #9a9083; stroke-width: 1.5; stroke-dasharray: 5 4; }
.lchart .dot { fill: #E8572A; opacity: 0; } .lchart .dot:hover { opacity: 1; }
.lchart .mark { fill: rgba(138, 79, 184, .10); } .lchart .memo { font-size: 11px; fill: #5a2a80; }
.lg { display: inline-block; width: 16px; height: 3px; vertical-align: middle; margin: 0 4px 0 10px; }
.lg.cur { background: #E8572A; } .lg.prev { border-top: 2px dashed #9a9083; height: 0; } .lg.mark { background: rgba(138, 79, 184, .25); height: 10px; }
#evo .seg button { font-size: 12px; padding: 5px 9px; }

/* Agenda */
.agnav { gap: 6px; align-items: center; } .agnav b { min-width: 130px; text-align: center; text-transform: capitalize; }
.agnav button { padding: 4px 10px; }
.agrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; }
.ahd { font-size: 12px; color: #8a7f70; text-align: center; padding-bottom: 2px; }
.aday { display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-height: 84px; padding: 4px; border: 1px solid #eee6da; border-radius: 8px;
  background: #fff; text-align: left; font-weight: 400; cursor: pointer; overflow: hidden; }
.aday.out { background: #faf7f2; opacity: .6; } .aday.today .dn { background: #1d1a16; color: #fff; border-radius: 50%; width: 22px; text-align: center; }
.aday.pick { outline: 2px solid #E8572A; } .aday .dn { font-size: 12px; font-weight: 600; height: 22px; line-height: 22px; }
.ach { display: block; font-size: 11px; line-height: 1.3; padding: 1px 5px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aleg .ach, .adet .ach { display: inline-block; }
.ach.fete { background: #fdf0d8; color: #8a5a00; } .ach.meet { background: #e7f0f5; color: #1A6B8F; }
.ach.legend { background: #efe4f7; color: #5a2a80; font-weight: 600; } .ach.trail { background: #e6f2ec; color: #2E7D5B; }
.aday .more { font-size: 11px; color: #8a7f70; }
.aleg { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; } .aleg a { margin-left: auto; }
.adet { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee6da; display: grid; gap: 4px; }
.adet b { text-transform: capitalize; }
@media (max-width: 700px) { .aday { min-height: 56px; } .aday .ach { font-size: 0; height: 6px; padding: 0; } }

/* Boutons principaux : blanc sur orange (lisible) */
button.primary, .btn.primary { color: #fff; }
button.primary:hover, .btn.primary:hover { filter: brightness(1.05); }

/* Page Gardiens et coffres */
.how h2 { margin-top: 0; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 6px 0 16px; }
.steps3 > div { background: #faf7f2; border-radius: 14px; padding: 14px; }
.steps3 b { display: block; margin: 6px 0 4px; font-size: 16px; }
.steps3 p { margin: 0; font-size: 14px; color: #5b5348; line-height: 1.5; }
.sicon { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 1px 4px #0001; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border-top: 1px solid #eee6da; padding-top: 14px; }
.why b { display: block; color: #E8572A; } .why span { font-size: 14px; color: #5b5348; }
h2.sect { margin: 26px 0 10px; }
.ggal { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gcard { background: #fff; border-radius: 16px; padding: 14px; display: grid; gap: 4px; border: 1px solid #eee6da; }
.gcard img { width: 100%; height: 130px; object-fit: contain; background: radial-gradient(circle at 50% 60%, #f3eee6, #fff 70%); border-radius: 12px; }
.gcard > b { font-size: 16px; }
.rbadge { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 20px; background: #f3eee6; color: #5b5348; }
.r-rare .rbadge { background: #fdf0d8; color: #8a5a00; } .r-légendaire .rbadge { background: #efe4f7; color: #5a2a80; }
.r-rare { border-color: #f1d9a8; }
.gstat { margin-top: 4px; font-size: 13px; } .gstat b { font-size: 18px; color: #E8572A; }
.tnums { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; margin-top: 8px; }
.tnums div { background: #faf7f2; border-radius: 10px; padding: 8px; text-align: center; }
.tnums b { display: block; font-size: 20px; } .tnums span { font-size: 11px; color: #8a7f70; line-height: 1.2; display: block; }
.gmore { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e3ddd3; display: grid; gap: 8px; }
.mline { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; font-size: 14px; }
.mline img { width: 44px; height: 44px; object-fit: contain; background: #f3eee6; border-radius: 10px; }
.maplegend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; color: #5b5348; }
.planline { margin-top: 18px; padding: 10px 14px; background: #fff; border-radius: 12px; color: #5b5348; }
@media (max-width: 800px) { .steps3, .why { grid-template-columns: 1fr; } .tnums { grid-template-columns: repeat(2, 1fr); } }

/* Couches de la carte : filtres en pastilles */
.layers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.layers .lyt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #8a7f70; margin-right: 4px; }
.lchip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid #e3ddd3;
  background: #fff; color: #8a7f70; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .15s; box-shadow: none; }
.lchip:hover { border-color: #c9c0b2; }
.lchip.on { background: #15171C; border-color: #15171C; color: #fff; }
.lchip .lk { display: inline-block; width: 18px; height: 0; border-top: 3px solid #E8572A; opacity: .45; }
.lchip.on .lk { opacity: 1; }
.lchip .lk.dash { border-top-style: dotted; }
.lchip .lk.dot { width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #2E7D5B; box-shadow: 0 0 0 1px #2E7D5B; }
.layers.mini { margin: 6px 0 0; } .layers.mini .lchip { height: 30px; padding: 0 11px; font-size: 12px; }
#catbox { max-height: 420px; overflow: auto; }
.catrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #eee6da; }
.catrow:hover { background: #faf7f2; }
.catrow button { flex: none; }
.leaflet-popup-content button.primary.small { margin-top: 6px; padding: 6px 10px; font-size: 13px; }

/* Onglet Aventure : fil rouge, énigmes, cadenas */
.qhead { display: grid; gap: 6px; background: #faf7f2; border-radius: 12px; padding: 12px; }
.qhead label, .qcard label { font-size: 12px; font-weight: 600; color: #5b5348; }
.qcard { background: #fff; border: 1px solid #eee6da; border-radius: 12px; padding: 12px; display: grid; gap: 6px; }
.qtop { display: flex; align-items: center; gap: 8px; }
.qnum { width: 24px; height: 24px; border-radius: 50%; background: #C9921F; color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.qtop b { flex: 1; }
.qdigit { min-width: 30px; height: 30px; border-radius: 8px; background: #15171C; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.qg { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; background: #faf7f2; border-radius: 10px; padding: 8px; }
.qg img { width: 52px; height: 52px; object-fit: contain; }
.qg > .small.muted { grid-column: 1 / -1; }
.qcode { background: #15171C; color: #fff; border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.qcode b { color: #E8572A; font-size: 22px; letter-spacing: .2em; margin-left: 6px; }
.qthemes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; } .qthemes .lchip { height: 32px; padding: 0 12px; }
.qseason { display: flex; gap: 10px; align-items: flex-start; background: #fff; border-radius: 10px; padding: 10px; margin-top: 4px; font-weight: 400 !important; }
.qseason input { margin-top: 3px; }
.qseasons { display: grid; gap: 4px; } .qseasons details { background: #fff; border-radius: 8px; padding: 6px 10px; } .qseasons summary { cursor: pointer; font-size: 13px; }
.qwander { background: #efe4f7; color: #3d1f57; border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; }
.rguide { display: grid; gap: 8px; margin-bottom: 10px; }
.rguide > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; background: #fff; border: 1px solid #eee6da; border-radius: 12px; padding: 10px 12px; }
.rguide .rbadge { grid-row: span 2; align-self: start; }
.rguide b { font-size: 14px; } .rguide span:not(.rbadge) { font-size: 13px; color: #5b5348; }
.rguide .r-légendaire .rbadge, .rguide > div.r-légendaire .rbadge { background: #efe4f7; color: #5a2a80; }
.mwin { background: #fdf0d8; color: #6b4600; border-radius: 8px; padding: 6px 9px; margin: 4px 0; }
.qcard.nochest { opacity: .7; background: #faf7f2; }
.okmsg { color: #1f5e44; background: #e6f2ec; border-radius: 8px; padding: 6px 8px; margin: 4px 0; }
.notemsg { color: #1A4F6B; background: #e7f0f5; border-radius: 8px; padding: 6px 8px; margin: 4px 0; }
.qlevel { gap: 10px; } .qhead [data-ai] { margin-top: 4px; }

.milieux .mgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;margin:12px 0}
.milieux .mgrid>div{display:flex;flex-direction:column;gap:3px;padding:12px;border:1px solid #e6e6e6;border-radius:10px;position:relative}
.milieux .micon{font-size:22px}
.milieux .soon{position:absolute;top:10px;right:10px;font-size:11px;font-weight:600;color:#fff;background:#f26b1d;border-radius:20px;padding:2px 8px}

.zcard{cursor:pointer}.zcard.sel{border-color:var(--orange,#E8572A);box-shadow:0 0 0 2px rgba(232,87,42,.15)}
.pill.on{background:#E8572A;color:#fff}.pill.off{opacity:.6}
.danger{color:#c0392b}

/* Zones d'événement : liste et étiquettes sur la carte */
.zitem{display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:start;width:100%;text-align:left;background:#fff;border:2px solid var(--line);border-radius:14px;padding:12px 14px;cursor:pointer;font:inherit;color:inherit}
.zitem:hover{border-color:#cfcfcf}.zitem.sel{border-color:var(--orange)}.zitem.old{opacity:.65}
.zic{width:44px;height:44px;border-radius:12px;background:#FFF1EA;display:grid;place-items:center;font-size:22px}
.zbody{display:grid;gap:3px;min-width:0}
.ztitle{font-weight:700;font-size:16px;color:var(--ink)}
.zmeta{font-size:13px;color:#6b6f76}
.zfoot{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:4px}
.zst{font-size:12px;font-weight:600;border-radius:999px;padding:3px 10px;background:#F1F1F1;color:#4a4d52;white-space:nowrap}
.zst.live{background:var(--orange);color:#fff}.zst.next{background:#FFF1EA;color:#B8440F}.zst.done{background:#ECECEC;color:#8a8d92}
.zvis{font-size:12px;color:#8a8d92}.zvis.on{color:#2E7D5B;font-weight:600}
.zlabel-wrap{background:none;border:0}
.zlabel{transform:translate(-50%,-50%);display:inline-flex;align-items:center;gap:6px;white-space:nowrap;background:var(--orange);color:#fff;font:600 13px/1 Poppins,sans-serif;padding:6px 10px 6px 6px;border-radius:999px;box-shadow:0 2px 8px rgba(0,0,0,.25);border:2px solid #fff}
.zlabel span{width:22px;height:22px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:13px}
.zlabel.old{background:#9AA0A6}

.saiq{display:grid;gap:4px;margin:6px 0;padding:10px 12px;border-radius:12px;background:#FFF6F1;border:1px dashed #F3B08C}
.saiq button{justify-self:start}
.aiprev{margin-top:6px;padding:10px 12px;background:#fff;border-radius:10px;border:1px solid #eee;display:grid;gap:6px}
.aiprev p{margin:0}

/* Gardiens : vraies cartes (18/11) */
.gintro p{margin:0 0 8px}
.glegend{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 10px}
.glegend span{font-size:12px;font-weight:600;padding:3px 10px;border-radius:20px;color:#fff}
.glegend .g-commun,.gtag.g-commun{background:#7d8f8a}.glegend .g-rare{background:#2f7fd6}.glegend .g-epique{background:#8e44c9}.glegend .g-legendaire{background:#d49a1f}
.ggal2{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px;margin-bottom:18px}
.gc2{display:flex;flex-direction:column;gap:6px}
.gcard2{position:relative;aspect-ratio:540/756;border-radius:14px;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,.18);transition:transform .2s}
.gcard2:hover{transform:translateY(-4px) rotate(-.6deg)}
.gcard2 img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.gcard2 video{position:absolute;left:4.8%;top:11.2%;width:90.4%;height:51%;object-fit:cover;border-radius:3px}
.g-rare .gcard2{box-shadow:0 6px 20px rgba(47,127,214,.35)}.g-epique .gcard2{box-shadow:0 6px 22px rgba(142,68,201,.4)}
.g-legendaire .gcard2{box-shadow:0 6px 26px rgba(212,154,31,.55)}
.gcard2.back .gback{position:absolute;inset:8% 0 auto 0;display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;color:#e9e2d4;padding:0 10px}
.gcard2.back{opacity:.92}
.gback b{font-size:15px;color:#fff}.gback span{font-size:12px}
.gback .gnum{font-size:11px;opacity:.6;margin-bottom:2px}
.gback .gtag{color:#fff;font-weight:600;padding:2px 9px;border-radius:20px;margin-top:3px}
.g-commun .gtag{background:#7d8f8a}.g-rare .gtag{background:#2f7fd6}.g-epique .gtag{background:#8e44c9}.g-legendaire .gtag{background:#d49a1f}
.gc2 .gsoon{font-size:12px;color:#8a8175;font-style:italic;text-align:center}
.g-commun .gcard2.back{outline:3px solid #7d8f8a;outline-offset:-3px}.g-rare .gcard2.back{outline:3px solid #2f7fd6;outline-offset:-3px}
.g-epique .gcard2.back{outline:3px solid #8e44c9;outline-offset:-3px}.g-legendaire .gcard2.back{outline:3px solid #d49a1f;outline-offset:-3px}
.gc2 .gstat{font-size:12px;text-align:center}

/* Découvrir Erunix (18/11) */
.dhero{display:grid;grid-template-columns:1.4fr 1fr;gap:28px;align-items:center;background:#15171c;color:#fff;border-radius:22px;padding:34px 36px;margin-bottom:18px}
.dhero h2{font-size:30px;line-height:1.2;margin:6px 0 12px;color:#fff}
.dhero p{color:#d9dbe0;line-height:1.55;margin:0 0 12px}
.dhero .dstrong{color:#fff;font-weight:700;font-size:18px}
.dhero .btn:not(.primary){background:transparent;color:#fff;border-color:#fff}
.dkick{color:var(--orange);font-weight:800;letter-spacing:.08em;text-transform:uppercase;font-size:13px}
.dhero-badge svg{width:100%;max-width:300px;display:block;margin:auto}
.dsteps{display:grid;gap:10px}
.dsteps>div{display:grid;grid-template-columns:34px 1fr auto;gap:12px;align-items:center;padding:10px 12px;border-radius:12px;background:var(--bg)}
.dsteps p{margin:2px 0 0}
.dck{width:28px;height:28px;border-radius:50%;border:2px solid #cfc7ba;display:flex;align-items:center;justify-content:center;font-weight:800;color:#fff}
.dsteps .done .dck{background:#2e7d5b;border-color:#2e7d5b}
.dsteps .done b{text-decoration:line-through;opacity:.6}
.dflow{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:18px}
.dflow>div{background:#fff;border:1px solid #eee6da;border-radius:16px;padding:16px}
.dflow span{display:inline-flex;width:32px;height:32px;border-radius:10px;background:#fff1ea;color:var(--orange);font-weight:800;align-items:center;justify-content:center}
.dflow b{display:block;margin:10px 0 6px}.dflow p{margin:0;font-size:14px;color:#5b5348}
.denig{display:grid;grid-template-columns:1.2fr 1fr;gap:24px;align-items:center}
.dcheck{list-style:none;padding:0;margin:0 0 10px}
.dcheck li{position:relative;padding:0 0 14px 34px;line-height:1.5}
.dcheck li:before{content:"✓";position:absolute;left:0;top:1px;width:22px;height:22px;border-radius:50%;background:var(--orange);color:#fff;font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center}
.dphones{display:flex;gap:16px;justify-content:center}
.dtag{font-size:12px;font-weight:800;color:var(--orange);letter-spacing:.08em;text-transform:uppercase;text-align:center;margin-bottom:6px}
.dphone{width:210px;height:440px;border-radius:34px;background:#0e0f13;padding:12px;box-shadow:0 18px 36px rgba(0,0,0,.22)}
.dscreen{height:100%;border-radius:24px;overflow:hidden;background:linear-gradient(180deg,#2a1e46,#1a1330);color:#fff;padding:16px 13px;position:relative}
.dscreen.noel{background:linear-gradient(180deg,#123247,#0c1d2b)}
.dscreen .ph-top{display:flex;justify-content:space-between;font-size:10px;color:#c9c3e6;font-weight:700}
.dscreen .ph-place{margin-top:10px;font-size:14px;font-weight:700}
.dscreen .ph-scene{margin-top:6px;font-size:10.5px;line-height:1.45;color:#e6e1f5;font-style:italic}
.dscreen .ph-q{margin-top:10px;font-size:12px;line-height:1.4;font-weight:700}
.dscreen .ph-c{margin-top:7px;border:1.5px solid rgba(255,255,255,.25);border-radius:10px;padding:7px 10px;font-size:12px}
.dscreen .ph-c.ok{border-color:#5be09a;background:rgba(91,224,154,.16);color:#bff5d6;font-weight:700}
.dscreen .ph-lock{position:absolute;left:13px;right:13px;bottom:14px;border-radius:12px;background:rgba(255,255,255,.08);padding:8px 10px;font-size:10px;color:#c9c3e6}
.dscreen .ph-lock b{display:block;font-size:16px;letter-spacing:.22em;white-space:nowrap;color:#ffc24a;margin-top:3px}
.dcap{margin:-8px 0 18px}
.dcards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:14px 0}
.dcards>div{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.dcards .gcard2{width:100%}
.gtag{color:#fff;font-weight:700;font-size:12px;padding:2px 10px;border-radius:20px}
.decus{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px;margin:14px 0}
.decus>div{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.decus svg{width:100%;max-width:190px}
.decus button{padding:5px 10px;font-size:13px;border-radius:9px}
.dwho ul{margin:8px 0 0;padding-left:18px;line-height:1.6}
@media (max-width:900px){.dhero,.denig{grid-template-columns:1fr}.dflow{grid-template-columns:1fr 1fr}.dcards{grid-template-columns:1fr 1fr}}
.gtag.g-commun{background:#7d8f8a}.gtag.g-rare{background:#2f7fd6}.gtag.g-epique{background:#8e44c9}.gtag.g-legendaire{background:#d49a1f}
.decus .locked svg{opacity:.4;filter:grayscale(.6)}
.decus{grid-template-columns:repeat(6,minmax(0,1fr))}@media (max-width:1100px){.decus{grid-template-columns:repeat(3,minmax(0,1fr))}}
.decus .locked svg{transition:opacity .25s,filter .25s}.decus .locked:hover svg{opacity:1;filter:none}
.appkit{display:flex;gap:24px;align-items:flex-start;flex-wrap:wrap}
.afwrap{width:302px;height:427px;overflow:hidden;border-radius:10px;box-shadow:0 6px 18px rgba(0,0,0,.18);flex:none;background:#fff}
.afwrap iframe{width:794px;height:1123px;border:0;transform:scale(.38);transform-origin:0 0;pointer-events:none}
.appkit .stack{max-width:320px}
.afseg{margin:6px 0 14px;display:flex;flex-wrap:wrap;gap:6px}.afseg button{padding:7px 12px;font-size:14px}
.afwrap{transition:width .2s,height .2s}
.zlabel small{font-weight:500;opacity:.9;margin-left:4px;font-size:11px}
.ztag{display:inline-block;background:#fff1ea;color:var(--orange);font-weight:700;font-size:11px;padding:2px 8px;border-radius:20px}
