/* =====================================================================
   Tennis de Table de Grisy — charte : noir, blanc et or du logo (le loup)
   ===================================================================== */
:root {
  --noir: #0d0d0d;
  --noir-2: #171717;
  --noir-3: #232323;
  --or: #b8954f;
  --or-clair: #d9bd84;
  --or-fonce: #8a6d33;
  --creme: #f6f2ea;
  --blanc: #ffffff;
  --gris: #6b6b6b;
  --gris-clair: #e7e2d8;
  --ligne: #e3ddd1;
  --ok: #2f7d4f;
  --ok-bg: #e5f2ea;
  --warn: #9a6a00;
  --warn-bg: #fbf0d6;
  --bad: #a83232;
  --bad-bg: #f8e3e3;
  --info: #2c5d8a;
  --info-bg: #e3edf6;
  --r: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 14px 34px -18px rgba(0,0,0,.35);
  --f-titre: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-texte: "Inter", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--creme); color: var(--noir); font: 16px/1.6 var(--f-texte); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--f-titre); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: .01em; text-transform: uppercase; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
a { color: var(--or-fonce); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--gris); }
.small { font-size: .86rem; }
.center { text-align: center; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.hidden { display: none !important; }

/* ---------- en-tête ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(13,13,13,.96); backdrop-filter: blur(8px); color: var(--blanc); border-bottom: 2px solid var(--or); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--blanc); text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: 52px; }
.brand b { display: block; font-family: var(--f-titre); font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.brand span { display: block; color: var(--or-clair); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: #ddd; text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--blanc); background: var(--noir-3); }
.nav a.active { color: var(--noir); background: var(--or); }
.nav a.cta { border: 1.5px solid var(--or); color: var(--or-clair); }
.nav a.cta.active, .nav a.cta:hover { background: var(--or); color: var(--noir); }
.burger { display: none; background: none; border: 0; color: var(--blanc); font-size: 1.8rem; cursor: pointer; }
@media (max-width: 1320px) { .nav a { padding: 8px 9px; font-size: .88rem; } .brand b { font-size: 1.15rem; } }
@media (max-width: 1180px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--noir); padding: 10px 20px 20px; border-bottom: 2px solid var(--or); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
}

/* ---------- boutons & champs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .95rem var(--f-texte); padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform .12s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-or { background: var(--or); color: var(--noir); }
.btn-or:hover { background: var(--or-clair); }
.btn-noir { background: var(--noir); color: var(--blanc); }
.btn-noir:hover { background: var(--noir-3); }
.btn-ligne { background: transparent; border-color: currentColor; color: inherit; }
.btn-ligne:hover { background: rgba(184,149,79,.12); }
.btn-petit { padding: 6px 12px; font-size: .84rem; }
.btn-danger { background: var(--bad-bg); color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.field { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .9rem; }
.field small { font-weight: 400; color: var(--gris); }
input, select, textarea { font: 400 1rem var(--f-texte); padding: 10px 12px; border: 1.5px solid var(--ligne); border-radius: 10px; background: var(--blanc); color: var(--noir); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--or); outline: none; box-shadow: 0 0 0 3px rgba(184,149,79,.2); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--or-fonce); flex: none; margin: 2px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; padding: 6px 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
.span2 { grid-column: span 2; }
@media (max-width: 720px) { .grid2, .grid3 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }

/* ---------- blocs ---------- */
.section { padding: 64px 0; }
.section-noire { background: var(--noir); color: var(--blanc); }
.section-noire .muted { color: #a9a9a9; }
.kicker { font-family: var(--f-titre); color: var(--or); letter-spacing: .22em; text-transform: uppercase; font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.card { background: var(--blanc); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; border: 1px solid var(--ligne); }
.card + .card { margin-top: 18px; }
.card h3 { margin-bottom: 12px; }
.page-head { background: var(--noir); color: var(--blanc); padding: 46px 0 40px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; background: url(img/logo.png) center/contain no-repeat; opacity: .08; pointer-events: none; }
/* le contenu du bandeau passe toujours au-dessus du logo décoratif (sinon, sur téléphone, il capte les taps) */
.page-head .wrap { position: relative; z-index: 1; }
.btn { touch-action: manipulation; -webkit-tap-highlight-color: rgba(184,149,79,.3); }
@media (max-width: 600px) {
  .page-head a[data-intranet] { min-height: 48px; padding: 12px 22px; font-size: 1rem; }
}
.page-head p { color: #bdbdbd; max-width: 640px; margin: 10px 0 0; }
.page { padding: 36px 0 70px; }

/* ---------- accueil ---------- */
.hero { background: radial-gradient(900px 500px at 78% 40%, rgba(184,149,79,.28), transparent 60%), var(--noir); color: var(--blanc); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 70px 0 80px; }
.hero h1 span { color: var(--or); display: block; }
.hero p.lead { font-size: 1.15rem; color: #cfcfcf; max-width: 540px; margin: 18px 0 28px; }
.hero-logo { position: relative; justify-self: center; }
.hero-logo img { width: min(400px, 80vw); filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); animation: flotte 6s ease-in-out infinite; }
.hero-logo::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; border: 2px dashed rgba(184,149,79,.45); animation: tourne 40s linear infinite; pointer-events: none; }
@keyframes flotte { 50% { transform: translateY(-10px); } }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-logo img, .hero-logo::before { animation: none; } }
.hero-stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats div b { display: block; font-family: var(--f-titre); font-size: 2.2rem; color: var(--or); line-height: 1; }
.hero-stats div span { font-size: .85rem; color: #aaa; text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding: 40px 0 56px; } .hero-logo { order: -1; } .hero-logo img { width: 230px; } }

.next-match { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: var(--noir-2); border: 1px solid #333; border-left: 5px solid var(--or); border-radius: var(--r); padding: 22px 26px; color: var(--blanc); }
.next-match .vs { font-family: var(--f-titre); font-size: 1.9rem; text-transform: uppercase; line-height: 1.1; }
.next-match .vs em { color: var(--or); font-style: normal; padding: 0 8px; }
.countdown { display: flex; gap: 10px; }
.countdown div { background: var(--noir); border: 1px solid #333; border-radius: 10px; padding: 8px 12px; text-align: center; min-width: 64px; }
.countdown b { display: block; font-family: var(--f-titre); font-size: 1.8rem; color: var(--or); line-height: 1; }
.countdown span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #999; }
@media (max-width: 760px) { .next-match { grid-template-columns: 1fr; } }

.date-block { width: 74px; text-align: center; background: var(--noir); color: var(--blanc); border-radius: 12px; padding: 8px 0 10px; flex: none; }
.date-block b { display: block; font-family: var(--f-titre); font-size: 2.1rem; line-height: 1; color: var(--or); }
.date-block span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }
.info-tile { background: var(--blanc); border-radius: var(--r); padding: 24px; border-top: 4px solid var(--or); box-shadow: var(--shadow); }
.info-tile .ico { font-size: 1.8rem; }
.tarifs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .tarifs { grid-template-columns: 1fr 1fr; } }
.tarif { background: var(--noir-2); border: 1px solid #333; border-radius: var(--r); padding: 22px; color: var(--blanc); }
.tarif b { display: block; font-family: var(--f-titre); font-size: 2.4rem; color: var(--or); }
.tarif h4 { color: var(--blanc); }

/* ---------- résultats ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.filters select { width: auto; min-width: 200px; }
.match { display: grid; grid-template-columns: 90px 1fr auto 1fr 110px; gap: 16px; align-items: center; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: 14px 18px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.match .d { font-size: .85rem; color: var(--gris); line-height: 1.3; }
.match .d b { display: block; color: var(--noir); font-size: 1rem; }
.match .team { font-family: var(--f-titre); font-size: 1.3rem; text-transform: uppercase; line-height: 1.1; }
.match .team.home { text-align: right; }
.match .team.grisy { color: var(--noir); }
.match .team.grisy::after { content: " 🐺"; font-size: .9rem; }
.match .team.home.grisy::after { content: ""; }
.match .team.home.grisy::before { content: "🐺 "; font-size: .9rem; }
.score { font-family: var(--f-titre); font-size: 1.8rem; background: var(--noir); color: var(--blanc); padding: 4px 14px; border-radius: 10px; white-space: nowrap; min-width: 92px; text-align: center; }
.match .meta { font-size: .8rem; color: var(--gris); text-align: right; }
@media (max-width: 760px) { .match { grid-template-columns: 1fr auto; } .match .d, .match .meta { grid-column: 1 / -1; text-align: left; } .match .team.home { text-align: left; } .match .score { grid-row: span 2; } }
.res { display: inline-block; font-weight: 700; font-size: .75rem; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.res-V { background: var(--or); color: var(--noir); }
.res-N { background: var(--gris-clair); color: var(--noir); }
.res-D { background: var(--noir-3); color: #eee; }
.bilan { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 26px; }
.bilan .card { padding: 18px; margin: 0; }
.bilan .card + .card { margin: 0; }
.bilan-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin-top: 10px; background: var(--gris-clair); }
.bilan-bar i { display: block; }

/* ---------- résultats par championnat ---------- */
.fed-smr { --fed: #5b8a3c; }       /* CDSMR 77 : vert « foyer rural » */
.fed-fftt { --fed: #2f5fa8; }      /* FFTT : bleu fédéral */
.fed-autre { --fed: var(--or); }
.fed-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; margin-bottom: 24px; }
.fed-tab { text-align: left; cursor: pointer; background: var(--blanc); border: 2px solid var(--ligne); border-top: 6px solid var(--fed); border-radius: var(--r); padding: 16px 20px; font: inherit; color: var(--noir); display: flex; flex-direction: column; gap: 2px; transition: transform .12s, box-shadow .12s; }
.fed-tab:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.fed-tab b { font-family: var(--f-titre); font-size: 1.9rem; line-height: 1.05; text-transform: uppercase; }
.fed-tab span { font-weight: 600; }
.fed-tab small { color: var(--gris); }
.fed-tab.on { background: var(--noir); color: var(--blanc); border-color: var(--noir); border-top-color: var(--fed); box-shadow: var(--shadow); }
.fed-tab.on b { color: var(--or); }
.fed-tab.on small { color: #bbb; }
.team-block { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 22px; overflow: hidden; }
.tb-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--noir); color: var(--blanc); padding: 16px 22px; border-left: 6px solid var(--fed, var(--or)); }
.tb-team { font-family: var(--f-titre); font-size: 1.7rem; text-transform: uppercase; line-height: 1.05; }
.tb-div { color: var(--or-clair); font-size: .9rem; }
.tb-stats { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tb-rank b, .tb-pts b { display: block; font-family: var(--f-titre); font-size: 2.3rem; line-height: 1; color: var(--or); }
.tb-rank span, .tb-pts span { font-size: .78rem; color: #aaa; text-transform: uppercase; letter-spacing: .08em; }
.tb-vnd { display: flex; gap: 6px; }
.tb-forme { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 10px 22px; border-bottom: 1px solid var(--ligne); background: #fbf8f1; }
.tb-forme > .small:first-child { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--gris); margin-right: 4px; }
.dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.dot-V { background: var(--or); } .dot-N { background: var(--gris-clair); border: 1px solid #bbb; } .dot-D { background: var(--noir-3); }
.tb-next { margin-left: auto; font-size: .88rem; }
.tb-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 0; }
.tb-col { padding: 16px 22px 18px; }
.tb-col + .tb-col { border-left: 1px solid var(--ligne); }
.tb-col h4 { margin: 0 0 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gris); }
.tb-classement td, .tb-classement th { padding: 6px 8px; font-size: .92rem; }
.mm-list { display: flex; flex-direction: column; gap: 6px; }
.mm { display: grid; grid-template-columns: 48px 40px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; background: #faf8f4; }
.mm-d { font-weight: 700; font-size: .9rem; }
.mm-lieu { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-align: center; border: 1px solid var(--ligne); border-radius: 6px; padding: 1px 0; color: var(--gris); }
.mm-adv { font-weight: 600; line-height: 1.2; }
.mm-score { font-size: .95rem; min-width: 74px; text-align: center; letter-spacing: 0; }
.tag-prov { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--or-fonce); border: 1px solid var(--or); border-radius: 99px; padding: 0 6px; white-space: nowrap; }
@media (max-width: 700px) { .tb-col + .tb-col { border-left: 0; border-top: 1px solid var(--ligne); } .tb-next { margin-left: 0; width: 100%; } .tb-head, .tb-forme, .tb-col { padding-left: 16px; padding-right: 16px; } }

/* ---------- classements ---------- */
.classements { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.classements .card { margin: 0; }
.classements .card + .card { margin: 0; }
.classement-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.classement-head h3 { margin: 0; }
.classement .tbl td, .classement .tbl th { padding: 8px 10px; }
tr.grisy-row td { background: #fff6e3; font-weight: 700; }
tr.grisy-row td:first-child { box-shadow: inset 4px 0 0 var(--or); }
.rang { font-family: var(--f-titre); font-size: 1.9rem; line-height: 1; color: var(--or-fonce); margin: 4px 0 6px; }
.rang span { font-size: .9rem; color: var(--gris); font-family: var(--f-texte); }
.rangs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.rang-chip { display: flex; align-items: center; gap: 12px; background: var(--noir); color: var(--blanc); text-decoration: none; border-radius: 12px; padding: 10px 16px; border-left: 4px solid var(--or); }
.rang-chip b { font-family: var(--f-titre); font-size: 1.9rem; color: var(--or); line-height: 1; }
.rang-chip span { font-weight: 600; line-height: 1.2; }
.rang-chip small { color: #aaa; font-weight: 400; }

/* ---------- compétitions ---------- */
.event { display: flex; gap: 18px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: 18px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04); align-items: flex-start; }
.event h3 { font-size: 1.3rem; margin-bottom: 4px; }
.event .lieu { color: var(--gris); font-size: .9rem; }
.event .tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--creme); border: 1px solid var(--ligne); margin-right: 6px; }
.event .tag.dom { background: var(--or); border-color: var(--or); }
.month-title { font-family: var(--f-titre); text-transform: uppercase; font-size: 1.15rem; letter-spacing: .14em; color: var(--or-fonce); margin: 26px 0 10px; }
.exemple { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin-bottom: 18px; }

/* ---------- formulaire d'inscription ---------- */
.stepper { display: flex; gap: 6px; margin-bottom: 26px; counter-reset: st; flex-wrap: wrap; }
.stepper li { list-style: none; flex: 1; min-width: 110px; font-size: .82rem; font-weight: 600; color: var(--gris); border-top: 4px solid var(--gris-clair); padding-top: 8px; counter-increment: st; }
.stepper li::before { content: counter(st) ". "; }
.stepper li.done { border-color: var(--or-fonce); color: var(--noir); }
.stepper li.on { border-color: var(--or); color: var(--noir); }
.stepper { padding: 0; }
.formule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 860px) { .formule-grid { grid-template-columns: 1fr 1fr; } }
.formule { position: relative; border: 2px solid var(--ligne); border-radius: var(--r); padding: 16px; cursor: pointer; background: var(--blanc); display: flex; flex-direction: column; gap: 4px; }
.formule input { position: absolute; opacity: 0; }
.formule b { font-family: var(--f-titre); font-size: 1.25rem; text-transform: uppercase; }
.formule .prix { font-family: var(--f-titre); font-size: 2rem; color: var(--or-fonce); }
.formule:has(input:checked) { border-color: var(--or); background: #fffaf0; box-shadow: 0 0 0 3px rgba(184,149,79,.2); }
.question { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--ligne); align-items: center; }
.question:last-child { border-bottom: 0; }
.oui-non { display: flex; gap: 4px; background: var(--creme); border-radius: 999px; padding: 3px; }
.oui-non label { cursor: pointer; }
.oui-non input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.oui-non span { display: block; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .85rem; }
.oui-non input:checked + span { background: var(--noir); color: var(--blanc); }
.oui-non input:focus-visible + span { outline: 3px solid var(--or); }
.drop { border: 2px dashed var(--or); border-radius: var(--r); padding: 22px; text-align: center; background: #fffaf0; cursor: pointer; }
.drop.over { background: #fbeccd; }
.recap { width: 100%; border-collapse: collapse; }
.recap td { padding: 7px 0; border-bottom: 1px solid var(--ligne); }
.recap td:last-child { text-align: right; font-weight: 600; }
.recap tr.total td { font-family: var(--f-titre); font-size: 1.5rem; border-bottom: 0; }

/* ---------- alertes & badges ---------- */
.alert { border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; font-size: .95rem; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-bad { background: var(--bad-bg); color: var(--bad); }
.alert-info { background: var(--info-bg); color: var(--info); }
.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.b-ok { background: var(--ok-bg); color: var(--ok); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-bad { background: var(--bad-bg); color: var(--bad); }
.b-info { background: var(--info-bg); color: var(--info); }
.b-grey { background: #eee; color: #555; }
.b-or { background: var(--or); color: var(--noir); }

/* ---------- espace joueur ---------- */
.fiche-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--noir); color: var(--blanc); margin: -24px -24px 20px; padding: 20px 24px; border-radius: var(--r) var(--r) 0 0; }
.fiche-head h3 { margin: 0; color: var(--blanc); }
.fiche-num { font-family: var(--f-titre); color: var(--or); letter-spacing: .12em; font-size: 1.1rem; }
.checklist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
@media (max-width: 760px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist div { border-radius: 12px; padding: 12px; background: var(--creme); font-size: .85rem; }
.checklist b { display: block; font-size: 1rem; }
.checklist .ok { background: var(--ok-bg); color: var(--ok); }
.checklist .ko { background: var(--warn-bg); color: var(--warn); }
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--ligne); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; font: 600 .95rem var(--f-texte); padding: 10px 14px; cursor: pointer; color: var(--gris); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button.on { color: var(--noir); border-color: var(--or); }
.pay-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
@media (max-width: 760px) { .pay-options { grid-template-columns: 1fr; } }
.pay-opt { border: 2px solid var(--ligne); border-radius: var(--r); padding: 16px; cursor: pointer; background: var(--blanc); text-align: left; font: inherit; }
.pay-opt b { display: block; font-size: 1.05rem; }
.pay-opt .ico { font-size: 1.6rem; }
.pay-opt.on { border-color: var(--or); background: #fffaf0; }
.rib { background: var(--noir); color: var(--blanc); border-radius: 12px; padding: 16px 18px; font-family: Consolas, monospace; font-size: .95rem; }
.rib b { color: var(--or); font-family: var(--f-texte); font-weight: 600; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; display: block; margin-top: 8px; }
.rib b:first-child { margin-top: 0; }
.big-due { font-family: var(--f-titre); font-size: 2.6rem; line-height: 1; }
.progress { height: 10px; background: var(--gris-clair); border-radius: 99px; overflow: hidden; margin: 10px 0 4px; }
.progress i { display: block; height: 100%; background: var(--or); }

table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.tbl th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); padding: 8px 10px; border-bottom: 2px solid var(--ligne); }
table.tbl td { padding: 10px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
table.tbl tr.click { cursor: pointer; }
table.tbl tr.click:hover td { background: #fbf8f2; }
.num { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.timeline { list-style: none; padding: 0; margin: 6px 0 0; font-size: .82rem; color: var(--gris); }
.timeline li { padding-left: 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--or); }

/* ---------- gestion ---------- */
.admin { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; }
.admin > section { min-width: 0; }
@media (max-width: 900px) { .admin { grid-template-columns: 1fr; } }
.side { background: var(--noir); border-radius: var(--r); padding: 12px; position: sticky; top: 90px; }
@media (max-width: 900px) { .side { position: static; display: flex; flex-wrap: wrap; gap: 4px; } }
.side button { display: flex; width: 100%; align-items: center; gap: 10px; background: none; border: 0; color: #ccc; font: 600 .93rem var(--f-texte); padding: 10px 12px; border-radius: 10px; cursor: pointer; text-align: left; }
@media (max-width: 900px) { .side button { width: auto; } }
.side button:hover { background: var(--noir-3); color: var(--blanc); }
.side button.on { background: var(--or); color: var(--noir); }
.side .count { margin-left: auto; background: var(--bad); color: #fff; border-radius: 99px; font-size: .72rem; padding: 1px 7px; }
.side hr { border: 0; border-top: 1px solid #333; margin: 8px 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi b { overflow-wrap: anywhere; }
.kpi { background: var(--blanc); border-radius: var(--r); padding: 18px; border: 1px solid var(--ligne); }
.kpi b { display: block; font-family: var(--f-titre); font-size: 2.2rem; line-height: 1.1; }
.kpi span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); }
.kpi.or { background: var(--noir); color: var(--blanc); border-color: var(--noir); }
.kpi.or b { color: var(--or); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.toolbar input[type=search] { max-width: 280px; }
.toolbar select { width: auto; }
.edit-row td { background: #fffaf0; }

/* ---------- fenêtres ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal { background: var(--blanc); border-radius: 18px; width: min(760px, 100%); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--ligne); }
.modal-head .x { background: none; border: 0; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.modal-body { padding: 22px 24px; }
.modal-foot { padding: 14px 24px; border-top: 1px solid var(--ligne); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* simulation Stripe */
.stripe { width: min(440px, 100%); border-radius: 14px; overflow: hidden; font-family: -apple-system, "Segoe UI", system-ui, sans-serif; }
.stripe-top { background: #635bff; color: #fff; padding: 18px 22px; }
.stripe-top .test { display: inline-block; background: #ffde92; color: #5c3d00; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; letter-spacing: .06em; }
.stripe-amount { font-size: 2rem; font-weight: 700; margin-top: 6px; }
.stripe-body { padding: 22px; }
.stripe-body .btn { width: 100%; border-radius: 8px; margin-top: 8px; }
.btn-stripe { background: #635bff; color: #fff; }
.btn-stripe:hover { background: #5148e6; }

.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: var(--noir); color: #fff; padding: 12px 18px; border-radius: 12px; border-left: 4px solid var(--or); box-shadow: var(--shadow); max-width: 380px; animation: entre .2s ease-out; }
.toast.err { border-left-color: var(--bad); }
@keyframes entre { from { transform: translateY(10px); opacity: 0; } }

/* ---------- pied de page ---------- */
.footer { background: var(--noir); color: #aaa; padding: 44px 0 30px; border-top: 3px solid var(--or); font-size: .9rem; }
.footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .footer .wrap { grid-template-columns: 1fr; } }
.footer h4 { color: var(--or); margin-bottom: 10px; }
.footer a { color: #ddd; }
.footer .copy { grid-column: 1 / -1; border-top: 1px solid #262626; padding-top: 18px; font-size: .8rem; }
.empty { text-align: center; padding: 30px; color: var(--gris); }

/* ---------- équipements du club ---------- */
.equip { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.equip-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--noir); color: var(--blanc); border-left: 4px solid var(--or); }
.equip-item .muted { color: #aaa; }
.equip-item b { font-family: var(--f-titre); font-size: 1.6rem; color: var(--or); white-space: nowrap; }

/* ---------- photos ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ph { margin: 0; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--noir-2); }
.ph figcaption { padding: 10px 12px; font-size: .85rem; line-height: 1.35; flex: 1; }
.ph .btns { padding: 0 12px 12px; }
.ph.pub { cursor: zoom-in; transition: transform .15s, box-shadow .15s; }
.ph.pub:hover, .ph.pub:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { border: 1.5px solid var(--ligne); background: var(--blanc); border-radius: 999px; padding: 7px 14px; font: 600 .88rem var(--f-texte); cursor: pointer; }
.chip span { color: var(--gris); font-weight: 500; }
.chip.on { background: var(--noir); color: var(--blanc); border-color: var(--noir); }
.chip.on span { color: var(--or-clair); }
.modal.modal-large { width: min(1100px, 100%); }
.lightbox img { display: block; max-width: 100%; max-height: 72vh; margin: 0 auto; border-radius: 10px; }

/* ---------- calculateur de points ---------- */
.calc-total { background: var(--noir); color: var(--blanc); border-radius: var(--r); padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.calc-total span { font-size: .8rem; color: #bbb; text-transform: uppercase; letter-spacing: .08em; }
.calc-total span strong { color: var(--blanc); font-size: 1rem; }
.calc-total b { font-family: var(--f-titre); font-size: 2.4rem; line-height: 1; color: var(--or); }
.calc-total b.pts-moins { color: #ff8f8f; }
.tbl.calc input[type=number] { max-width: 120px; }
.tbl.calc select { min-width: 200px; }
.pts-plus { color: var(--ok); }
.pts-moins { color: var(--bad); }
