/* Zenata Sports Club — feuille de style */
:root {
  --navy: #0b2f7a; --blue: #1257d6; --blue-2: #2f7bf0; --sky: #e9f1fe; --sky-2: #d4e3fc;
  --line: #dbe3ef; --ink: #131c33; --muted: #5a6883; --bg: #f4f7fc; --card: #fff;
  --green: #17753a; --green-bg: #e1f4e7; --red: #b42318; --red-bg: #fde4e1;
  --amber: #8a5a00; --amber-bg: #fff0d1; --grey: #4b5568; --grey-bg: #e9edf3;
  --radius: 14px; --shadow: 0 1px 2px rgba(11, 47, 122, .06), 0 6px 18px rgba(11, 47, 122, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.45; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* barre du haut */
.topbar { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .75rem; padding: .5rem .9rem; padding-top: calc(.5rem + env(safe-area-inset-top)); }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--navy); min-width: 0; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand b { display: block; font-size: .95rem; line-height: 1.1; white-space: nowrap; }
.brand-sub { font-size: .72rem; color: var(--muted); font-weight: 600; }
.stripe { height: 4px; background: linear-gradient(90deg, var(--navy) 0 34%, var(--blue) 34% 67%, var(--blue-2) 67%); }
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a { position: relative; display: flex; align-items: center; gap: .4rem; padding: .5rem .75rem; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .9rem; }
.nav a svg { width: 20px; height: 20px; fill: currentColor; }
.nav a.active { background: var(--sky); color: var(--navy); }
.badge { background: var(--red); color: #fff; border-radius: 999px; font-size: .68rem; padding: 0 .4rem; min-width: 18px; text-align: center; line-height: 18px; }
@media (max-width: 760px) {
  .nav { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); margin: 0; padding: .3rem .3rem calc(.3rem + env(safe-area-inset-bottom)); justify-content: space-around; z-index: 30; }
  .nav a { flex-direction: column; gap: .1rem; font-size: .7rem; padding: .35rem .6rem; flex: 1; }
  .nav a .badge { position: absolute; top: 2px; right: 18%; }
  .main { padding-bottom: 5.5rem !important; }
}
.main { max-width: 1040px; margin: 0 auto; padding: 1rem .9rem 2.5rem; }
.loading { padding: 3rem 0; text-align: center; color: var(--muted); }

/* éléments communs */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; margin-bottom: .9rem; }
.row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--sky); }
.btn:focus-visible, .tile:focus-visible, .chip:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; } .btn-primary:hover { background: var(--navy); }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; } .btn-green:hover { background: #115c2d; }
.btn-danger { color: var(--red); border-color: #f2c4bf; } .btn-danger:hover { background: var(--red-bg); }
.btn-sm { min-height: 36px; padding: .3rem .7rem; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
.icon-btn { border: 0; background: none; font-size: 1.2rem; cursor: pointer; padding: .4rem .6rem; border-radius: 8px; color: var(--muted); }
.field { margin-bottom: .8rem; }
.field label, .lbl { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: .25rem; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #c3cfe0; border-radius: 10px; padding: .6rem .7rem; min-height: 44px; }
textarea { min-height: 80px; resize: vertical; }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; flex: none; accent-color: var(--blue); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.alert { border-radius: 10px; padding: .6rem .8rem; font-size: .9rem; margin-bottom: .8rem; }
.alert.error { background: var(--red-bg); color: var(--red); } .alert.info { background: var(--sky); color: var(--navy); } .alert.warn { background: var(--amber-bg); color: var(--amber); } .alert.ok { background: var(--green-bg); color: var(--green); }
.pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 800; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; background: var(--grey-bg); color: var(--grey); }
.pill.green { background: var(--green-bg); color: var(--green); } .pill.red { background: var(--red-bg); color: var(--red); } .pill.amber { background: var(--amber-bg); color: var(--amber); } .pill.blue { background: var(--sky); color: var(--navy); }
.cat { background: var(--navy); color: #fff; }
.chips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; margin-bottom: .6rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.chip small { font-weight: 600; color: var(--muted); margin-left: .25rem; }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; } .chip.active small { color: #c9d8f6; }

/* connexion */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 1rem; background: linear-gradient(160deg, var(--navy), var(--blue)); }
.login-card { width: 100%; max-width: 380px; padding: 1.5rem; }
.login-brand { text-align: center; margin-bottom: 1rem; } .login-brand img { width: 110px; height: 110px; }
.login-brand h1 { margin: .4rem 0 0; font-size: 1.25rem; }

/* séance */
.datebar { display: flex; align-items: center; gap: .4rem; margin-bottom: .7rem; }
.datebar .day { flex: 1; text-align: center; font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.datebar .day::first-letter { text-transform: uppercase; }
.datebar input[type=date] { width: auto; }
@media (max-width: 520px) { .datebar { flex-wrap: wrap; } .datebar input[type=date] { flex-basis: 100%; } }
.counter { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .7rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .55rem; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .7rem .3rem .55rem; min-height: 112px; border-radius: var(--radius); border: 2px solid var(--line); background: #fff; font: inherit; color: var(--ink); cursor: pointer; text-align: center; transition: transform .08s; }
.tile:active { transform: scale(.96); }
.tile .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--sky); color: var(--navy); }
.tile b { font-size: .9rem; line-height: 1.15; overflow-wrap: anywhere; } .tile i { font-style: normal; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; overflow-wrap: anywhere; }
.tile .st { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.tile.P { border-color: var(--green); background: var(--green-bg); } .tile.P .av { background: var(--green); color: #fff; } .tile.P .st { color: var(--green); }
.tile.A { border-color: #e7a59e; background: var(--red-bg); } .tile.A .av { background: var(--red); color: #fff; } .tile.A .st { color: var(--red); }
.tile.E { border-color: #e6c173; background: var(--amber-bg); } .tile.E .av { background: var(--amber); color: #fff; } .tile.E .st { color: var(--amber); }
.tile .due { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

/* listes */
.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: .7rem; padding: .65rem .2rem; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.item:last-child { border-bottom: 0; }
a.item:hover { background: var(--sky); }
.item .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: var(--sky); color: var(--navy); flex: none; }
.item .t { font-weight: 700; } .item .s { font-size: .82rem; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin-bottom: .9rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; }
.kpi .v { font-size: 1.45rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.15; } .kpi .l { font-size: .8rem; color: var(--muted); font-weight: 600; }
.kpi.red .v { color: var(--red); } .kpi.green .v { color: var(--green); }
.bar { height: 8px; border-radius: 99px; background: var(--grey-bg); overflow: hidden; } .bar > span { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem .9rem; margin: 0; } .dl dt { color: var(--muted); font-size: .85rem; } .dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.hist { display: flex; gap: .3rem; flex-wrap: wrap; }
.hist span { font-size: .72rem; font-weight: 700; padding: .15rem .45rem; border-radius: 6px; background: var(--grey-bg); }
.hist .P { background: var(--green-bg); color: var(--green); } .hist .A { background: var(--red-bg); color: var(--red); } .hist .E { background: var(--amber-bg); color: var(--amber); }
table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: .4rem .3rem; border-bottom: 1px solid var(--line); font-size: .9rem; } th { color: var(--muted); font-size: .78rem; }
td input { min-height: 38px; padding: .35rem .5rem; }

.payrow { flex-wrap: wrap; row-gap: .45rem; }
.payrow .grow { flex: 1 1 220px; }
@media (max-width: 520px) { .payrow .grow { flex-basis: 100%; } }

/* fenêtre */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(11, 24, 56, .5); display: grid; place-items: end center; }
.modal-box { background: #fff; width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; border-radius: 18px 18px 0 0; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .modal { place-items: center; } .modal-box { border-radius: 18px; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; } .modal-head h2 { margin: 0; }
.stack { display: flex; flex-direction: column; gap: .5rem; }
.toast { position: fixed; left: 50%; bottom: 5.5rem; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 12px; z-index: 80; font-weight: 600; font-size: .9rem; max-width: 92vw; }
.toast.error { background: var(--red); }
.netbar { background: var(--amber-bg); color: var(--amber); font-weight: 700; font-size: .85rem; text-align: center; padding: .4rem .8rem; }

/* pages publiques */
.public { max-width: 620px; margin: 0 auto; padding: 1rem .9rem 3rem; }
.hero { text-align: center; padding: 1.4rem 1rem 1.2rem; background: linear-gradient(160deg, var(--navy), var(--blue)); color: #fff; border-radius: 0 0 22px 22px; margin: 0 -.9rem 1rem; }
.hero img { width: 96px; height: 96px; } .hero h1 { color: #fff; margin: .5rem 0 .2rem; } .hero p { margin: 0; opacity: .9; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* five */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .45rem; }
.slot { min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; }
.slot:hover { background: var(--sky); } .slot:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.slot.sel { background: var(--blue); border-color: var(--blue); color: #fff; }
.slot[disabled] { background: var(--grey-bg); color: #9aa5b8; text-decoration: line-through; cursor: default; }
.recap { background: var(--sky); border-radius: 12px; padding: .7rem .9rem; margin-bottom: .8rem; } .recap b { color: var(--navy); }
.agenda { display: flex; flex-direction: column; gap: .4rem; }
.blk { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; padding: .6rem .7rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; color: var(--ink); }
button.blk { cursor: pointer; } button.blk:hover { background: var(--sky); }
.blk .h { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 6.4rem; }
.blk.free { border-style: dashed; color: var(--muted); background: transparent; } .blk.free .h { color: var(--muted); font-weight: 600; }
.blk.resa { border-left: 5px solid var(--blue); } .blk.resa.paid { border-left-color: var(--green); } .blk.interne, .blk.bloc { border-left: 5px solid var(--grey); background: var(--grey-bg); }
.blk.off { opacity: .6; text-decoration: line-through; }
.demande { border: 2px solid var(--blue); border-radius: var(--radius); padding: .9rem; background: #fff; margin-bottom: .7rem; }
.demande .big { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.stepper { display: flex; align-items: center; gap: .6rem; } .stepper output { font-size: 1.5rem; font-weight: 800; min-width: 2ch; text-align: center; color: var(--navy); }

/* téléphone avec indicatif */
.telrow { display: flex; gap: .4rem; } .telrow select { flex: none; width: 7.6rem; padding-left: .5rem; padding-right: .2rem; } .telrow input { flex: 1; min-width: 0; }

/* cartes de joueurs */
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.pcard { --c1: #0b2f7a; --c2: #1257d6; position: relative; display: block; aspect-ratio: 5 / 7; border-radius: 14px; overflow: hidden; text-decoration: none; color: #fff;
  background: linear-gradient(155deg, var(--c1), var(--c2)); box-shadow: 0 2px 4px rgba(11, 24, 56, .18), 0 10px 22px rgba(11, 24, 56, .16); transition: transform .12s; container-type: inline-size; }
a.pcard:hover { transform: translateY(-3px) rotate(-.6deg); } a.pcard:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; }
.pc-photo { position: absolute; inset: 5% 5% 21% 21%; border-radius: 8px; background: linear-gradient(180deg, #dfe9fb, #b9cdf3) center / cover no-repeat; display: grid; place-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
.pc-ini { font-weight: 900; font-size: 26cqw; color: rgba(11, 47, 122, .35); letter-spacing: -.02em; } .pc-photo.has .pc-ini { display: none; }
.pc-band { position: absolute; left: 0; top: 0; bottom: 20%; width: 19%; display: flex; align-items: center; justify-content: center; gap: 5cqw; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.pc-band b { font-size: 15cqw; font-weight: 900; line-height: 1; letter-spacing: .01em; } .pc-band i { font-style: normal; font-size: 5.2cqw; font-weight: 800; letter-spacing: .14em; opacity: .85; }
.pc-name { position: absolute; left: 6%; right: 24%; bottom: 4.5%; line-height: 1.08; }
.pc-name b { display: block; font-size: 9.6cqw; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-name i { display: block; font-style: normal; font-size: 7cqw; font-weight: 700; opacity: .9; text-transform: uppercase; letter-spacing: .03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-logo { position: absolute; right: 5%; bottom: 4%; width: 21%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.pc-num { position: absolute; top: 7%; right: 8%; font-size: 6cqw; font-weight: 800; background: rgba(11, 24, 56, .62); padding: .1em .5em; border-radius: 99px; }
.pc-flag { position: absolute; top: 7%; left: 24%; font-size: 5.4cqw; font-weight: 800; background: #fff; color: var(--red); padding: .12em .5em; border-radius: 99px; }
.pc-flag.ok { color: var(--green); } .pc-flag.wait { color: var(--amber); }
.pc-big { max-width: 250px; margin: 0 auto .9rem; }
.cathead { display: flex; align-items: baseline; gap: .6rem; margin: 1rem 0 .6rem; } .cathead h2 { margin: 0; } .cathead span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; flex: none; }
.seg button { border: 0; background: none; font: inherit; font-weight: 700; font-size: .85rem; color: var(--muted); padding: .5rem .8rem; min-height: 40px; cursor: pointer; } .seg button.active { background: var(--navy); color: #fff; }
.pc-due { position: absolute; top: 7.5%; left: 25%; width: 6cqw; height: 6cqw; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff; }

/* actualiser et mise à jour */
.refresh-btn { flex: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .4rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
.refresh-btn:hover { background: var(--sky); } .refresh-btn:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.refresh-btn svg { width: 20px; height: 20px; fill: currentColor; } .refresh-btn.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .refresh-btn { margin-left: auto; } .refresh-btn span { position: absolute; left: -9999px; } }
.updatebar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(5.2rem + env(safe-area-inset-bottom)); z-index: 70; width: min(94vw, 460px); display: flex; align-items: center; gap: .8rem; background: var(--navy); color: #fff; border-radius: 14px; padding: .7rem .9rem; box-shadow: 0 8px 24px rgba(11, 24, 56, .35); }
.updatebar div { flex: 1; line-height: 1.25; } .updatebar b { display: block; } .updatebar span { font-size: .82rem; opacity: .85; } .updatebar .btn { flex: none; }
/* photo détourée : le joueur se détache sur le fond clair de la carte */
.pc-photo.has { background: var(--ph) center / cover no-repeat, linear-gradient(180deg, #dfe9fb, #b9cdf3); }
.photo-prev { width: min(60vw, 230px); aspect-ratio: 3 / 4; margin: 0 auto .8rem; border-radius: 12px; background: linear-gradient(180deg, #dfe9fb, #b9cdf3); overflow: hidden; }
.photo-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* réponses des parents sur les tuiles de séance */
.tile .rep { font-size: .62rem; font-weight: 800; padding: .08rem .4rem; border-radius: 99px; background: var(--green-bg); color: var(--green); white-space: nowrap; }
.tile .rep.absent { background: var(--amber-bg); color: var(--amber); }
.tile.r-present { border-color: #9fd3b0; border-style: dashed; } .tile.r-absent { border-color: #e6c173; border-style: dashed; opacity: .8; }
.rsvp { display: flex; gap: .4rem; flex: none; } .rsvp .btn.on-present { background: var(--green); border-color: var(--green); color: #fff; } .rsvp .btn.on-absent { background: var(--amber); border-color: var(--amber); color: #fff; }

/* boutons « retour » */
.back-btn { flex: none; display: inline-flex; align-items: center; gap: .1rem; min-height: 40px; padding: .3rem .7rem .3rem .3rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.back-btn:hover { background: var(--sky); } .back-btn:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.back-btn svg { width: 22px; height: 22px; fill: currentColor; }
@media (max-width: 420px) { .topbar { gap: .45rem; } .back-btn span { position: absolute; left: -9999px; } .back-btn { padding: .3rem; } .brand b { font-size: .88rem; } }
.hero { position: relative; }
.backlink { position: absolute; left: .7rem; top: .7rem; display: inline-flex; align-items: center; min-height: 40px; padding: .3rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; }
.backlink:hover { background: rgba(255, 255, 255, .28); } .backlink:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* reçu de paiement et impression */
.recu { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; background: #fff; }
.recu-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; } .recu-head img { width: 52px; height: 52px; }
.recu h3 { margin: .2rem 0 .6rem; } .recu dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; margin: 0; } .recu dt { color: var(--muted, #5b6781); } .recu dd { margin: 0; font-weight: 600; }
.recu-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .8rem; padding-top: .6rem; border-top: 2px solid var(--line); } .recu-total b { font-size: 1.5rem; }
.recu-sign { margin-top: 1.1rem; height: 70px; border: 1px dashed #b9c4d8; border-radius: 8px; padding: .3rem .5rem; font-size: .75rem; color: #7a869d; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
@media print {
  .topbar, .stripe, .netbar, .no-print, .toast, .modal-head button { display: none !important; }
  body { background: #fff; } .main { padding: 0; } .card { box-shadow: none; break-inside: avoid; }
  body.print-recu #app { display: none; }
  body.print-recu .modal { position: static; background: none; display: block; padding: 0; } body.print-recu .modal-box { box-shadow: none; max-width: 420px; margin: 0 auto; max-height: none; }
}

/* photos interdites (droit à l'image refusé) : pastille rouge dans la photo de la carte */
.pc-nophoto { position: absolute; left: 4%; bottom: 4%; width: 24%; aspect-ratio: 1; border-radius: 50%; background: #d92d20; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.pc-nophoto svg { width: 66%; height: 66%; }
.pc-photo { overflow: visible; }
/* signature à l'inscription */
.sigpad { position: relative; border: 2px dashed #9fb0cf; border-radius: 12px; background: #fff; touch-action: none; }
.sigpad canvas { display: block; width: 100%; height: 170px; border-radius: 10px; cursor: crosshair; touch-action: none; }
.sigpad .hint { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa6bd; pointer-events: none; font-size: .95rem; }
.sigpad.done .hint { display: none; } .sigpad.done { border-style: solid; border-color: var(--blue, #1257d6); }
.choice { display: grid; gap: .5rem; } .choice label { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.choice input { margin-top: .2rem; width: 20px; height: 20px; flex: none; } .choice label:has(input:checked) { border-color: var(--blue, #1257d6); box-shadow: 0 0 0 2px rgba(18, 87, 214, .15); }

/* bouton de langue et affichage de droite à gauche (arabe) */
.lang-btn { position: absolute; top: calc(.7rem + env(safe-area-inset-top)); inset-inline-end: .8rem; z-index: 2; min-height: 36px; padding: .2rem .8rem; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.lang-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hero { position: relative; }
[dir=rtl] body { font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Geeza Pro", system-ui, sans-serif; }
[dir=rtl] .fv h1, [dir=rtl] .fv h2, [dir=rtl] .fv h3, [dir=rtl] .fv-go b, [dir=rtl] .fv-format b, [dir=rtl] .fv .demande .big { font-family: inherit; font-weight: 700; letter-spacing: 0; }
[dir=rtl] .pcard, [dir=rtl] .telrow, [dir=rtl] .fv-ticket-top .time, [dir=rtl] .slot b, [dir=rtl] .fv-bar b, [dir=rtl] canvas { direction: ltr; }
[dir=rtl] .fv-go em, [dir=rtl] .fv-back { transform: scaleX(-1); }
[dir=rtl] .fv-stamp { right: auto; left: .9rem; transform: rotate(-6deg); }
[dir=rtl] .fv-ticket-bot .price { text-align: left; }
[dir=rtl] .fv-format { text-align: right; } [dir=rtl] .fv-format[aria-pressed=true]::after { right: auto; left: .95rem; }
[dir=rtl] .fv-back { margin-left: 0; margin-right: -.4rem; }
[dir=rtl] .fv .demande { border-left: 0; border-right: 6px solid var(--turf); }
[dir=rtl] .fv-bar b { text-align: right; }

/* pointage : les tuiles sont les cartes de joueurs, avec l'état sous la carte */
.tiles:has(.tcard) { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: .8rem; }
.tile.tcard { padding: 4px 4px .4rem; gap: .3rem; min-height: 0; border-width: 3px; border-radius: 18px; align-items: stretch; background: #fff; }
.tile.tcard .pcard { width: 100%; text-align: start; }
.tile.tcard .pc-name b { font-size: 9.6cqw; overflow-wrap: normal; } .tile.tcard .pc-name i { font-size: 7cqw; color: #fff; }
.tile.tcard .pc-band b { font-size: 15cqw; } .tile.tcard .pc-band i { font-size: 5.2cqw; color: #fff; text-transform: none; }
.tile.tcard .st { font-size: .74rem; padding: .1rem 0; }
.tile.tcard.P { border-color: var(--green); background: var(--green-bg); } .tile.tcard.A { border-color: var(--red); background: var(--red-bg); } .tile.tcard.E { border-color: var(--amber); background: var(--amber-bg); }
.tile.tcard.A .pcard, .tile.tcard.E .pcard { filter: grayscale(.75); opacity: .75; }
.tile.tcard.r-present .st { color: var(--green); } .tile.tcard.r-absent .st { color: var(--amber); }

/* fond du club derrière la photo du joueur : visible dès que la photo est détourée (fond transparent) */
.pc-photo.has { background: var(--ph) center bottom / auto 86% no-repeat, url("/assets/fond-joueur.jpg") center / 100% 100% no-repeat; }
.photo-prev { background: url("/assets/fond-joueur.jpg") center / cover no-repeat; }
.photo-prev img { object-fit: contain; object-position: center bottom; height: 86%; margin-top: 14%; }
