/* Billetterie C'est utile — design responsive, sans dépendance externe */
:root {
  --bg: #faf7f2; --surface: #ffffff; --ink: #1d1a26; --muted: #6b6676; --line: #e7e1d8;
  --accent: #c2301d; --accent-ink: #ffffff; --accent-soft: #fbe9e4;
  --gold: #b7791f; --ok: #1f7a4d; --ok-soft: #e3f4ea; --warn: #b45309; --warn-soft: #fdf1dd; --bad: #b42318; --bad-soft: #fde8e6;
  --radius: 14px; --shadow: 0 1px 2px rgba(29,26,38,.06), 0 8px 24px -12px rgba(29,26,38,.18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14121b; --surface: #1d1a28; --ink: #f1ecf6; --muted: #a39cb3; --line: #2f2b3d;
    --accent: #ff6a4d; --accent-ink: #1a0905; --accent-soft: #3a1f1a;
    --ok: #55d08f; --ok-soft: #173325; --warn: #f2b45a; --warn-soft: #3a2a12; --bad: #ff8a7d; --bad-soft: #3b1b19;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px -14px rgba(0,0,0,.6); }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-block: 28px 56px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 520px; margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw + .6rem, 2.6rem); }
h2 { font-size: 1.3rem; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--accent); margin: 0 0 .4rem; }
.eyebrow a { text-decoration: none; }
.lead { font-size: 1.1rem; max-width: 62ch; }
.back { text-decoration: none; color: var(--muted); font-size: .92rem; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.brand small { display: block; font: 600 .66rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-size: 1.1rem; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a, .linklike { padding: 8px 12px; border-radius: 10px; text-decoration: none; font-size: .95rem; color: var(--muted); font-weight: 500; }
.nav a:hover, .linklike:hover { background: var(--accent-soft); color: var(--ink); }
.nav a[aria-current] { color: var(--ink); background: var(--accent-soft); }
.linklike { background: none; border: 0; cursor: pointer; font-family: inherit; }
.burger { display: none; font-size: 1.4rem; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
@media (max-width: 860px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a, .linklike { padding: 12px; font-size: 1rem; text-align: left; }
}
.foot { padding-block: 24px 36px; color: var(--muted); font-size: .85rem; display: flex; gap: 8px 24px; flex-wrap: wrap; border-top: 1px solid var(--line); }

/* Portail */
.nav a.cta { background: var(--accent); color: var(--accent-ink); font-weight: 700; } .nav a.cta:hover { background: var(--accent); filter: brightness(1.08); color: var(--accent-ink); }
.subnav { background: var(--surface); border-bottom: 1px solid var(--line); } .subnav .wrap { display: flex; gap: 4px; align-items: center; overflow-x: auto; padding-block: 6px; }
.subnav a { padding: 8px 14px; border-radius: 10px; text-decoration: none; font-size: .92rem; font-weight: 600; color: var(--muted); white-space: nowrap; } .subnav a:hover { background: var(--accent-soft); color: var(--ink); } .subnav a[aria-current] { background: var(--ink); color: var(--bg); }
.subnav-title { font: 700 1rem var(--serif); margin-right: 10px; white-space: nowrap; }
.big-hero { padding: 36px 0 30px; } .big-hero h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
.module { align-items: flex-start; } .module h3 { margin: .3em 0 .1em; font-size: 1.25rem; } .module .btn, .module form { margin-top: auto; }
.mod-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); font-size: 1.6rem; }
.module.locked { background: color-mix(in srgb, var(--surface) 70%, var(--bg)); } .linkcard { text-decoration: none; transition: border-color .15s, transform .15s; } .linkcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.center { text-align: center; } .narrow.wide { max-width: 680px; }
.attn { border-left: 6px solid var(--warn); } .req { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px dashed var(--line); } .req:last-child { border-bottom: 0; }
.badge .x { border: 0; background: none; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 0 0 4px; opacity: .7; } .badge .x:hover { opacity: 1; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.danger-zone { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; } .danger-zone summary { cursor: pointer; color: var(--bad); font-weight: 600; }
.prose { max-width: 70ch; } .prose h2 { margin-top: 1.6em; } .prose li { margin-bottom: .5em; }
.foot a { color: inherit; }

/* Messages */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; border: 1px solid; font-weight: 500; }
.flash.ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.flash.err { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }

/* Cartes et grilles */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card.empty { text-align: center; color: var(--muted); padding: 40px 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; align-items: stretch; }
.grid .card { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.show h2 { margin: 0 0 .2em; font-size: 1.45rem; } .show h2 a { text-decoration: none; }
.show .btn { margin-top: auto; align-self: flex-start; }
.show.off { opacity: .65; }
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.hero { padding: 12px 0 28px; } .hero.compact { padding-bottom: 20px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; } .head h1 { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.chip { font-size: .82rem; padding: 3px 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); } .chip b { color: var(--accent); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer; transition: transform .08s, background .15s, border-color .15s; }
.btn:hover { border-color: var(--ink); } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); } .btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); } .btn.danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .86rem; border-radius: 10px; }
.btn.big { min-height: 52px; font-size: 1.05rem; width: 100%; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, .slot:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }

/* Formulaires */
.form { display: grid; gap: 14px; } .form > h2 { margin: 0; }
label { display: grid; gap: 5px; font-weight: 600; font-size: .9rem; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 1rem var(--sans); }
textarea { resize: vertical; min-height: 70px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; margin: 0; min-width: 0; } legend { font-weight: 700; font-size: .85rem; padding-inline: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 600px) { .row2, .row3 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; } .check input { width: 20px; height: 20px; accent-color: var(--accent); }
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.inline { display: inline; } .inline-form select { min-width: 220px; }
.stack { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } .stack input { width: 180px; min-height: 36px; padding: 6px 10px; font-size: .86rem; }

/* Tarifs / stepper */
.tarif { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); } .tarif:last-of-type { border-bottom: 0; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.stepper button:hover { border-color: var(--accent); color: var(--accent); }
.stepper input { width: 58px !important; text-align: center; font-weight: 700; font-size: 1.15rem !important; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.total { margin: 10px 0 0; font-size: 1.05rem; text-align: right; } .total b { font-size: 1.35rem; color: var(--accent); font-family: var(--serif); }
.grid-t { display: grid; grid-template-columns: 1fr 110px 110px; gap: 8px 12px; align-items: center; } .grid-t b { font-size: .85rem; }
.grid-t4 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px 14px; } @media (min-width: 700px) { .grid-t4 { grid-template-columns: 1.4fr 1fr 1.4fr 1fr; } }

/* Séances (public) */
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.slot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.slot:hover { border-color: var(--accent); box-shadow: var(--shadow); } .slot.sel { border-color: var(--accent); background: var(--accent-soft); }
.slot-date { font-weight: 700; } .slot-date small { margin-left: 8px; font-weight: 500; color: var(--muted); }
.slot-state { font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.slot.ok .slot-state { background: var(--ok-soft); color: var(--ok); } .slot.few .slot-state { background: var(--warn-soft); color: var(--warn); }
.slot.full .slot-state { background: var(--bad-soft); color: var(--bad); } .slot.closed { opacity: .55; } .slot.closed .slot-state { color: var(--muted); }
.ticket { border-left: 6px solid var(--accent); }
.ticket h1 { margin-bottom: .2em; }

/* Admin : indicateurs, listes */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; }
.kpi span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.kpi b { font: 700 2rem/1.1 var(--serif); } .kpi small { color: var(--muted); } .kpi.bad b { color: var(--bad); } .kpi.money b { color: var(--ok); font-size: 1.6rem; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; min-width: 80px; } .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; } .bar.big { height: 12px; margin-bottom: 18px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; } .toolbar input[type=search] { flex: 1 1 240px; width: auto; }
.jump { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; text-decoration: none; border-left: 6px solid var(--accent); } .jump b { font: 700 1.4rem var(--serif); } .jump .btn { grid-row: 1 / span 3; grid-column: 2; }
@media (max-width: 600px) { .jump { grid-template-columns: 1fr; } .jump .btn { grid-row: auto; grid-column: auto; } }
.group { margin: 26px 0 10px; display: flex; align-items: baseline; gap: 10px; } .group small { color: var(--muted); font: 600 .9rem var(--sans); }
.resas { display: grid; gap: 8px; }
.resa { display: grid; grid-template-columns: minmax(180px, 1.3fr) 1.3fr auto auto; gap: 8px 16px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.resa.arrived { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.resa .who { display: grid; gap: 1px; } .note { font-size: .85rem; font-style: italic; color: var(--muted); }
.resa .ops { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 860px) { .resa { grid-template-columns: 1fr auto; } .resa .places { grid-column: 1 / -1; order: 3; } .resa .state { justify-self: end; } .resa .ops { grid-column: 1 / -1; order: 4; justify-content: stretch; } .resa .ops > * { flex: 1; } .resa .ops .btn, .resa .ops form { width: 100%; } .resa .ops form { flex: 2; } }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--line); color: var(--ink); white-space: nowrap; margin-left: 2px; }
.badge.paid, .badge.reservee { background: var(--ok-soft); color: var(--ok); } .badge.due, .badge.attente { background: var(--warn-soft); color: var(--warn); }
.badge.internet { background: var(--accent-soft); color: var(--accent); } .badge.pro { background: #e8e4fb; color: #4b3ba8; } .badge.annulee { background: var(--bad-soft); color: var(--bad); }
.sale { max-width: 520px; width: calc(100% - 32px); padding: 22px; color: var(--ink); } .sale::backdrop { background: rgba(10,8,16,.55); backdrop-filter: blur(2px); }

/* Tableaux (cartes sur mobile) */
.tablecard { padding: 0; overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: color-mix(in srgb, var(--bg) 60%, var(--surface)); }
.table tfoot th { background: color-mix(in srgb, var(--bg) 60%, var(--surface)); font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; } .table .end { text-align: right; white-space: nowrap; }
.table tr.past td { color: var(--muted); } .table tr.off { opacity: .55; } .table tbody tr:last-child td { border-bottom: 0; }
.table td a { text-decoration: none; } .table td a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .table thead { display: none; } .table, .table tbody, .table tr, .table td, .table tfoot, .table tfoot th { display: block; }
  .table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .table td { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border: 0; text-align: right !important; }
  .table td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; text-align: left; }
  .table td.end { justify-content: flex-end; } .table tfoot tr { display: flex; flex-wrap: wrap; gap: 10px; } .table tfoot th:empty { display: none; }
}

/* Impression : listes d'émargement et bilans */
.onlyprint { display: none; }
@media print {
  :root { --bg: #fff; --surface: #fff; --ink: #000; --muted: #444; --line: #bbb; --shadow: none; }
  body { font-size: 11pt; } .top, .foot, .noprint, .flash, .ops { display: none !important; } .onlyprint { display: block; }
  .card, .kpi, .resa { box-shadow: none; break-inside: avoid; } .resa { grid-template-columns: 2fr 2fr auto; padding: 6px 8px; border-radius: 0; } .resa.arrived { background: #eee; }
  main { padding: 0; } .wrap { width: 100%; } .kpis { grid-template-columns: repeat(5, 1fr); } .bar.big { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.resa.clic { cursor: pointer; transition: transform .08s, box-shadow .15s; } .resa.clic:hover, .resa.clic:focus-visible { box-shadow: 0 0 0 2px var(--accent, #6b4de6); outline: none; } .resa.clic:active { transform: scale(.995); }
.paybanner { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 22px 16px; margin-bottom: 18px; border-radius: 16px; background: var(--ok-soft); border: 2px solid var(--ok); font-size: 1.15rem; }
.paybanner b { font-size: clamp(1.8rem, 6vw, 2.8rem); line-height: 1.1; }
.sale h2 { margin-top: 0; } .sale .actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; } .total.big { font-size: 1.3rem; margin: 12px 0; }
.tarif-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 10px 0; } .tarif-col { display: grid; gap: 6px; }
.group { margin: 22px 0 10px; } .group small { color: var(--muted); font-weight: 400; font-size: .85rem; }
.bar.big { height: 10px; margin-bottom: 18px; } .resas { display: grid; gap: 8px; }

.tablecard.compact { max-width: 560px; } .tablecard.compact .table th, .tablecard.compact .table td { padding: 7px 10px; font-size: .9rem; } .tablecard.compact .table thead th { font-size: .68rem; letter-spacing: .04em; }

.evsel { margin: 4px 0 10px; } .evsel select { min-width: 260px; }
.resume-grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(320px, 1fr); gap: 20px; align-items: start; }
.resume-grid .tablecard.compact { max-width: none; } .resume-form { position: sticky; top: 12px; }
@media (max-width: 960px) { .resume-grid { grid-template-columns: 1fr; } .resume-form { position: static; } }
.evsel select { width: auto; max-width: 100%; min-width: 260px; }

.resume-form { padding: 12px 14px; gap: 6px; display: grid; } .resume-form h2 { margin: 0 0 2px; font-size: 1.1rem; }
.resume-form label { font-size: .78rem; gap: 2px; } .resume-form input:not([type=checkbox]):not([type=radio]), .resume-form select { padding: 5px 8px; min-height: 0; height: 32px; font-size: .9rem; }
.resume-form .row2 { gap: 8px; } .resume-form fieldset.tarifs { border: 0; padding: 0; margin: 0; }
.resume-form .tarif-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; }
.resume-form .tarif-col { padding: 0; border: 0; gap: 2px; } .resume-form .tarif-col > div:first-child { font-size: .78rem; line-height: 1.2; }
.resume-form .stepper { gap: 2px; } .resume-form .stepper button { width: 24px; height: 30px; min-width: 0; padding: 0; font-size: 1rem; }
.resume-form .stepper input { width: 100%; min-width: 0; padding: 0 2px; text-align: center; height: 30px; }
.resume-form .checks { display: flex; flex-wrap: wrap; gap: 4px 14px; } .resume-form .check { font-size: .82rem; }
.resume-form .submit-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .resume-form .submit-row .total { margin: 0; font-size: .95rem; }
.resume-form .btn { padding: 7px 16px; }

.resume-form textarea { padding: 5px 8px; font-size: .9rem; resize: vertical; width: 100%; }
.head.tight { margin-bottom: 4px; } .head.tight h1 { font-size: 1.6rem; }
.statline { margin: 0 0 12px; font-size: .9rem; } .statline .bad { color: var(--bad, #c42e1c); }
.mini-search { width: 100%; max-width: 560px; height: 32px; padding: 4px 10px; margin-bottom: 8px; }
.resa-table td, .resa-table th { white-space: nowrap; } .resa-table td.mail { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.resa-table tr.clic { cursor: pointer; } .resa-table tr.clic:hover { background: color-mix(in srgb, var(--accent, #c42e1c) 6%, transparent); }
.resa-table tr.sel { background: color-mix(in srgb, var(--accent, #c42e1c) 12%, transparent); box-shadow: inset 3px 0 0 var(--accent, #c42e1c); }
.obs { color: var(--muted); cursor: help; } .ops-inline { display: flex; gap: 6px; } .danger-zone { border-top: 1px dashed var(--line); padding-top: 6px; }
.resume-grid #liste .tablecard.compact { max-width: none; } .resume-grid #liste .group { margin: 16px 0 6px; font-size: 1rem; }
.resume-grid.large { grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr); }
.resa-table { table-layout: auto; } .resa-table th, .resa-table td { padding: 6px 6px; font-size: .84rem; } .resa-table thead th { font-size: .62rem; letter-spacing: .02em; }
.resa-table td.mail { max-width: 105px; } .resa-table th.num, .resa-table td.num { padding-left: 4px; padding-right: 4px; text-align: center; }
.resume-grid #liste .tablecard.compact { overflow-x: auto; }
@media (min-width: 961px) { .resume-grid.large { grid-template-columns: minmax(0, 1.25fr) minmax(330px, 1fr); } }
.resa-table td:first-child { white-space: normal; min-width: 120px; } .resa-table td.mail { max-width: 90px; }
.resa-table td, .resa-table th { padding-left: 5px; padding-right: 5px; }
.resa-table tr.entre td { color: var(--ok, #1f7a4d); } .resa-table tr.entre td a { color: inherit; }
.resume-form .total.big { font-size: 1.15rem; } .resume-grid #fiche .paybanner { margin-bottom: 10px; padding: 12px; }
.resume-grid #fiche .paybanner b { font-size: clamp(1.5rem, 4vw, 2.2rem); }

.resa-table tr.entre td { color: inherit; } .resa-table tr.entre { background: color-mix(in srgb, var(--ok, #1f7a4d) 9%, transparent); }
.resa-table tr.entre.sel { background: color-mix(in srgb, var(--ok, #1f7a4d) 20%, transparent); box-shadow: inset 3px 0 0 var(--ok, #1f7a4d); }
.table tr.past td { color: var(--muted); } .table tbody tr.past { background: color-mix(in srgb, var(--muted, #777) 14%, transparent); }

.bilan-table .table th, .bilan-table .table td { padding: 6px 7px; font-size: .86rem; } .bilan-table thead th { font-size: .64rem; letter-spacing: .02em; }
.bilan-table .grp th { text-align: center; border-bottom: 1px solid var(--line); } .bilan-table .grp th:first-child { text-align: left; }
.bilan-table td.num, .bilan-table th.num { text-align: center; } .bilan-table { overflow-x: auto; }
.bilan-table tbody tr.past { background: transparent; }
.linkbox { display: grid; gap: 6px; margin-bottom: 12px; padding: 12px 14px; } .linkbox input { font-size: .85rem; }
.acces-list { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 6px; margin: 0; } .acces-list legend { font-size: .78rem; padding: 0 4px; color: var(--muted); }
.acces-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .acces-row select { width: auto; min-width: 160px; }
.fiche-membre { gap: 8px; }

.head h1 .evname { font-weight: 800; color: var(--accent); }

.selrow { display: flex; gap: 10px; flex-wrap: wrap; } .selrow .evsel { margin: 4px 0 10px; }

/* Mobile : les tableaux serrés restent des tableaux (pas de cartes empilées) */
@media (max-width: 960px) { .resume-grid.large { grid-template-columns: minmax(0, 1fr); } .resume-grid > * { min-width: 0; } }
@media (max-width: 760px) {
  .tablecard.compact .table, .bilan-table .table { display: table; width: 100%; }
  .tablecard.compact .table thead, .bilan-table .table thead { display: table-header-group; }
  .tablecard.compact .table tbody, .bilan-table .table tbody { display: table-row-group; }
  .tablecard.compact .table tfoot, .bilan-table .table tfoot { display: table-footer-group; }
  .tablecard.compact .table tr, .bilan-table .table tr { display: table-row; padding: 0; }
  .tablecard.compact .table td, .tablecard.compact .table th, .bilan-table .table td, .bilan-table .table th { display: table-cell; padding: 7px 5px; font-size: .82rem; text-align: left !important; border-bottom: 1px solid var(--line); }
  .tablecard.compact .table td.num, .tablecard.compact .table th.num, .bilan-table .table td.num, .bilan-table .table th.num { text-align: center !important; padding-left: 2px; padding-right: 2px; }
  .tablecard.compact .table td[data-l]::before, .bilan-table .table td[data-l]::before { content: none; }
  .tablecard.compact .table tfoot th:empty { display: table-cell; }
  .tablecard.compact .table thead th { font-size: .58rem; letter-spacing: 0; padding-left: 3px; padding-right: 3px; }
  .resa-table th.mail, .resa-table td.mail { display: none !important; }
  .resa-table td:first-child { min-width: 0; }
  .tablecard.compact { max-width: none; }
  .bilan-table { overflow-x: auto; } .bilan-table .table { width: max-content; min-width: 100%; } .bilan-table .table td, .bilan-table .table th { white-space: nowrap; }
  .statline { font-size: .85rem; } .head h1 { font-size: 1.5rem; } .head.tight h1 { font-size: 1.3rem; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .resume-form .tarif-row { gap: 4px; } .resume-form .stepper button { width: 22px; }
  .selrow .evsel { flex: 1 1 100%; } .selrow .evsel select, .evsel select { width: 100%; min-width: 0; }
}
@media (max-width: 760px) { .resume-form .tarif-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; } .resume-form .stepper input { min-width: 0; } .resume-form .stepper button { width: 34px; } }

.mobile-only { display: none; margin: 0 0 10px; } @media (max-width: 960px) { .mobile-only { display: block; } }
.caisse-grid { grid-template-areas: "enc fiche" "ent fiche"; grid-template-rows: auto 1fr; }
.caisse-grid .zone-enc { grid-area: enc; min-width: 0; } .caisse-grid #fiche { grid-area: fiche; min-width: 0; } .caisse-grid .zone-ent { grid-area: ent; min-width: 0; }
@media (max-width: 960px) { .caisse-grid { grid-template-areas: "enc" "fiche" "ent"; grid-template-rows: auto; } }

@media (min-width: 961px) { .resume-grid #fiche { position: sticky; top: 12px; align-self: start; max-height: calc(100vh - 24px); overflow-y: auto; } }
#fiche { scroll-margin-top: 76px; }
@media (min-width: 961px) { .resume-grid #fiche { top: 78px; max-height: calc(100vh - 94px); } }
