/* Layout : en-tête sobre, accroche + éventail de cartes vedettes, galerie filtrable, fiche carte en panneau, contact en bas. Mode admin pour les propriétaires. */
:root{
  --bg:#F6F4FA; --surface:#FFFFFF; --ink:#22183A; --muted:#5A5270; --line:#E3DEEE;
  --ghost:#5B3A8C; --ghost-soft:#EEE7F8; --duck:#F2C230; --duck-ink:#3A2E06; --duck-soft:#FCF3D2;
  --band:#4A2F75; --danger:#B3261E;
  --display:"Unbounded", "Arial Black", system-ui, sans-serif;
  --body:"Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:"JetBrains Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#141020; --surface:#1D1730; --ink:#EEEAF6; --muted:#B9B2CC; --line:#2E2645;
  --ghost:#B596E8; --ghost-soft:#2A2042; --duck:#F5CB45; --duck-ink:#2A2106; --duck-soft:#2D2716;
  --band:#2A1D47; --danger:#FF8A80; color-scheme:dark }}
:root[data-theme="dark"]{
  --bg:#141020; --surface:#1D1730; --ink:#EEEAF6; --muted:#B9B2CC; --line:#2E2645;
  --ghost:#B596E8; --ghost-soft:#2A2042; --duck:#F5CB45; --duck-ink:#2A2106; --duck-soft:#2D2716;
  --band:#2A1D47; --danger:#FF8A80; color-scheme:dark }

*{box-sizing:border-box}
html{overflow-x:hidden}
body{overflow-x:clip;background:var(--bg);color:var(--ink);font-family:var(--body);font-size:15px;line-height:1.55}
.wrap{max-width:1120px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
h1,h2,h3{font-family:var(--display);text-wrap:balance;margin:0;letter-spacing:-.01em}
a{color:var(--ghost)}
button{font:inherit;cursor:pointer}
:focus-visible{outline:2px solid var(--duck);outline-offset:2px}
.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}
.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);font-weight:700}

header{position:sticky;top:env(safe-area-inset-top,0px);z-index:5;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:12px}
.logo{display:flex;align-items:center;gap:10px;font-family:var(--display);font-weight:700;font-size:16px;text-decoration:none;color:var(--ink)}
.logo .amp{color:var(--duck);-webkit-text-stroke:.5px var(--duck-ink)}
.nav ul{display:flex;gap:18px;list-style:none;margin:0;padding:0;font-weight:500}
.nav ul a{color:var(--muted);text-decoration:none}
.nav ul a:hover{color:var(--ink)}
.nav .right{display:flex;gap:8px;align-items:center}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;padding:10px 18px;font-weight:700;text-decoration:none;font-size:14px}
.btn-duck{background:var(--duck);color:var(--duck-ink)}
.btn-ghost{background:var(--ghost-soft);color:var(--ghost)}
.btn-line{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.btn-sm{padding:6px 12px;font-size:12px}
.btn-danger{background:transparent;color:var(--danger);box-shadow:inset 0 0 0 1px currentColor}
.btn:disabled{opacity:.5;cursor:not-allowed}
.nav ul a[aria-current="page"]{color:var(--ink);box-shadow:inset 0 -2px 0 var(--duck)}
.nav ul a{padding-block:4px;white-space:nowrap}
.nav ul{scrollbar-width:none}.nav ul::-webkit-scrollbar{display:none}
.btn.icon{width:36px;height:36px;padding:0;font-size:16px}
.ptitle{font-size:clamp(24px,3.4vw,32px)}
.lead{color:var(--muted);max-width:60ch;margin:-6px 0 20px}
.more{font-weight:700;text-decoration:none;font-size:14px}
.back{display:inline-block;font-weight:700;text-decoration:none;font-size:14px;margin-bottom:18px}
.pd{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:start}
.pd .info h1{margin:8px 0 4px}
@media (max-width:760px){.pd{grid-template-columns:1fr;gap:24px}}
@media (max-width:640px){.nav ul{flex-wrap:wrap!important;justify-content:center!important;column-gap:16px!important;row-gap:6px!important;overflow:visible!important}}
@media (max-width:640px){.nav{flex-wrap:wrap;row-gap:8px}.nav ul{order:3;width:100%;overflow-x:auto;gap:10px;font-size:12.5px;justify-content:space-between}.logo{font-size:14px}}

/* Barre admin */
.todo{font-size:13px;color:var(--muted);margin:0;padding-left:18px}

.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center;padding-block:44px 20px}
.banner{margin-top:20px;border-radius:18px;overflow:hidden;aspect-ratio:1983/793;max-width:100%;background:#1a1030;box-shadow:0 18px 40px -22px rgba(20,10,40,.6)}
.banner img{width:100%;height:100%;object-fit:cover;display:block}
.hero.withbanner{grid-template-columns:1fr;padding-block:28px 12px}
.hero.withbanner .stats{margin-top:20px}
.logoimg{height:46px;width:46px;border-radius:50%;display:block;box-shadow:0 4px 12px -4px rgba(91,58,140,.6)}
@media (max-width:640px){.logoimg{height:38px;width:38px}.banner{margin-top:12px;border-radius:12px}}
.hero h1{font-size:clamp(28px,4.6vw,46px);line-height:1.08}
.hero h1 em{font-style:normal;color:var(--ghost)}
.hero h1 u{text-decoration:none;background:linear-gradient(transparent 62%,var(--duck) 62%)}
.hero p{color:var(--muted);max-width:46ch;font-size:16px}
.hero .ctas{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.stats{display:flex;gap:28px;margin-top:26px;flex-wrap:wrap}
.stats div{display:flex;flex-direction:column}
.stats strong{font-family:var(--display);font-size:22px}
.stats span{font-size:13px;color:var(--muted)}
.fan{position:relative;height:300px;overflow:clip;overflow-clip-margin:24px}
.fan .face{position:absolute;width:170px;left:50%;top:50%}
.fan .face:nth-child(1){transform:translate(-110%,-50%) rotate(-12deg)}
.fan .face:nth-child(2){transform:translate(-50%,-55%);z-index:2}
.fan .face:nth-child(3){transform:translate(10%,-50%) rotate(12deg)}
@media (max-width:760px){.hero{grid-template-columns:1fr}.fan{height:250px}.fan .face{width:140px}}

/* Visuel d'une carte : photo ou emplacement */
.face{aspect-ratio:63/88;max-width:100%;border-radius:10px;overflow:hidden;position:relative;background:var(--surface);box-shadow:0 10px 24px -12px rgba(20,10,40,.45)}
.face img{width:100%;height:100%;object-fit:contain;display:block}
.face::after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.45) 45%,rgba(255,240,180,.3) 52%,transparent 65%);transform:translateX(-100%);transition:transform .7s;pointer-events:none}
.item:hover .face::after{transform:translateX(100%)}
.ph{height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:12px;background:linear-gradient(155deg,#6B47A3,#24133F);color:#fff}
.ph b{font:700 13px/1.2 var(--display)}
.ph span{font:600 10px var(--mono);opacity:.8}
.ph i{font-style:normal;align-self:center;font-size:11px;background:rgba(255,255,255,.14);border-radius:999px;padding:4px 10px}
.ph.back{background:repeating-linear-gradient(45deg,#5B3A8C 0 10px,#4A2F75 10px 20px);align-items:center;justify-content:center}

section{padding-block:32px}
.sec-head{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.sec-head h2{font-size:24px}

.filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:20px}
.chip{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:7px 14px;font-size:13px;font-weight:500}
.chip[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.search{flex:1;min-width:180px;max-width:280px;margin-left:auto;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:8px 14px;font:inherit;font-size:13px}
select.sort{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:7px 12px;font:inherit;font-size:13px}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:22px}
.grid.home{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:760px){.grid.home{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.grid.home>:nth-child(n+5){display:none}}
.cell{display:flex;flex-direction:column;gap:8px;min-width:0}
.item{background:none;border:0;padding:0;text-align:left;color:inherit;text-decoration:none;display:flex;flex-direction:column;gap:10px}
.item .face{transition:transform .25s}
.item:hover .face{transform:translateY(-4px) rotate(-1deg)}
.meta{display:flex;flex-direction:column;gap:3px;min-width:0}
.meta h3{font:700 14px var(--body)}
.meta .sub{font-size:12px;color:var(--muted)}
.tools{display:flex;gap:6px}
.add{border:2px dashed var(--line);background:none;color:var(--muted);border-radius:10px;aspect-ratio:63/88;font-weight:700;display:grid;place-items:center}
.add:hover{border-color:var(--ghost);color:var(--ghost)}
.badges{display:flex;gap:6px;flex-wrap:wrap}
.badge{font-size:11px;font-weight:700;border-radius:6px;padding:2px 8px;letter-spacing:.02em}
.b-sale{background:var(--duck-soft);color:var(--ink);box-shadow:inset 0 0 0 1px var(--duck)}
.b-trade{background:var(--ghost-soft);color:var(--ghost)}
.b-both{background:linear-gradient(90deg,var(--ghost-soft) 50%,var(--duck-soft) 50%);color:var(--ink)}
.b-held{background:transparent;color:var(--muted);box-shadow:inset 0 0 0 1px var(--line)}
.b-grade{font-family:var(--mono);background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.b-ex{background:transparent;color:var(--muted);border:1px dashed var(--line);font-style:italic}
.empty{grid-column:1/-1;color:var(--muted);padding:30px 0}

/* Panneaux (fiche et éditeur) */
.sheet{position:fixed;inset:0;z-index:20;display:grid;place-items:center;background:rgba(15,8,30,.55);padding:max(16px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
.panel{background:var(--surface);color:var(--ink);border-radius:18px;max-width:920px;width:100%;max-height:100%;overflow:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;padding:26px;position:relative}
.close{position:absolute;top:12px;right:12px;border:0;background:var(--ghost-soft);color:var(--ghost);width:34px;height:34px;border-radius:50%;font-size:18px;z-index:2}
.viewer{display:flex;flex-direction:column;gap:12px;align-items:center}
.stage{width:min(320px,100%);cursor:zoom-in}
.stage.zoomed{width:min(560px,100%);cursor:zoom-out}
.stage .face{width:100%}
.tabs{display:flex;gap:6px;background:var(--bg);padding:4px;border-radius:999px}
.tabs button{border:0;background:none;color:var(--muted);padding:6px 14px;border-radius:999px;font-size:13px;font-weight:700}
.tabs button[aria-selected="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.hint{font-size:12px;color:var(--muted)}
.info h2{font-size:22px;margin:6px 0 4px}
dl.specs{display:grid;grid-template-columns:auto 1fr;gap:8px 18px;margin:18px 0;font-size:14px}
dl.specs dt{color:var(--muted)}
dl.specs dd{margin:0;font-weight:500}
.price{font-family:var(--display);font-size:22px}
.price small{font-family:var(--body);font-size:12px;color:var(--muted);font-weight:500}
.info .ctas{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.defects{font-size:13px;color:var(--muted);border-left:3px solid var(--duck);padding-left:10px;margin-top:14px;white-space:pre-line}
@media (max-width:760px){.panel{grid-template-columns:1fr;padding:20px}}

.ed{display:grid;gap:12px;min-width:0}
.ed .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ed label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700;color:var(--muted)}
.ed label.check{flex-direction:row;align-items:center;gap:8px;color:var(--ink);font-size:13px}
.ed input,.ed select,.ed textarea{font:inherit;font-size:14px;font-weight:400;border:1px solid var(--line);border-radius:10px;padding:9px 11px;background:var(--bg);color:var(--ink)}
.ed textarea{min-height:70px;resize:vertical}
.photos{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.slot{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:8px;min-width:0}
.thumb{width:54px;aspect-ratio:63/88;flex:none;border-radius:6px;overflow:hidden;border:1px dashed var(--line);display:grid;place-items:center;color:var(--muted);font-size:18px;background:var(--bg)}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.slot .lbl{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:12px;font-weight:700;color:var(--muted)}
.slot input[type=file]{position:absolute;width:1px;height:1px;opacity:0}
.slot .pick{align-self:flex-start;cursor:pointer}
@media (max-width:480px){.photos{grid-template-columns:1fr}}
.err{color:var(--danger);font-size:13px;font-weight:700}
@media (max-width:760px){.ed .row{grid-template-columns:1fr}}

.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.step{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px}
.step .n{font-family:var(--mono);font-size:12px;color:var(--ghost);font-weight:600}
.step h3{font-size:15px;margin:6px 0}
.step p{margin:0;color:var(--muted);font-size:14px}
.steps.rachat{margin:8px 0 24px}
.rachat-page{display:grid;grid-template-columns:minmax(0,720px) minmax(0,1fr);gap:32px;align-items:center}
.duo{position:relative;height:340px}
.duo img{position:absolute;filter:drop-shadow(0 14px 22px rgba(20,10,40,.35))}
.duo .gengar{width:78%;right:0;top:0;transform:rotate(6deg)}
.duo .psyduck{width:56%;left:0;bottom:0;transform:rotate(-6deg)}
@media (max-width:900px){.rachat-page{grid-template-columns:1fr}.duo{height:200px;max-width:280px;margin:0 auto;width:100%}}
@media (max-width:760px){.steps{grid-template-columns:1fr}}

.contact{display:grid;grid-template-columns:.8fr 1.2fr;gap:28px;background:var(--band);color:#fff;border-radius:20px;padding:30px}
.contact h2{font-size:24px}
.contact p{color:rgba(255,255,255,.8)}
.contact a{color:#fff}
.socials{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.socials div{display:flex;justify-content:space-between;align-items:center;gap:10px;background:rgba(255,255,255,.08);border-radius:10px;padding:8px 12px;font-size:14px;min-width:0}
.socials span{overflow-wrap:anywhere}
.socials button{border:0;background:#F5CB45;color:#2A2106;border-radius:6px;font-size:12px;font-weight:700;padding:4px 10px;flex:none}
.composer{display:grid;gap:10px;min-width:0}
.composer .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.composer label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700;color:rgba(255,255,255,.85)}
.composer input,.composer select,.composer textarea{font:inherit;font-size:14px;font-weight:400;border:0;border-radius:10px;padding:10px 12px;background:#fff;color:#22183A}
.composer textarea{min-height:110px;resize:vertical}
.composer .acts{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.composer .acts .btn-duck{background:#F5CB45;color:#2A2106}
.composer small{color:rgba(255,255,255,.75);font-size:12px}
@media (max-width:760px){.contact{grid-template-columns:1fr;padding:22px}.composer .row{grid-template-columns:1fr}}

/* Événements */
.events{display:flex;flex-direction:column;gap:12px}
.evmonth{font-size:18px;margin:14px 0 2px}
.evmonth:first-child{margin-top:0}
.ev{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:start;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px}
.ev.past{opacity:.55}
.ev .day{width:78px;text-align:center;border-radius:10px;background:var(--ghost-soft);color:var(--ghost);padding:8px 0;line-height:1.1}
.ev .day b{display:block;font:700 24px var(--display)}
.ev .day.multi b{font-size:18px;line-height:1.35}
.ev .day span{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.ev h3{font-size:16px;margin:4px 0 2px}
.ev .where{font-size:13px;color:var(--muted)}
.ev p{margin:6px 0 0;font-size:14px;max-width:65ch;white-space:pre-line}
.ev .side{display:flex;flex-direction:column;gap:6px;align-items:flex-end}
.b-ev{background:var(--duck-soft);color:var(--ink);box-shadow:inset 0 0 0 1px var(--duck)}
@media (max-width:640px){.ev{grid-template-columns:auto minmax(0,1fr)}.ev .side{grid-column:1/-1;flex-direction:row;align-items:center;flex-wrap:wrap}}
/* Sélection et contact */
.selbtn{align-self:flex-start;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:5px 12px;font-size:12px;font-weight:700}
.selbtn:hover{border-color:var(--ghost);color:var(--ghost)}
.selbtn.on{background:var(--ghost-soft);border-color:var(--ghost);color:var(--ghost)}
.cnt{display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:999px;background:var(--duck-ink);color:var(--duck);font-size:11px;padding:0 5px}
.selbar{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:15;display:flex;gap:16px;align-items:center;background:var(--ink);color:var(--bg);text-decoration:none;border-radius:999px;padding:10px 12px 10px 20px;box-shadow:0 12px 30px -10px rgba(20,10,40,.5);font-size:14px;max-width:calc(100% - 32px);white-space:nowrap}
.selbar .go{background:var(--duck);color:var(--duck-ink);border-radius:999px;padding:6px 12px;font-weight:700}
@media (max-width:480px){.selbar{gap:10px;font-size:13px;padding-left:14px}.selbar .go{padding:6px 10px}}
.narrow{max-width:720px}
.narrowtxt{display:none}
@media (max-width:520px){.wide{display:none}.narrowtxt{display:inline}}
.clist{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}
.crow{display:grid;grid-template-columns:100px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 16px;border-top:1px solid var(--line)}
.crow:first-child{border-top:0}
.crow .k{font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.crow a,.crow .v{font-weight:700;overflow-wrap:anywhere}
.partners{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.partner{display:flex;gap:16px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px;min-width:0}
.plogo{flex:none;width:64px;height:64px;border-radius:50%;overflow:hidden;background:var(--ghost-soft,var(--bg));display:grid;place-items:center;border:1px solid var(--line)}
.plogo img{width:100%;height:100%;object-fit:contain;background:#fff}
.plogo span{font:700 24px var(--display);color:var(--ghost)}
.pbody{min-width:0}
.pbody h3{font-size:17px}
.psub{color:var(--muted);font-size:13px;margin-top:2px}
.pbody p{margin:8px 0 0;font-size:14px;white-space:pre-line}
.promo{margin-top:10px;display:inline-block;background:var(--duck-soft);border-radius:8px;padding:4px 10px;font-size:13px}
.plinks{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.plinks:empty{display:none}
@media (max-width:400px){.partners{grid-template-columns:1fr}}
.tip{margin-top:18px;background:var(--duck-soft);border-radius:14px;padding:16px;font-size:14px}
.tip .ctas{margin-top:10px}
.slist{display:flex;flex-direction:column;gap:10px;margin-bottom:20px}
.srow{display:grid;grid-template-columns:48px minmax(0,1fr) auto auto;gap:12px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:8px 10px}
.sthumb{width:48px;aspect-ratio:63/88;border-radius:5px;overflow:hidden;display:block;background:linear-gradient(155deg,#6B47A3,#24133F)}
.sthumb img{width:100%;height:100%;object-fit:cover;display:block}
.sinfo{display:flex;flex-direction:column;min-width:0;font-size:13px;color:var(--muted)}
.sinfo b{color:var(--ink);font-size:14px}
.srow select{font:inherit;font-size:13px;border:1px solid var(--line);border-radius:999px;padding:5px 10px;background:var(--bg);color:var(--ink)}
.pill{font-size:12px;font-weight:700;border-radius:999px;padding:4px 10px;background:var(--bg)}
.x{border:0;background:none;color:var(--muted);font-size:20px;width:32px;height:32px;border-radius:50%}
.x:hover{background:var(--ghost-soft);color:var(--ghost)}
.sform{margin-bottom:20px}
.sform .ctas{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.gen{background:var(--surface);border:2px solid var(--duck);border-radius:14px;padding:16px;display:grid;gap:10px}
.gen label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:var(--muted)}
.gen textarea{font:inherit;font-size:14px;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:var(--bg);color:var(--ink);resize:vertical}
.gen .hint{margin:0}
@media (max-width:520px){.srow{grid-template-columns:44px minmax(0,1fr) auto}.srow select,.srow .pill{grid-column:2/4;justify-self:start}.srow .x{grid-row:1;grid-column:3}.crow{grid-template-columns:1fr auto}.crow .k{grid-column:1/-1}}
/* Recherches, statuts, FAQ, fiche */
.b-new{background:var(--ghost);color:var(--bg)}
.b-gone{background:transparent;color:var(--muted);box-shadow:inset 0 0 0 1px var(--line);text-decoration:line-through}
.gonesec .cell{opacity:.6}
.gonesec .face{filter:grayscale(.6)}
.fsel{margin-top:-8px}
.fsel select{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:7px 12px;font:inherit;font-size:13px;max-width:100%}
.pdtop{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.pdtop .back{margin:0}
.pdnav{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.pdnav .btn{width:36px;height:36px;padding:0}
.stage{touch-action:pan-y}
.wlist{display:flex;flex-direction:column;gap:12px}
.wrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px}
.wrow h3{font-size:16px;margin:4px 0 2px}
.wrow .where{font-size:13px;color:var(--muted)}
.wrow p{margin:6px 0 0;font-size:14px}
.wrow .side{display:flex;flex-direction:column;gap:6px;align-items:flex-end}
.wthumb{display:grid!important;place-items:center;color:#fff;font:700 18px var(--display)}
.wtip{margin-top:0}
.prop{margin-top:28px;background:var(--duck-soft);border-radius:16px;padding:20px;display:grid;gap:16px}
.prop-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.prop-head h2{font-size:18px}
.prop-head p{margin:4px 0 0;color:var(--muted);font-size:14px;max-width:60ch}
.prop .ed input,.prop .ed select{background:var(--surface)}
.prop .ctas{display:flex;gap:10px}
.faq{margin-top:32px}
.faq h2{font-size:20px;margin-bottom:12px}
.faq details{border-top:1px solid var(--line);padding:12px 0}
.faq details:last-child{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;font-weight:700;list-style:none;display:flex;justify-content:space-between;gap:12px}
.faq summary::after{content:"+";color:var(--ghost);font-weight:700}
.faq details[open] summary::after{content:"–"}
.faq p{margin:8px 0 0;color:var(--muted);max-width:65ch;white-space:pre-line}
@media (max-width:640px){.wrow{grid-template-columns:1fr}.wrow .side{flex-direction:row;flex-wrap:wrap;align-items:center}}
footer{padding-block:30px 90px;color:var(--muted);font-size:13px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}


/* Carte des événements */
.hero2{padding-block:36px 8px}
.hero2 h1{font-size:clamp(26px,4.4vw,44px);line-height:1.1;max-width:22ch;margin-top:8px}
.hero2 h1 em{font-style:normal;color:var(--ghost)}
.hero2 p{color:var(--muted);margin:10px 0 0;font-size:16px}
.evx{margin:18px 0 8px}
.evsearch{display:flex;gap:8px;flex-wrap:wrap}
.evq{flex:1 1 260px;display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:0 6px 0 14px;transition:border-color .15s,box-shadow .15s}
.evq:focus-within{border-color:var(--ghost);box-shadow:0 0 0 3px var(--ghost-soft)}
.evq svg{width:18px;height:18px;color:var(--muted);flex:none}
.evq input{flex:1;min-width:0;border:0;background:none;color:var(--ink);font:inherit;font-size:16px;padding:11px 0;outline:none}
.evsearch .btn{padding-block:11px}
.evfilters{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:10px}
.evfilters select,.evfilters input[type=date]{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:8px 12px;font:inherit;font-size:14px;max-width:100%;min-width:0}
.evfilters select option.zero{color:var(--muted)}
.seg{display:inline-flex;background:var(--ghost-soft);border-radius:999px;padding:3px;margin-left:auto}
.seg button{border:0;background:none;color:var(--ghost);font-weight:700;font-size:13px;padding:6px 14px;border-radius:999px;transition:background .15s}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.evstatus{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:14px;color:var(--muted);margin:12px 0 10px;min-height:30px}
.evstatus b{color:var(--ink)}
.evmsg{color:var(--danger)}
.linkbtn{border:0;background:none;color:var(--ghost);font-weight:700;padding:0;text-decoration:underline}
.evbody{display:grid;grid-template-columns:340px minmax(0,1fr);gap:14px;height:min(620px,74vh)}
.evlist{overflow:auto;display:flex;flex-direction:column;gap:6px;padding-right:4px;scrollbar-width:thin}
.evmap{position:relative;z-index:0;border-radius:18px;overflow:hidden;border:1px solid var(--line);background:var(--ghost-soft);min-height:0}
.evbody.view-list{grid-template-columns:1fr;height:auto}
.evbody.view-list .evmap{display:none}
.evbody.view-list .evlist{overflow:visible;padding:0}
.evrow{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;text-align:left;width:100%;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:9px 10px;color:var(--ink);transition:border-color .15s,transform .15s,box-shadow .15s}
.evrow:hover{border-color:var(--ghost);transform:translateY(-1px);box-shadow:0 6px 16px -10px rgba(40,20,80,.5)}
.evrow.on{border-color:var(--ghost);box-shadow:inset 3px 0 0 var(--ghost)}
.evd{display:flex;flex-direction:column;align-items:center;background:var(--ghost-soft);color:var(--ghost);border-radius:9px;padding:5px 0;line-height:1.1}
.evd b{font:700 18px var(--display)}
.evd i{font-style:normal;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.evt{display:flex;flex-direction:column;min-width:0}
.evt b{font-size:14px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.evw{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.evty{font-size:11px;font-weight:700;letter-spacing:.02em;color:var(--tc,var(--ghost))}
.km{font-size:12px;color:var(--muted);white-space:nowrap}
.ev .where.km{color:var(--ghost);font-weight:700}
.t-spec{--tc:#7B4FC4}.t-jeux{--tc:#1F9C8E}.t-autre{--tc:#E07B24}
.t-bourse{--tc:#7B4FC4}.t-salon{--tc:#D99A00}.t-conv{--tc:#1F9C8E}.t-expo{--tc:#D9534F}.t-shop{--tc:#C2479A}.t-vide{--tc:#E07B24}
.badge.evty{background:color-mix(in srgb,var(--tc,var(--ghost)) 16%,transparent);color:var(--tc,var(--ghost))}
@media (max-width:860px){
  .evbody{grid-template-columns:1fr;height:auto}
  .evmap{order:-1;height:58vh;min-height:320px;border-radius:14px}
  .evlist{overflow:visible;padding:0}
  .seg{margin-left:0}
}
@media (max-width:520px){
  .evsearch .btn{flex:1 1 auto}
  .evfilters select{flex:1 1 calc(50% - 4px)}
  .seg{flex:1 1 100%}.seg button{flex:1}
}
/* Marqueurs */
.pinwrap{background:none;border:0}
.pin{position:absolute;left:2px;top:0;width:30px;height:30px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);transform-origin:50% 50%;background:var(--tc,#7B4FC4);border:2px solid #fff;box-shadow:0 4px 10px -2px rgba(20,10,40,.55);display:flex;align-items:center;justify-content:center;transition:transform .18s cubic-bezier(.3,1.6,.6,1),filter .15s;cursor:pointer;color:var(--tc,#7B4FC4)}
.pin svg{width:20px;height:20px;transform:rotate(45deg)}
.pin svg rect{stroke:rgba(0,0,0,.08)}
.pinwrap:hover .pin,.pin.hot{transform:rotate(-45deg) scale(1.18)}
.pin.sel{transform:rotate(-45deg) scale(1.3);filter:drop-shadow(0 0 6px rgba(242,194,48,.9))}
.zonetip{font:13px var(--body);border-radius:8px;padding:6px 10px}
.leaflet-container{font-family:var(--body);background:var(--ghost-soft)}
.leaflet-tile-pane{filter:saturate(.55) brightness(1.03)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .leaflet-tile-pane{filter:invert(1) hue-rotate(200deg) saturate(.4) brightness(.85) contrast(.9)}}
:root[data-theme="dark"] .leaflet-tile-pane{filter:invert(1) hue-rotate(200deg) saturate(.4) brightness(.85) contrast(.9)}
.leaflet-bar a{background:var(--surface);color:var(--ink);border-color:var(--line)}
.leaflet-control-attribution{font-size:10px}
/* Fiche événement */
#evsheet{position:fixed;inset:0;z-index:2000;display:none}
#evsheet.open{display:block}
.sheet-bg{position:absolute;inset:0;background:rgba(20,12,36,.45);backdrop-filter:blur(2px);animation:fadein .2s ease}
.sheet{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(460px,calc(100% - 32px));max-height:calc(100% - 48px);overflow:auto;background:var(--surface);color:var(--ink);border-radius:20px;padding:22px 22px 20px;box-shadow:0 30px 60px -20px rgba(20,10,40,.6);animation:popin .22s cubic-bezier(.2,1.2,.4,1)}
.sheet .x{position:absolute;top:10px;right:10px}
.sheet h2{font-size:21px;margin:10px 32px 14px 0;line-height:1.2}
.shdl{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0;font-size:14px}
.shdl dt{color:var(--muted);font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.06em;padding-top:2px}
.shdl dd{margin:0}
.shdesc{font-size:14px;white-space:pre-line;margin:14px 0 0}
.sheet .ctas{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
@keyframes popin{from{opacity:0;transform:translate(-50%,-46%) scale(.97)}}
@keyframes fadein{from{opacity:0}}
@keyframes slideup{from{transform:translateY(100%)}}
@media (max-width:640px){
  .sheet{left:0;right:0;top:auto;bottom:0;transform:none;width:100%;max-height:86vh;border-radius:20px 20px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom,0px));animation:slideup .25s cubic-bezier(.2,.9,.3,1)}
  .sheet::before{content:"";display:block;width:40px;height:4px;border-radius:2px;background:var(--line);margin:-6px auto 10px}
  .sheet .ctas .btn{flex:1 1 auto}
}
@media (prefers-reduced-motion:reduce){.sheet,.sheet-bg,.pin,.evrow{animation:none;transition:none}}
@media (max-width:860px){
  .evx{display:flex;flex-direction:column}
  .evbody{display:contents}
  .evsearch{order:1}.evmap{order:2;margin-top:10px}.evfilters{order:3;margin-top:12px}.evstatus{order:4}.evlist{order:5}
}
@media (max-width:520px){
  .hero2{padding-block:20px 0}
  .hero2 h1{font-size:24px}
  .hero2 p{display:none}
  .evx{margin-top:12px}
  .evsearch{flex-wrap:nowrap}
  .evq{flex:1 1 0;min-width:0}
  .evsearch .btn-duck{display:none}
  .evsearch .btn-ghost{flex:none;padding-inline:14px}
  .evmap{height:52vh}
}
.evmap{scroll-margin-top:130px}

/* Vue nationale : pastilles par région, puis événements une fois la région choisie */
.bubblewrap{background:none;border:0}
.bubble{display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--ghost);color:#fff;border:3px solid #fff;box-shadow:0 6px 16px -4px rgba(40,20,80,.6);cursor:pointer;transition:transform .18s cubic-bezier(.3,1.6,.6,1)}
.bubble b{font-size:15px;font-weight:700}
.bubblewrap:hover .bubble,.bubblewrap:focus-visible .bubble{transform:scale(1.14)}
.evhint{font-size:13px;color:var(--muted);padding:2px 4px 4px}
.regrow{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 14px;color:var(--ink);font-weight:700;font-size:14px;transition:border-color .15s,transform .15s,box-shadow .15s}
.regrow:hover{border-color:var(--ghost);transform:translateY(-1px);box-shadow:0 6px 16px -10px rgba(40,20,80,.5)}
.regn{flex:1;min-width:0}
.regc{background:var(--ghost-soft);color:var(--ghost);border-radius:999px;min-width:30px;text-align:center;padding:2px 9px;font-size:13px}
.regrow svg{color:var(--muted);flex:none}
.back-btn{font-weight:700}
.evx .evbody.national .evmap{cursor:default}

/* Accueil : petit bloc « Choisissez votre région » */
.homereg{padding-block:8px 4px}
.homereg-box{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:20px 22px;box-shadow:0 14px 30px -24px rgba(40,20,80,.5)}
.homereg-head{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.homereg-head h2{font-size:22px;margin-top:4px}
.regchips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.regchip{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:999px;padding:7px 8px 7px 14px;font-size:13.5px;font-weight:600;transition:border-color .15s,background .15s,transform .15s}
.regchip b{background:var(--ghost-soft);color:var(--ghost);border-radius:999px;min-width:24px;text-align:center;padding:1px 7px;font-size:12px}
.regchip:hover{border-color:var(--ghost);transform:translateY(-1px)}
.homereg-foot{margin:14px 0 0;font-size:13px;color:var(--muted)}
@media (max-width:520px){.homereg-box{padding:16px}.homereg-head .btn{width:100%}.hero2 h1{font-size:24px}}

/* Accueil : petite carte de France cliquable (SVG) */
.homemap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,340px);gap:32px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:24px 28px;margin-block:12px}
.homemap h2{font-size:22px;margin:4px 0 6px}
.homemap p{margin:0 0 12px;color:var(--muted)}
.fmap-box{position:relative;max-width:340px;width:100%;justify-self:center}
.fmap{display:block;width:100%;height:auto}
.fmap-ph{aspect-ratio:412/404}
.fr-reg{fill:var(--ghost-soft);stroke:var(--surface);stroke-width:1.6;stroke-linejoin:round;transition:fill .15s,transform .15s;outline:none}
.fr-reg.on{fill:color-mix(in srgb,var(--ghost) 38%,var(--surface));cursor:pointer}
.fr-reg.on:hover,.fr-reg.on:focus-visible,.fr-reg.hot.on{fill:var(--ghost)}
.fr-reg:not(.on){fill:color-mix(in srgb,var(--ghost-soft) 70%,var(--bg))}
.fmtip{position:absolute;transform:translate(-50%,-100%);pointer-events:none;background:var(--ink);color:var(--bg);border-radius:10px;padding:6px 10px;font-size:13px;line-height:1.3;white-space:nowrap;display:flex;flex-direction:column;align-items:center;box-shadow:0 8px 20px -8px rgba(20,10,40,.6);z-index:2}
.fmtip[hidden]{display:none}
.fmtip span{font-size:12px;opacity:.8}
@media (max-width:640px){.homemap{grid-template-columns:1fr;padding:18px;gap:14px}.fmap-box{max-width:280px}}
/* Page Événements : retour à la carte entière bien visible */
.back-btn{box-shadow:0 6px 16px -8px rgba(160,120,0,.6)}
.evstatus .back-btn{padding:10px 18px;font-size:14px}
.mapback{position:absolute;top:10px;left:54px;z-index:1000;border:0;border-radius:999px;background:var(--duck);color:var(--duck-ink);font:700 13px var(--body);padding:9px 16px;box-shadow:0 6px 16px -6px rgba(20,10,40,.6);cursor:pointer}
.mapback[hidden]{display:none}
.mapback:hover{filter:brightness(1.05)}

.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}
.kpis div{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:2px}
.kpis strong{font-size:26px}
.kpis span{color:var(--muted);font-size:13px}
.nextev{display:flex;flex-direction:column;gap:2px;margin-top:12px;padding:14px 18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:inherit;text-decoration:none}
.nextev:hover{border-color:var(--ghost)}
.nextev span:last-child{color:var(--muted);font-size:14px}
