/* Calabria Mia : mer Tyrrhénienne, piment et bergamote */
:root{
  --bg:#f4f6f8; --surface:#ffffff; --sunk:#eaeef3; --ink:#15223a; --muted:#4a576c; --line:#dbe1e9;
  --sea:#1d4f7c; --sea-soft:#e2ecf6; --on-sea:#ffffff; --pepper:#b8322a; --bergamot:#c7a81f; --bergamot-soft:#f6efcf;
  --ok:#2f7a4b; --ok-soft:#e1f1e6; --warn:#a86a06; --warn-soft:#f9ecd2; --bad:#b0362b; --bad-soft:#f8e1de;
  --display:"Lora",Georgia,"Times New Roman",serif;
  --body:"Karla","Segoe UI",system-ui,sans-serif;
  --r:10px;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root{
  --bg:#0e1520; --surface:#161f2d; --sunk:#1c2737; --ink:#e6ebf2; --muted:#b0bbcb; --line:#283549;
  --sea:#79aee0; --sea-soft:#1b2d43; --on-sea:#0e1520; --pepper:#ea6e60; --bergamot:#e3c94e; --bergamot-soft:#352f14;
  --ok:#6cc58f; --ok-soft:#173023; --warn:#e8b04f; --warn-soft:#33270f; --bad:#ef7b6e; --bad-soft:#3a1b18;
  color-scheme:dark}}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{background:var(--bg);color:var(--ink);font-family:var(--body);font-size:16px;font-weight:450;line-height:1.6;-webkit-font-smoothing:auto}
h1,h2,h3{font-family:var(--display);font-weight:600;text-wrap:balance;margin:0;line-height:1.15}
h1{font-size:2rem} h2{font-size:1.4rem} h3{font-size:1.12rem}
p{margin:0}
img{max-width:100%}
a{color:var(--sea)}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--sea);outline-offset:2px}
[hidden]{display:none!important}
/* Lisibilité */
.datebox .d,.plan .pp,.tk-name,.arrival .count,.lg-row.result,.mc-first,.verdict .big{font-weight:600}
.meta,.hint{font-weight:500}
b,strong{font-weight:700}
.num,td,.v,.licence,.pp{font-variant-numeric:tabular-nums lining-nums}
.hint{color:var(--muted);font-size:.88rem}
.prose{max-width:65ch;margin-bottom:16px}

/* ---- Boutons et champs ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:var(--surface);padding:9px 14px;border-radius:8px;cursor:pointer;font-weight:600;text-decoration:none;color:var(--ink);white-space:nowrap}
.btn:hover{background:var(--sunk)}
.btn.primary{background:var(--sea);border-color:var(--sea);color:var(--on-sea)}
.btn.primary:hover{filter:brightness(1.08)}
.btn.bergamot{background:var(--bergamot);border-color:var(--bergamot);color:#15223a}
.btn.danger{color:var(--bad);border-color:var(--bad);background:transparent}
.btn.small{padding:5px 10px;font-size:.85rem}
.btn.big{padding:12px 20px;font-size:1rem}
.btn.ghost{border-color:transparent;background:transparent}
input,select,textarea{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:9px 11px;width:100%;min-width:0}
textarea{min-height:80px;resize:vertical}
label.f{display:flex;flex-direction:column;gap:5px;font-size:.86rem;font-weight:600;min-width:0}
label.f .h{font-weight:450;color:var(--muted);font-size:.8rem}
label.check{display:flex;gap:10px;align-items:flex-start;font-size:.9rem}
label.check input{width:auto;margin-top:4px}
.form{display:flex;flex-direction:column;gap:16px}
.frow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.frow.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.frow.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
fieldset.person{border:1px solid var(--line);border-radius:var(--r);padding:14px 16px 16px;margin:0;display:flex;flex-direction:column;gap:10px;background:var(--surface)}
fieldset.person legend{font-weight:700;padding:0 6px;font-size:.9rem}
fieldset.child{background:var(--sunk)}
fieldset.child .btn{align-self:flex-start}
[data-children]{display:flex;flex-direction:column;gap:12px;margin-bottom:12px}
.step{display:flex;flex-direction:column;gap:12px}
.step h2{display:flex;align-items:center;gap:10px}
.stepn{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--pepper);color:var(--surface);font-family:var(--body);font-size:.9rem;font-weight:700;flex:none}
.submitbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r)}
.total{font-family:var(--display);font-size:1.6rem;font-weight:600;margin-left:6px}

/* ---- Messages ---- */
.flash{padding:12px 16px;border-radius:8px;margin-bottom:16px;font-size:.93rem}
.flash ul{margin:6px 0 0;padding-left:20px}
.flash.ok{background:var(--ok-soft);color:var(--ok)}
.flash.warn{background:var(--warn-soft);color:var(--warn)}
.flash.bad{background:var(--bad-soft);color:var(--bad)}

/* ---- Éléments communs ---- */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:20px;min-width:0}
.panel > h3{margin-bottom:14px}
.empty{padding:28px 16px;text-align:center;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:10px}
.empty b{color:var(--ink);font-family:var(--display);font-weight:600;font-size:1.15rem}
.pill{display:inline-flex;align-items:center;gap:6px;padding:2px 9px;border-radius:999px;font-size:.8rem;font-weight:600;white-space:nowrap}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.pill.ok{background:var(--ok-soft);color:var(--ok)}
.pill.warn{background:var(--warn-soft);color:var(--warn)}
.pill.bad{background:var(--bad-soft);color:var(--bad)}
.pill.neutral{background:var(--sunk);color:var(--muted)}
.tag{display:inline-block;padding:1px 8px;border-radius:6px;font-size:.8rem;font-weight:700;letter-spacing:.03em;background:var(--sunk)}
.tag.solo{background:var(--sea-soft);color:var(--sea)}
.tag.duo{background:var(--bad-soft);color:var(--pepper)}
.tag.famille{background:var(--bergamot-soft);color:var(--warn)}
.licence{font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;font-size:.9rem;font-weight:600;letter-spacing:.02em;white-space:nowrap}
.codefoyer{display:inline-flex;flex-direction:column;border:2px dashed var(--bergamot);border-radius:10px;padding:10px 16px;margin-bottom:18px}
.codefoyer .l{font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:700}
.codefoyer .v{font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;font-size:1.3rem;font-weight:700}

.list{display:flex;flex-direction:column}
.list .it{display:flex;gap:14px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}
.list.panel .it{padding:12px 0}
.list .it:last-child{border-bottom:0}
.it .grow,.grow{flex:1;min-width:0}
.it .t{font-weight:600}
.meta{font-size:.84rem;color:var(--muted)}
a.it.link:hover .t,a.card.link:hover h3{color:var(--sea)}
.datebox{flex:none;width:52px;text-align:center;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--surface)}
.datebox .m{background:var(--pepper);color:var(--surface);font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;font-weight:700;padding:2px 0}
.datebox .d{font-family:var(--display);font-size:1.35rem;padding:2px 0;font-variant-numeric:lining-nums}

.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:16px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:18px;display:flex;flex-direction:column;gap:12px;min-width:0;color:inherit;text-decoration:none}
.card .row,.row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.row.start{justify-content:flex-start}
.facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border-top:1px solid var(--line);padding-top:12px}
.facts div{display:flex;flex-direction:column;min-width:0}
.facts .l{font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:600}
.facts .v{font-weight:700}
.clamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:.92rem}
.progress{height:8px;background:var(--sunk);border-radius:6px;overflow:hidden}
.progress div{height:100%;background:var(--sea)}
.two{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:16px;align-items:start}

/* ---- Formules ---- */
.plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.plan{position:relative;background:var(--surface);border:2px solid var(--line);border-radius:12px;padding:18px 20px;cursor:pointer;display:flex;flex-direction:column;gap:6px;color:inherit;text-decoration:none}
.plan:hover{border-color:var(--sea)}
.plan.on{border-color:var(--sea);background:var(--sea-soft)}
.plan input{position:absolute;opacity:0;pointer-events:none;left:0;top:0;margin:0}
.plan:has(input:focus-visible){outline:2px solid var(--sea);outline-offset:2px}
.plan .pn{font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:var(--muted)}
.plan .pp{font-family:var(--display);font-size:2.6rem;line-height:1}
.plan .pp small{font-family:var(--body);font-size:.9rem;color:var(--muted);margin-left:4px}
.plan .pd{font-size:.9rem;color:var(--muted)}
.plan .go{margin-top:6px;font-weight:700;color:var(--sea);font-size:.9rem}

/* ---- Site public ---- */
.wrap{max-width:1080px;margin:0 auto;padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
.topbar{background:var(--surface);border-bottom:1px solid var(--line)}
.topbar-in{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:14px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink)}
.brandtext{display:flex;flex-direction:column;gap:2px;min-width:0}
.brandlogo{width:48px;height:48px;flex:none;object-fit:contain}
.login-logo{display:flex;justify-content:center;margin-bottom:16px}
.login-logo img{width:120px;height:auto}
.hero-logo{position:relative;padding-right:300px;min-height:300px;justify-content:center}
.herologo{position:absolute;right:40px;top:50%;transform:translateY(-50%);width:230px;height:auto;filter:drop-shadow(0 6px 18px rgba(0,0,0,.25))}
.brand .name{font-family:var(--display);font-size:1.5rem;font-weight:700;line-height:1.1}
.brand .name i{font-weight:500;color:var(--pepper)}
.brand .sub{font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.pubnav{display:flex;gap:4px;flex-wrap:wrap}
.pubnav a{padding:8px 12px;border-radius:8px;text-decoration:none;color:var(--ink);font-weight:600}
.pubnav a:hover{background:var(--sunk)}
.pubnav a[aria-current="page"]{background:var(--sea-soft);color:var(--sea)}
.pubmain{padding-block:28px 56px;display:flex;flex-direction:column;gap:20px}
.hero{background:var(--sea);color:var(--on-sea);border-radius:14px;padding:40px;display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.hero.slim{padding:28px 32px}
.hero h1{font-size:2.6rem;max-width:20ch}
.hero.slim h1{font-size:2rem}
.hero h1 i{color:var(--bergamot)}
.hero p{max-width:60ch;opacity:.92}
.hero .camp{font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--bergamot)}
.sect{margin-top:12px}
.pubfoot{border-top:1px solid var(--line);background:var(--surface);color:var(--muted);font-size:.88rem}
.pubfoot .wrap{display:flex;flex-wrap:wrap;gap:12px 24px;justify-content:space-between;align-items:center;padding-block:20px}
.pubfoot .name{font-family:var(--display);font-weight:700;color:var(--ink)}
.pubfoot .name i{color:var(--pepper);font-weight:500}

/* ---- Espace bureau ---- */
.app{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}
.rail{background:var(--surface);border-right:1px solid var(--line);padding:24px 16px;display:flex;flex-direction:column;gap:26px;position:sticky;top:0;height:100vh;overflow-y:auto}
.rail .brand{padding:0 8px}
.tricolore{display:flex;height:3px;width:42px;margin-top:8px;border-radius:2px;overflow:hidden}
.tricolore span{flex:1;background:var(--line)}
.tricolore span:first-child{background:var(--ok)}
.tricolore span:last-child{background:var(--pepper)}
.menu{display:flex;flex-direction:column;gap:2px}
.menu a{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;text-decoration:none;color:var(--ink);font-weight:500}
.menu a svg{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;color:var(--muted)}
.menu a:hover{background:var(--sunk)}
.menu a[aria-current="page"]{background:var(--sea-soft);color:var(--sea)}
.menu a[aria-current="page"] svg{color:var(--sea)}
.rail .foot{margin-top:auto;font-size:.84rem;color:var(--muted);padding:0 8px}
.adminmain{padding:32px;min-width:0;max-width:1200px;width:100%;display:flex;flex-direction:column;gap:16px}
.head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:8px}
.head p{margin-top:4px;color:var(--muted)}
.head .actions{display:flex;gap:10px;flex-wrap:wrap}
.eyebrow{font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;color:var(--pepper);font-weight:700;margin-bottom:6px}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px 18px;display:flex;flex-direction:column;gap:4px;min-width:0}
.kpi .l{font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:600}
.kpi .v{font-family:var(--display);font-size:2rem;font-weight:600;line-height:1.1}
.kpi .s{font-size:.83rem;color:var(--muted)}
.kpi.attn .v{color:var(--warn)}
.bars{display:flex;flex-direction:column;gap:12px}
.bar .top{display:flex;justify-content:space-between;font-size:.88rem;margin-bottom:5px;gap:8px}
.bar .track{height:10px;background:var(--sunk);border-radius:6px;overflow:hidden}
.bar .fill{height:100%;border-radius:6px}
.fill.solo{background:var(--sea)} .fill.duo{background:var(--pepper)} .fill.famille{background:var(--bergamot)}
.toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.toolbar input[type=search]{flex:1 1 240px}
.toolbar select{width:auto}
.tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}
table{width:100%;border-collapse:collapse;min-width:760px}
th,td{text-align:left;padding:10px 14px;border-bottom:1px solid var(--line);vertical-align:middle}
th{font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700;background:var(--sunk);white-space:nowrap}
tr:last-child td{border-bottom:0}
tr.left td{color:var(--muted)}
tr.left input{opacity:.6}
td .who{font-weight:600}
td a{text-decoration:none}
.right{text-align:right}
.inline{display:inline}
.actions-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.danger-zone{border-color:var(--bad-soft)}
details.more summary{cursor:pointer;font-weight:600;color:var(--sea)}
details.more[open] summary{margin-bottom:12px}
.login{max-width:400px;margin:10vh auto;padding:0 20px}
.copy{display:flex;gap:8px}
.copy input{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.85rem}

@media (max-width:980px){.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.two{grid-template-columns:minmax(0,1fr)}.frow.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:860px){
  .app{grid-template-columns:minmax(0,1fr)}
  .rail{position:sticky;top:0;height:auto;flex-direction:row;align-items:center;gap:12px;padding:10px 16px;border-right:0;border-bottom:1px solid var(--line);z-index:20;overflow-x:auto}
  .rail .brand{padding:0;flex:none}.rail .brand .name{font-size:1.15rem}.rail .brand .sub,.tricolore,.rail .foot{display:none}
  .rail .brandlogo{width:34px;height:34px}
  .hero.hero-logo{padding-right:22px;min-height:0}
  .herologo{position:static;transform:none;width:110px}
  .menu{flex-direction:row;gap:4px}
  .menu a{padding:7px 10px;white-space:nowrap;font-size:.9rem}
  .menu a svg{display:none}
  .adminmain{padding:20px 16px 48px}
  .plans{grid-template-columns:minmax(0,1fr)}
  .frow,.frow.three,.frow.four{grid-template-columns:minmax(0,1fr)}
  .hero{padding:26px 22px}.hero h1{font-size:2rem}.hero.slim{padding:22px}.hero.slim h1{font-size:1.6rem}
  h1{font-size:1.6rem}
}
@media (prefers-reduced-motion:no-preference){.fill,.progress div{transition:width .5s ease}}

/* ---- Flyer d'événement ---- */
.flyer{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-top:16px;text-decoration:none;color:inherit}
.flyer img{width:100%;max-width:420px;height:auto;border-radius:8px;border:1px solid var(--line);box-shadow:0 4px 16px rgba(21,34,58,.12)}
.flyer.pdf{flex-direction:row;align-items:center;gap:14px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--r);background:var(--sunk);max-width:460px}
.flyer.pdf:hover{border-color:var(--sea)}
.pdficon{flex:none;display:grid;place-items:center;width:44px;height:54px;border-radius:4px;background:var(--pepper);color:#fff;font-weight:700;font-size:.8rem;letter-spacing:.04em}
.flyerthumb{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:8px;max-width:100%}

/* ---- Billet ---- */
.ticket{max-width:520px;width:100%;margin:0 auto;background:#fff;color:#15223a;border-radius:14px;overflow:hidden;border:1px solid #dbe1e9;box-shadow:0 6px 20px rgba(21,34,58,.10)}
.tk-top{background:#1d4f7c;color:#fff;display:flex;align-items:center;gap:12px;padding:14px 18px}
.tk-top b{display:block;font-family:var(--display);font-size:1.2rem;font-weight:600;line-height:1.2}
.tk-kind{font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;color:#e3c94e;font-weight:700}
.tk-logo{width:52px;height:52px;flex:none}
.tk-body{display:flex;gap:16px;padding:18px;align-items:flex-start;flex-wrap:wrap}
.tk-info{flex:1;min-width:200px;display:flex;flex-direction:column;gap:4px}
.tk-when{font-weight:700}
.tk-name{font-family:var(--display);font-size:1.4rem;margin-top:8px}
.tk-people{margin:6px 0 0;padding-left:18px}
.tk-qr{width:150px;flex:none}
.tk-qr svg{width:100%;height:auto;display:block}
.tk-foot{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px 18px;border-top:1px dashed #dbe1e9}
.ticket .meta,.ticket .hint{color:#5b687d}

/* ---- Mode Accueil ---- */
.arrivals{display:flex;flex-direction:column;gap:10px}
.arrival{background:var(--surface);border:1px solid var(--line);border-left:6px solid var(--line);border-radius:var(--r)}
.arrival.part{border-left-color:var(--warn)}
.arrival.full{border-left-color:var(--ok)}
.arrival.over{border-left-color:var(--bad);background:var(--bad-soft)}
.arrival summary{display:flex;align-items:center;gap:12px;padding:12px 14px;cursor:pointer;list-style:none}
.arrival summary::-webkit-details-marker{display:none}
.arrival .count{font-family:var(--display);font-size:1.5rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.arrival-body{padding:0 14px 14px;display:flex;flex-direction:column;gap:12px}
.people{display:flex;flex-direction:column;gap:6px}
.people > .l,.checkin-event .people > .l{font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700}
.who-toggle{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);cursor:pointer;font-weight:600;min-height:48px}
.who-toggle small{margin-left:auto;font-weight:450;color:var(--muted);font-size:.8rem;text-align:right}
.who-toggle .dot{width:20px;height:20px;border-radius:50%;border:2px solid var(--muted);flex:none}
.who-toggle.on{background:var(--ok-soft);border-color:var(--ok)}
.who-toggle.on .dot{background:var(--ok);border-color:var(--ok);box-shadow:inset 0 0 0 3px var(--ok-soft)}
.checkin-event{display:flex;flex-direction:column;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}
.checkin-event:last-child{border-bottom:0}
.paycode{display:flex;flex-direction:column;gap:10px;align-items:flex-start;border-color:var(--sea)}
.paycode-qr{width:220px;max-width:100%;background:#fff;padding:8px;border-radius:8px}
.paycode-qr svg{width:100%;height:auto;display:block}
.addplace{border-top:1px solid var(--line);padding-top:10px}

/* ---- Rapport d'événement ---- */
.ledger{display:flex;flex-direction:column}
.lg-h{font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700;margin:12px 0 4px}
.lg-h:first-child{margin-top:0}
.lg-row{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--line)}
.lg-row .num{white-space:nowrap}
.lg-row.lg-tot{font-weight:700;border-bottom:2px solid var(--ink)}
.lg-row.result{font-family:var(--display);font-size:1.3rem;border-bottom:0;padding-top:12px}
.lg-row.result.pos .num{color:var(--ok)}
.lg-row.result.neg .num{color:var(--bad)}

/* ---- Aperçu d'e-mail ---- */
.mailpreview{white-space:pre-wrap;overflow-wrap:anywhere;font-family:var(--body);font-size:.92rem;background:var(--sunk);border-radius:8px;padding:16px;margin:0;max-width:72ch}

/* ---- Grille des tarifs d'événement ---- */
.pricegrid{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr);gap:8px 16px;align-items:baseline;border-top:1px solid var(--line);padding-top:12px}
.pricegrid.one{grid-template-columns:auto minmax(0,1fr)}
.pricegrid .h{font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700}
.pricegrid .h small{text-transform:none;letter-spacing:0;font-weight:500}
.pricegrid b{font-variant-numeric:tabular-nums}

/* ---- Cartes d'adhérent (format carte bancaire 85,6 × 54 mm) ---- */
.cardsheet{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr));gap:18px}
.mcard{--c-sea:#1d4f7c;--c-ink:#15223a;--c-muted:#5b687d;--c-gold:#c7a81f;--c-pepper:#b8322a;--c-green:#2f7a4b;
  container-type:inline-size;width:100%;max-width:420px;aspect-ratio:85.6/54;background:#fff;color:var(--c-ink);
  border-radius:12px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 1px 2px rgba(21,34,58,.12),0 6px 20px rgba(21,34,58,.10);
  border:1px solid #dbe1e9;-webkit-print-color-adjust:exact;print-color-adjust:exact;break-inside:avoid}
.mc-top{background:var(--c-sea);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:3cqw;padding:3cqw 4.5cqw;height:20cqw}
.mc-logo{height:16cqw;width:auto;max-width:42cqw;object-fit:contain;display:block}
.mc-logo.wordmark{font-family:var(--display);font-weight:700;font-size:6.4cqw;line-height:1;color:#fff;white-space:nowrap}
.mc-logo.wordmark i{color:var(--c-gold);font-weight:500}
.mc-kind{display:flex;flex-direction:column;align-items:flex-end;text-align:right;line-height:1.15}
.mc-kind span{font-size:2.9cqw;letter-spacing:.14em;text-transform:uppercase;opacity:.85}
.mc-kind b{font-size:3.8cqw;color:var(--c-gold)}
.mc-body{flex:1;display:flex;gap:4cqw;padding:3.6cqw 4.5cqw 2.6cqw;align-items:center;min-height:0}
.mc-id{flex:1;min-width:0;display:flex;flex-direction:column}
.mc-first{font-family:var(--display);font-size:5.6cqw;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mc-last{font-family:var(--display);font-weight:700;font-size:6.6cqw;line-height:1.05;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:2.4cqw}
.mc-label{font-size:2.5cqw;letter-spacing:.14em;text-transform:uppercase;color:var(--c-muted);font-weight:700}
.mc-num{font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;font-size:6cqw;font-weight:700;letter-spacing:.04em;color:var(--c-pepper);line-height:1.15}
.mc-meta{font-size:3.1cqw;margin-top:1.4cqw;white-space:nowrap}
.mc-meta b{font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace}
.mc-valid{font-size:2.7cqw;color:var(--c-muted);margin-top:.6cqw}
.mc-qr{flex:none;width:30cqw;aspect-ratio:1}
.mc-qr svg{display:block;width:100%;height:100%}
.mc-flag{display:flex;height:2.2cqw;flex:none}
.mc-flag span{flex:1;background:var(--c-green)}
.mc-flag span:nth-child(2){background:#fff}
.mc-flag span:nth-child(3){background:var(--c-pepper)}

/* ---- Vérification à l'entrée ---- */
.verdict{border-radius:14px;padding:22px 24px;display:flex;flex-direction:column;gap:6px;color:#fff}
.verdict.ok{background:#2f7a4b}.verdict.bad{background:#b0362b}.verdict.warn{background:#a86a06}
.verdict .big{font-family:var(--display);font-size:2.4rem;line-height:1.05}
.verdict .who{font-size:1.3rem;font-weight:700}
.verdict .licence{font-size:1.05rem;color:#fff;opacity:.95}

@media print{
  @page{size:A4;margin:8mm}
  body{background:#fff}
  .noprint,.rail,.topbar,.pubfoot,.flash,.head:not(.print-keep){display:none!important}
  .print-keep .eyebrow{display:none}
  .app{display:block}.adminmain,.pubmain{padding:0;max-width:none}
  .cardsheet{grid-template-columns:repeat(2,85.6mm);gap:2mm 4mm;justify-content:center;align-content:start}
  .mcard{width:85.6mm;max-width:none;height:54mm;box-shadow:none;border:.2mm dashed #9aa6b8;border-radius:3mm}
}


/* ---- Date de naissance en trois listes ---- */
.bd3{display:grid;grid-template-columns:minmax(4.6em,.8fr) minmax(7em,1.6fr) minmax(5.4em,1fr);gap:6px;margin-top:4px}
.bd3 select{width:100%;min-width:0}
td .bd3{min-width:16em}
.bd-msg{display:block;color:var(--bad);font-size:.85rem;font-weight:600;margin-top:4px}
