/* Rapports GPS — interface (charte de l'effectif) + gabarits de rapport à taille fixe. */

/* ---------- Interface ---------- */
.tools-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.drop { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; margin-bottom: 24px; border: 2px dashed var(--line); border-radius: 14px;
  background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.drop b { font-size: 16px; }
.drop span { color: var(--grey); font-size: 14px; }
.drop.on, .drop:hover { border-color: var(--orange); background: #FFF6F2; }
.g-empty { padding: 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); margin-bottom: 24px; }
.g-empty p { margin: 0 0 14px; color: var(--grey); line-height: 1.5; }
.g-h2 { margin: 26px 0 12px; font-size: 18px; }
.g-h2 small { color: var(--grey); font-weight: 400; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.g-card { display: block; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none;
  border-left: 4px solid var(--pink); transition: transform .12s, box-shadow .12s; }
.g-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11,26,43,.1); }
.g-card-t { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.g-card-t b { font-size: 16px; }
.g-card-t span { color: var(--grey); font-size: 13px; white-space: nowrap; }
.g-card-m { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 13px; font-weight: 700; }
.g-card-m span:nth-child(2) { color: #B07F00; }
.g-card-m span:nth-child(3) { color: var(--red); }
.g-card-f { margin-top: 6px; color: var(--grey); font-size: 12px; }

.panel { max-width: none; padding: 18px 20px; margin-bottom: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.panel h2 { margin: 0 0 6px; font-size: 18px; }
.panel h2 small { color: var(--grey); font-weight: 400; font-size: 14px; }
.panel h3 { margin: 18px 0 8px; font-size: 15px; }
.muted { color: var(--grey); font-size: 14px; margin: 0 0 12px; line-height: 1.45; }
.small { font-size: 12.5px; }
.note { padding: 8px 12px; border-radius: 8px; background: #EEF5FF; font-size: 14px; }
.note.warn { background: #FFF1EC; color: #A63A1C; }
.hint { margin: -4px 0 10px; font-size: 13px; color: var(--grey); }
.f-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.f-grid label, label.inline { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--grey); }
label.inline { flex-direction: row; align-items: center; gap: 8px; color: var(--navy); }
.f-grid label.warn { color: var(--red); }
.f-grid label.span2 { grid-column: span 2; }
@media (max-width: 520px) { .f-grid label.span2 { grid-column: auto; } }
.f-grid input, .f-grid select, label.inline select, table.edit input, table.edit select, table.players select {
  width: 100%; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 15px; color: var(--navy); font-weight: 400; }
label.inline select { width: auto; }
.seg { display: inline-flex; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { padding: 9px 18px; border: 0; background: #fff; font-weight: 700; color: var(--grey); }
.seg button.on { background: var(--navy); color: #fff; }
.periods { margin: 6px 0 14px; font-size: 14px; }
.periods > div { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.chk { display: inline-flex; align-items: center; gap: 6px; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.mini { border-collapse: collapse; width: 100%; font-size: 13.5px; }
table.mini th { text-align: left; padding: 7px 8px; background: var(--bg); color: var(--grey); font-size: 12px; white-space: nowrap; }
table.mini td { padding: 6px 8px; border-top: 1px solid var(--line-2); white-space: nowrap; }
table.mini tr.off td { opacity: .45; }
table.edit td { padding: 4px; }
table.edit input[type=number] { width: 92px; }
table.edit input[type=text] { min-width: 170px; }
.tag-new { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 4px; background: #FFF1EC; color: #A63A1C; font-size: 11px; font-weight: 700; }
.icon-x { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--red); }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.danger-zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.danger-zone .muted { margin: 0; }
.tabs { display: flex; gap: 4px; margin-bottom: 14px; overflow-x: auto; border-bottom: 2px solid var(--line); }
.tabs a { padding: 10px 14px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--grey); white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.on { color: var(--navy); border-color: var(--orange); }
.rep-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.rep-tools .grow { flex: 1; }

/* ---------- Scène : le rapport garde sa taille réelle et est réduit à l'écran ---------- */
.stage { position: relative; width: 100%; overflow: hidden; border-radius: 10px; box-shadow: 0 10px 30px rgba(11,26,43,.25); background: #0B1A2B; }
.stage .rep { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.capture-host { position: fixed; left: -30000px; top: 0; z-index: -1; }
.capture-host .rep { position: relative; }
/* html2canvas dessine mal les ombres sur les blocs arrondis : on les retire à l'export. */
.capture-host * { box-shadow: none !important; }
.stage.editing .ed { outline: 2px dashed rgba(252,100,64,.85); outline-offset: 2px; border-radius: 3px; cursor: text; }
.stage.editing .ed:focus { outline-style: solid; background: rgba(252,100,64,.12); }

/* ---------- Gabarit commun ---------- */
.rep { --pink: #E6194F; --blue: #0F5BB5; --blue-2: #1B76D1; --hid: #F5B400; --spr: #E6194F; --ink: #0B1A2B; --card: #F4F6FA;
  position: relative; overflow: hidden; color: #fff; font-family: "Titillium Web", Arial, sans-serif; line-height: 1.15;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(30,120,230,.45), transparent 60%),
    radial-gradient(700px 600px at -10% 110%, rgba(30,100,210,.35), transparent 60%),
    linear-gradient(135deg, #06142B 0%, #0A2A5C 50%, #071A3A 100%); }
.rep::before, .rep::after { content: ""; position: absolute; width: 260px; height: 16px; background: var(--pink); transform: rotate(-38deg); opacity: .9; pointer-events: none; }
.rep::before { left: -70px; top: 40px; box-shadow: 0 28px 0 rgba(230,25,79,.45); }
.rep::after { right: -80px; bottom: 50px; box-shadow: 0 -28px 0 rgba(230,25,79,.45); }
.rep table { border-collapse: collapse; width: 100%; }
.rep .ed { white-space: pre-wrap; }

.r-head { position: absolute; left: 40px; right: 40px; top: 22px; height: 132px; display: flex; align-items: center; gap: 22px; z-index: 1; }
.rep-tall .r-head { position: relative; left: 0; right: 0; top: 0; margin: 20px 30px 0; height: 128px; }
.r-logo { width: 116px; height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); }
.r-sep { width: 3px; height: 108px; background: rgba(255,255,255,.75); transform: skewX(-14deg); }
.r-titles { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.r-t1 { font-size: 60px; font-weight: 900; font-style: italic; letter-spacing: .01em; line-height: .95; text-transform: uppercase; text-shadow: 0 3px 10px rgba(0,0,0,.35); }
.r-tag { display: inline-block; padding: 4px 30px 6px; background: linear-gradient(90deg, #D6143F, #F0306A); transform: skewX(-14deg); box-shadow: 0 6px 16px rgba(230,25,79,.35); }
.r-tag span { display: inline-block; transform: skewX(14deg); font-size: 34px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .01em; }
.r-t3 { font-size: 22px; font-weight: 700; font-style: italic; letter-spacing: .03em; text-transform: uppercase; color: #E6ECF5; }
.r-right { margin-left: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.slant { padding: 6px 36px; background: #EEF2F8; transform: skewX(-14deg); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.slant span { display: inline-block; transform: skewX(14deg); color: var(--ink); font-size: 32px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.r-right-sub { font-size: 26px; font-weight: 700; font-style: italic; letter-spacing: .02em; }

.r-strip { position: absolute; left: 40px; right: 40px; height: 52px; display: flex; align-items: center; gap: 16px; padding: 0 26px;
  background: #EEF2F8; color: var(--ink); border-radius: 26px; box-shadow: 0 6px 18px rgba(0,0,0,.25); font-size: 20px; z-index: 1; }
.r-strip.flow { position: relative; left: 0; right: 0; margin: 14px 30px 0; height: 46px; font-size: 17px; justify-content: center; }
.r-strip .lab { padding: 4px 16px; background: var(--ink); color: #fff; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 16px; transform: skewX(-12deg); }
.r-strip .lab.big { background: linear-gradient(90deg, #D6143F, #F0306A); font-size: 20px; padding: 6px 22px; margin-left: -26px; border-radius: 26px 0 0 26px; transform: none; }
.r-strip b { font-weight: 700; font-style: italic; }
.r-strip .dv { width: 2px; height: 26px; background: #9AA8BB; }
.r-strip .ic { font-size: 18px; }
.r-content .ct { font-size: 19px; font-style: italic; font-weight: 600; }

.card { position: absolute; background: var(--card); color: var(--ink); border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.3); overflow: hidden; z-index: 1; }
.card.dark { background: rgba(8,25,55,.92); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.box-title { position: relative; height: 50px; display: flex; align-items: center; padding-left: 50px; background: #0E2550; color: #fff; }
.box-title::before { content: ""; position: absolute; left: -12px; top: 0; width: 40px; height: 100%; background: var(--pink); transform: skewX(-20deg); }
.box-title span { font-size: 26px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .01em; }
.box-title small { font-size: .72em; }
.empty-note { padding: 18px 22px; color: #5B6B7E; font-size: 18px; font-style: italic; margin: 0; }

/* ---------- Séance ---------- */
.sea-table { left: 40px; top: 304px; width: 1120px; bottom: 22px; }
.sea-table thead th { height: 58px; background: #0E2550; color: #fff; font-size: 17px; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.05; border-right: 1px solid rgba(255,255,255,.18); }
.sea-table thead th small { display: block; font-size: 13px; font-weight: 700; text-transform: none; }
.sea-table th.k-dist { color: #8CC6FF; }
.sea-table th.k-hid { background: var(--hid); color: var(--ink); }
.sea-table th.k-spr { background: var(--pink); }
.sea-table th.k-acc { color: #fff; }
.sea-table th.n { width: 66px; }
.sea-table th.nm { width: 290px; }
.sea-table td { height: var(--rh); padding: 0 10px; text-align: center; font-weight: 700; border-bottom: 1px solid #D9E0EA; border-right: 1px solid #E4E9F0; }
.sea-table tbody tr:nth-child(even) td { background: #E7EDF5; }
.sea-table td.n { background: #0E2550 !important; color: #fff; font-weight: 900; border-bottom-color: rgba(255,255,255,.15); }
.sea-table td.nm { text-align: left; font-weight: 700; }
.sea-table td.ok { color: #0F8A43; }
.sea-table td.mid { color: #C46A00; }
.sea-table td.low { color: #D0213B; }
.sea-table tfoot td { height: var(--rh); background: var(--pink) !important; color: #fff; font-weight: 900; font-style: italic; text-transform: uppercase; border: 0; }
.sea-obj { left: 1180px; right: 40px; top: 304px; bottom: 22px; display: flex; flex-direction: column; }
.obj { position: relative; display: flex; align-items: center; gap: 18px; margin: 14px 16px 0; padding: 14px 18px; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(11,26,43,.12); }
.obj > i { width: 34px; height: 70px; border-radius: 6px; transform: skewX(-14deg); background: var(--blue); flex: none; }
.obj.k-hid > i { background: var(--hid); }
.obj.k-spr > i { background: var(--pink); }
.obj.k-acc > i { background: #0E2550; }
.obj > div > span { display: block; font-size: 17px; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.05; }
.obj b { display: block; font-size: 44px; font-weight: 900; font-style: italic; line-height: 1; margin-top: 4px; }
.legend { margin: auto 16px 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 15px; font-weight: 700; color: #5B6B7E; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.legend i.ok { background: #0F8A43; } .legend i.mid { background: #E08A00; } .legend i.low { background: #D0213B; }

/* ---------- Match individuel ---------- */
.coll { width: 720px; border-radius: 12px; overflow: hidden; background: #EEF2F8; color: var(--ink); box-shadow: 0 8px 22px rgba(0,0,0,.3); margin-left: auto; transform: skewX(-6deg); }
.coll > * { transform: skewX(6deg); }
.coll-t { background: #0E2550; color: #fff; padding: 6px 0; text-align: center; font-size: 24px; font-weight: 900; font-style: italic; }
.coll-t small { font-size: 18px; }
.coll-b { display: flex; align-items: center; justify-content: space-around; padding: 10px 14px; }
.coll-b > div { text-align: center; }
.coll-b span { display: block; font-size: 19px; font-weight: 700; font-style: italic; }
.coll-b b { display: block; font-size: 40px; font-weight: 900; font-style: italic; line-height: 1.05; }
.coll-b > i { width: 2px; height: 56px; background: #8C9AB0; }
.mcols { position: absolute; left: 30px; right: 30px; top: 196px; bottom: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; z-index: 1; }
.mcols > div { display: flex; flex-direction: column; gap: 14px; }
.mcols .card { position: relative; }
.grp .box-title { height: 38px; }
.grp .box-title span { font-size: 22px; }
.grp th { height: 46px; padding: 0 4px; background: #0E2550; color: #fff; font-size: 14px; font-weight: 700; font-style: italic; line-height: 1.05; border-top: 1px solid rgba(255,255,255,.2); }
.grp th.hl { background: #1B76D1; }
.grp th.nm { width: 30%; }
.grp td { height: var(--rh); padding: 0 6px; text-align: center; font-weight: 700; border-bottom: 1px solid #D9E0EA; }
.grp td.nm { text-align: left; padding-left: 14px; }
.grp td.hl { background: #D7E9FB; }
.grp tbody tr:nth-child(even) td:not(.hl) { background: #E9EEF5; }

/* ---------- Focus match ---------- */
.rep-tall { padding-bottom: 26px; }
.rep-tall .card { position: relative; }
.two { display: grid; grid-template-columns: 560px 1fr; gap: 18px; margin: 18px 30px 0; }
.two .box-title span { font-size: 22px; }
.k-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px 10px 12px; }
.k-grid > div { padding: 12px 6px; text-align: center; border-right: 2px solid #D0D8E4; }
.k-grid > div:nth-child(3n) { border-right: 0; }
.k-grid > div:nth-child(-n+3) { border-bottom: 2px solid #D0D8E4; }
.k-grid span { display: block; font-size: 17px; font-weight: 700; font-style: italic; }
.k-grid b { display: block; margin-top: 6px; font-size: 34px; font-weight: 900; font-style: italic; }
.k-grid .dn .donut { margin: 4px auto 0; }
.donut { position: relative; }
.donut svg { display: block; }
.donut b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 20px !important; font-weight: 900; font-style: italic; margin: 0 !important; color: var(--ink); }
table.cmp th { height: 50px; padding: 0 8px; background: #0E2550; color: #fff; font-size: 15px; font-weight: 700; font-style: italic; line-height: 1.05; }
table.cmp th small { font-size: 13px; }
table.cmp th.cur { background: #1B76D1; }
table.cmp td { height: 38px; padding: 0 10px; text-align: center; font-size: 18px; font-weight: 700; border-bottom: 1px solid #D9E0EA; }
table.cmp td:first-child { text-align: left; padding-left: 16px; }
table.cmp td.cur { background: #D7E9FB; font-weight: 900; }
table.cmp td.d.up { color: #0F8A43; }
table.cmp td.d.down { color: #D0213B; }
.charts { margin: 18px 30px 0; }
.ch-row { display: flex; justify-content: space-between; padding: 6px 12px 0; }
.chart + .chart { border-left: 1px solid rgba(255,255,255,.18); padding-left: 8px; }
.ch-title { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; font-size: 19px; font-weight: 700; font-style: italic; }
.ch-title i { width: 14px; height: 14px; border-radius: 50%; border: 4px solid; background: #fff; }
.ch-box { position: relative; }
.ch-box svg { position: absolute; left: 0; top: 0; }
.ch-box i { position: absolute; font-style: italic; font-weight: 700; white-space: nowrap; }
.ch-y { text-align: right; font-size: 13px; color: #C7D2E2; }
.ch-v { width: 80px; text-align: center; font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.ch-x { width: 60px; text-align: center; font-size: 15px; color: #DCE4F0; }
.ch-note { padding: 0 20px 10px; text-align: right; font-size: 13px; font-style: italic; color: #AFC0D6; }
.indiv { margin: 18px 30px 0; }
.indiv th { height: 44px; padding: 0 6px; background: #0E2550; color: #fff; font-size: 16px; font-weight: 700; font-style: italic; line-height: 1.05; border-bottom: 1px solid rgba(255,255,255,.25); }
.indiv th.h-dist { background: #1B76D1; }
.indiv th.h-hid { background: var(--hid); color: var(--ink); }
.indiv th.h-spr { background: var(--pink); }
.indiv th.pt { width: 140px; }
.indiv th.nm { width: 250px; }
.indiv td { height: 30px; padding: 0 8px; font-size: 17px; font-weight: 700; background: #F4F6FA; color: var(--ink); border-bottom: 1px solid #DCE3EC; text-align: center; }
.indiv tr.first td { border-top: 3px solid #0E2550; }
.indiv td.nm { text-align: left; padding-left: 14px; }
.indiv td.pt { background: #0E2550; color: #fff; text-align: center; border-bottom: 0; }
.indiv td.pt span { display: inline-block; padding: 6px 8px; border-radius: 8px; background: linear-gradient(180deg, #1B3F7A, #0E2550); border: 1px solid rgba(255,255,255,.25); font-size: 16px; font-weight: 900; font-style: italic; line-height: 1.05; }
.indiv td.cbar { text-align: left; white-space: nowrap; }
.indiv td.cbar b { display: inline-block; width: 64px; text-align: right; margin-right: 10px; }
.indiv td.cbar i { display: inline-block; height: 14px; border-radius: 4px; vertical-align: -1px; }
.b-dist i { background: linear-gradient(180deg, #4FA6FF, #1462C4); }
.b-hid i { background: linear-gradient(180deg, #FFD34D, #E6A100); }
.b-spr i { background: linear-gradient(180deg, #FF5C8A, #D6143F); }

/* ---------- Bilan saison ---------- */
.kpi-row { left: 40px; right: 40px; top: 172px; height: 132px; display: flex; align-items: center; padding: 0 10px 0 24px; border-left: 12px solid var(--pink); }
.kp { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; border-right: 2px solid #CBD4E1; }
.kp:nth-last-child(2) { border-right: 0; }
.kp span { font-size: 18px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.kp b { font-size: 40px; font-weight: 900; font-style: italic; line-height: 1; }
.kp.kpill b em { display: inline-block; padding: 6px 16px; border-radius: 10px; background: linear-gradient(180deg, #1B76D1, #0F4F9E); color: #fff; font-style: italic; font-size: 34px; }
.kp-note { position: absolute; right: 24px; bottom: 6px; font-size: 13px; font-style: italic; color: #5B6B7E; }
.bil-table { left: 40px; top: 322px; width: 830px; bottom: 18px; }
.bil-table th { height: 52px; padding: 0 4px; background: #0E2550; color: #fff; font-size: 15px; font-weight: 700; font-style: italic; line-height: 1.05; border-right: 1px solid rgba(255,255,255,.15); }
.bil-table th.nm { width: 220px; }
.bil-table td { height: var(--rh); padding: 0 6px; text-align: center; font-weight: 700; background: #F4F6FA; color: var(--ink); border-bottom: 1px solid #D9E0EA; border-right: 1px solid #E4E9F0; }
.bil-table td.nm { text-align: left; padding-left: 14px; }
.bil-table tr.last td { background: #CFE4FA; }
.bil-table tfoot td { background: var(--pink); color: #fff; font-weight: 900; font-style: italic; }
.bil-focus { left: 890px; right: 40px; top: 322px; height: 324px; }
.bil-focus .box-title span, .bil-rep .box-title span { font-size: 21px; }
.bil-focus table.cmp td { height: 37px; font-size: 17px; }
.bil-rep { left: 890px; right: 40px; top: 662px; bottom: 18px; }
.stack { display: flex; height: 54px; margin: 20px 22px 14px; border-radius: 27px; overflow: hidden; background: #DDE3EC; }
.stack i { display: block; height: 100%; min-width: 6px; }
.s1 { background: linear-gradient(180deg, #1B6ACB, #0E4A99); }
.s2 { background: linear-gradient(180deg, #4FB6FF, #1E90E8); }
.s3 { background: linear-gradient(180deg, #FF4D7C, #D6143F); }
.stack-leg { display: flex; justify-content: space-around; padding: 0 12px; }
.stack-leg > div { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; }
.stack-leg > div > i { grid-row: span 2; width: 18px; height: 40px; border-radius: 4px; transform: skewX(-12deg); }
.stack-leg b { font-size: 28px; font-weight: 900; font-style: italic; line-height: 1; }
.stack-leg span { font-size: 15px; font-weight: 700; font-style: italic; color: #4A5A70; line-height: 1.1; }

.bil-foot { margin: 0; padding: 4px 14px; font-size: 13px; font-style: italic; color: #AFC0D6; }
.bil-table sup { color: var(--hid); font-size: .8em; }

/* ---------- Référentiel, semaine type, objectifs ---------- */
.r-foot { position: absolute; left: 34px; right: 34px; bottom: 6px; font-size: 14px; font-style: italic; color: #AFC0D6; z-index: 1; }
.grp td small { font-size: .75em; color: #6B7A8F; margin-left: 1px; }
.grp td.po, .grp td i { color: #8592A6; font-style: italic; }
.grp sup, .sea-table sup { color: var(--pink); font-weight: 900; }
.md-seg { display: flex; flex-wrap: wrap; border: 0; gap: 6px; overflow: visible; }
.md-seg a { display: flex; flex-direction: column; align-items: center; min-width: 72px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  text-decoration: none; font-weight: 700; color: var(--navy); }
.md-seg a small { font-weight: 400; color: var(--grey); font-size: 12px; }
.md-seg a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.md-seg a.on small { color: #C9D6E6; }
table.sem-edit input[type=number] { width: 80px; }
table.sem-edit input[type=text] { min-width: 230px; }
.sem-row { position: absolute; left: 34px; right: 34px; top: 186px; height: 520px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; z-index: 1; }
.sem-row .card { position: relative; display: flex; flex-direction: column; }
.sem-h { display: flex; flex-direction: column; align-items: center; padding: 10px 0 8px; background: #0E2550; color: #fff; }
.sem-h b { font-size: 34px; font-weight: 900; font-style: italic; line-height: 1; }
.sem-h span { font-size: 17px; font-weight: 700; font-style: italic; text-transform: uppercase; color: #C9D6E6; }
.sem-day.is-match .sem-h { background: linear-gradient(90deg, #D6143F, #F0306A); }
.sem-day.is-match .sem-h span { color: #fff; }
.sem-t { min-height: 62px; padding: 10px 10px 0; text-align: center; font-size: 17px; font-weight: 700; font-style: italic; line-height: 1.15; }
.sem-bars { flex: 1; display: flex; align-items: flex-end; justify-content: space-around; padding: 0 8px 12px; }
.sb { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 25%; }
.sb b { font-size: 14px; font-weight: 900; font-style: italic; }
.sb i { width: 24px; border-radius: 4px 4px 0 0; }
.sb span { font-size: 12px; font-weight: 700; color: #5B6B7E; }
.sb i.k-dist { background: linear-gradient(180deg, #4FA6FF, #1462C4); }
.sb i.k-hid { background: linear-gradient(180deg, #FFD34D, #E6A100); }
.sb i.k-sprint { background: linear-gradient(180deg, #FF5C8A, #D6143F); }
.sb i.k-acc { background: linear-gradient(180deg, #3A5677, #0E2550); }
.sem-tot { left: 34px; right: 34px; top: 726px; height: 130px; display: flex; align-items: center; justify-content: space-around; padding: 0 26px; border-left: 12px solid var(--pink); }
.sem-tot > span { font-size: 22px; font-weight: 900; font-style: italic; text-transform: uppercase; max-width: 300px; line-height: 1.1; }
.sem-tot > div { display: flex; flex-direction: column; align-items: center; }
.sem-tot b { font-size: 46px; font-weight: 900; font-style: italic; line-height: 1; }
.sem-tot em { font-size: 17px; font-weight: 700; color: #5B6B7E; }
.sem-tot small { font-size: 15px; font-style: italic; color: #5B6B7E; }
.sea-ref thead th { height: 34px; }
.sea-ref thead tr.sub th { height: 24px; font-size: 12px; font-weight: 700; text-transform: none; }
.sea-table td.pc { font-weight: 900; font-size: .92em; }
.sea-table td.pc.ok { color: #0F8A43; background: #E3F5EA !important; }
.sea-table td.pc.mid { color: #B35F00; background: #FFF1DD !important; }
.sea-table td.pc.low { color: #C81E36; background: #FDE6EA !important; }
.obj em { display: block; margin-top: 4px; font-size: 14px; font-style: italic; font-weight: 700; color: #5B6B7E; }
.legend.note2 { margin-top: 0; font-size: 12.5px; font-weight: 400; font-style: italic; text-align: center; }
.sea-obj.compact .obj { margin-top: 9px; padding: 9px 16px; }
.sea-obj.compact .obj > i { height: 58px; }
.sea-obj.compact .obj b { font-size: 38px; }
.sea-obj.compact .legend { margin-bottom: 6px; }
.sea-obj.compact .legend.note2 { margin-bottom: 10px; }
.sem-tot b.off { color: var(--red); }
table.sem-tot-t input { width: 90px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); font: inherit; }
table.sem-tot-t td.tot-ok { color: #0F8A43; font-weight: 700; }
table.sem-tot-t td.tot-off { color: var(--red); font-weight: 700; }

/* ---------- Sous-onglets Effectif / Séances / Matchs ---------- */
.gps-sub { margin-bottom: 18px; }
.gps-sub a { font-size: 15px; padding: 10px 18px; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }

/* Effectif : cartes joueurs */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.pl-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 12px; background: #fff;
  border: 1px solid var(--line); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.pl-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11,26,43,.1); }
.pl-card.off { opacity: .55; }
.pl-ph { flex: none; width: 54px; height: 54px; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, var(--navy-2), var(--navy-3)); }
.pl-ph img { width: 100%; height: 130%; object-fit: cover; object-position: top; }
.pl-b { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.pl-b b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-m { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; font-weight: 700; }
.pl-m span:nth-child(2) { color: #B07F00; }
.pl-f { color: var(--grey); font-size: 12px; }
.acwr { flex: none; min-width: 46px; padding: 5px 8px; border-radius: 8px; text-align: center; font-weight: 700; font-size: 14px; background: var(--line-2); color: var(--grey); }
.acwr.ok { background: #E3F5EA; color: #0F7A3B; }
.acwr.low { background: #E6F0FB; color: #1462C4; }
.acwr.mid { background: #FFF1DD; color: #B35F00; }
.acwr.high { background: #FDE6EA; color: #C81E36; }
.acwr-leg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.acwr-leg i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-left: 8px; }
.acwr-leg i.low { background: #1462C4; } .acwr-leg i.ok { background: #0F8A43; } .acwr-leg i.mid { background: #E08A00; } .acwr-leg i.high { background: #D0213B; }

/* Séances : historique */
table.sea-hist td.ct { max-width: 280px; white-space: normal; min-width: 160px; color: var(--grey); }
table.sea-hist tr.wk td { background: var(--navy); color: #fff; font-weight: 700; font-size: 12.5px; letter-spacing: .02em; }
table.sea-hist a { color: var(--navy); }
.md-pill { display: inline-block; padding: 2px 7px; border-radius: 5px; background: var(--navy-2); color: #fff; font-size: 12px; font-weight: 700; }
td.reach { font-weight: 700; }
td.reach.ok { color: #0F7A3B; } td.reach.mid { color: #B35F00; } td.reach.low { color: #C81E36; }

/* Rapport séance : ligne objectif sous la moyenne */
.sea-table tfoot tr.objr td { background: #0E2550 !important; }
.sea-table tfoot small { font-size: .78em; padding: 1px 6px; border-radius: 5px; background: #fff; margin-left: 4px; }
.sea-table tfoot small.ok { color: #0F8A43; } .sea-table tfoot small.mid { color: #C46A00; } .sea-table tfoot small.low { color: #D0213B; }

/* ---------- Rapport : suivi de charge d'un joueur (1600 × 900) ---------- */
.j-right { margin-left: auto; display: flex; align-items: flex-end; gap: 22px; height: 100%; }
.j-ph { height: 150px; width: auto; align-self: flex-end; margin-bottom: -18px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); }
.rep-joueur .kpi-row .kp b { font-size: 36px; }
.kp-sub { font-size: 14px; font-weight: 700; font-style: italic; color: #5B6B7E; }
.acwr-big { padding: 2px 16px; border-radius: 10px; background: #DDE3EC; }
.acwr-big.ok { background: #0F8A43; color: #fff; } .acwr-big.low { background: #1462C4; color: #fff; }
.acwr-big.mid { background: #E08A00; color: #fff; } .acwr-big.high { background: #D0213B; color: #fff; }
.j-charts { left: 40px; top: 322px; width: 980px; bottom: 18px; }
.j-charts .chart { padding: 0 20px; }
.j-charts .ch-title { justify-content: flex-start; margin: 8px 0 0 6px; font-size: 18px; }
.j-leg { position: absolute; right: 18px; top: 12px; display: flex; gap: 18px; font-size: 16px; font-weight: 700; font-style: italic; }
.j-leg i { display: inline-block; width: 16px; height: 16px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.j-ref { left: 1040px; right: 40px; top: 322px; height: 178px; }
.j-ref .box-title span, .j-last .box-title span { font-size: 22px; }
.j-ref-b { display: grid; grid-template-columns: repeat(4, 1fr); padding: 12px 8px 4px; }
.j-ref-b > div { text-align: center; border-right: 2px solid #D0D8E4; }
.j-ref-b > div:last-child { border-right: 0; }
.j-ref-b span { display: block; font-size: 16px; font-weight: 700; font-style: italic; }
.j-ref-b b { display: block; font-size: 32px; font-weight: 900; font-style: italic; line-height: 1.1; }
.j-ref-n { margin: 6px 14px 0; font-size: 13px; font-style: italic; color: #5B6B7E; text-align: center; }
.j-last { left: 1040px; right: 40px; top: 516px; bottom: 18px; }
.j-last th { height: 38px; padding: 0 4px; background: #0E2550; color: #fff; font-size: 14px; font-weight: 700; font-style: italic; }
.j-last td { height: 29px; padding: 0 6px; text-align: center; font-size: 15.5px; font-weight: 700; border-bottom: 1px solid #D9E0EA; }
.j-last td.nm, .j-last th.nm { text-align: left; }
.j-last td.nm { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j-last tr.is-m td { background: #FDE6EA; }

/* Rapport séance à objectifs fixes : modèle FBBP (cases vertes / rouges) */
.sea-fix thead th { height: 78px; }
.sea-fix thead th small.ob { margin-top: 3px; font-size: 14px; font-weight: 900; font-style: italic; }
.sea-fix tbody td.hit { background: #9BE28C !important; }
.sea-fix tbody td.miss { background: #F7A9B4 !important; }
.sea-fix tbody td.n { background: #0E2550 !important; }
.sea-fix tbody td.nm { background: #F4F6FA; }
.sea-fix tbody tr:nth-child(even) td.nm { background: #E7EDF5; }
.legend-fix { flex-direction: column; align-items: flex-start; gap: 10px; margin: auto 16px 16px; padding: 14px 18px; border-radius: 12px; background: #fff;
  border: 2px solid #0E2550; font-size: 17px; font-style: italic; color: var(--ink); }
.legend-fix i { width: 44px; height: 20px; border-radius: 6px; margin-right: 12px; vertical-align: -4px; }
.legend-fix i.hit { background: #6CCB5F; } .legend-fix i.miss { background: #F28A9A; }

/* Import Catapult */
table.cat td { vertical-align: middle; }
table.cat .cat-d { white-space: nowrap; }
table.cat .cat-d input[type=text] { min-width: 130px; width: 150px; }
table.cat input.j-in { width: 64px; }
.min-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 14px; }
.min-grid label { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 8px; background: var(--bg); font-size: 14px; font-weight: 700; }
.min-grid label small { display: block; font-weight: 400; color: var(--grey); font-size: 12px; }
.min-grid input { width: 70px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); font: inherit; }
