
:root{--navy:#102b50;--blue:#1660b8;--bg:#eaf0f7;--ink:#182d46;--muted:#677890;--line:#d8e4f1;--white:#fff;--shadow:0 5px 22px #18395c10}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select{font:inherit}button{touch-action:manipulation;cursor:pointer}button:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #e7ad3f;outline-offset:2px}button:disabled{opacity:.42;cursor:not-allowed}.hidden{display:none!important}
.app-header{background:linear-gradient(105deg,#0b2445,#154b86);color:white;padding:7px max(16px,calc((100vw - 1280px)/2));height:60px}.brand{display:flex;align-items:center;gap:10px;height:100%}.mark{height:37px;width:37px;display:grid;place-items:center;background:#ffffff20;border:1px solid #ffffff33;border-radius:10px;font-size:22px;font-weight:900}.brand-text strong{font-size:16px;letter-spacing:.035em}.brand-text strong span{font-weight:600;color:#c9e1fd}.brand-text small{display:block;color:#b5d4f4;font-size:11px}.save-chip{margin-left:auto;border-radius:20px;padding:7px 12px;background:#ffffff1c;font-size:11px;white-space:nowrap}
.shell{max-width:1308px;margin:auto;padding:11px 13px}.topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.context-title{min-width:0}.topline h1{margin:0;font-size:20px;line-height:1.2}.subtext{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.context-controls{display:flex;align-items:center;gap:9px}.selector{display:flex;gap:7px;align-items:center;padding:7px 9px;background:white;border-radius:10px;border:1px solid var(--line)}.selector span{font-size:10px;text-transform:uppercase;font-weight:850;color:#61758d}.selector select{background:transparent;border:0;max-width:225px;min-width:115px;color:var(--ink);font-size:13px;font-weight:750}.selector.compact select{min-width:76px}.tabs{display:flex;gap:7px;margin:0 0 10px}.tab{border-radius:9px;border:1px solid var(--line);background:white;padding:8px 14px;font-size:12px;font-weight:750;color:#45617e}.tab.active{background:var(--navy);color:white;border-color:var(--navy)}
.entry-grid{display:grid;grid-template-columns:minmax(0,0.97fr) minmax(0,1.03fr);gap:11px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);min-width:0}.entry-left,.entry-right{padding:12px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:9px}.panel-title h2{font-size:15px;margin:0}.small-hint{font-size:10px;color:var(--muted)}.subtitle{font-size:11px;color:var(--muted)}.rotate-actions{display:flex;gap:4px}.tiny-btn{background:#eff5fc;border:1px solid #ccdbef;border-radius:9px;color:#234c7d;font-size:11px;font-weight:800;padding:7px 9px;min-height:32px}.tiny-btn.primary{color:#1255a3;background:#e4efff}.tiny-btn:active,.skill:active,.court-player:active,.quick-player:active,.symbol:active{transform:scale(.98)}
.court{border:1px solid #bbd1eb;background:#e0edfc;padding:7px;border-radius:12px}.court-top{display:flex;justify-content:space-between;color:#315c8b;font-size:10px;font-weight:850;letter-spacing:.02em;padding:0 4px 5px}.court-inner{border:1px solid #b2cee9;border-radius:9px;padding:7px;background:#f4f9ff}.court-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.court-player{background:white;border:1.5px solid #b9d5f2;border-radius:9px;min-height:69px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px 3px;gap:1px;text-align:center;min-width:0}.court-player.selected{border:2px solid #1865bd;background:#ddecff;box-shadow:inset 0 0 0 1px #85b5ed}.court-player .zone{font-size:9px;color:#6686ab;font-weight:800}.court-player .jersey{font-size:19px;color:#15569e;font-weight:900;line-height:1.1}.court-player .name{font-size:11px;line-height:1.12;font-weight:680;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.court-player .level{font-size:9px;color:#677b93}.net{height:6px;margin:7px 1px;background:repeating-linear-gradient(90deg,#6d9ac8 0 14px,#e2eefb 14px 17px);border-top:1px solid #78a1c7;border-bottom:1px solid #78a1c7;border-radius:5px}.court-foot{text-align:center;font-size:9px;letter-spacing:.06em;font-weight:800;color:#6082a6;margin-top:5px}.court-summary{font-size:10px;color:#73859b;padding:10px 3px 0;line-height:1.35}
.bench-details,.history-details{margin-top:10px;border:1px solid #d7e4f1;border-radius:10px;overflow:hidden;background:#f7faff}.bench-details>summary,.history-details>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;font-size:12px;color:#1f507e;font-weight:850;padding:10px;cursor:pointer;min-height:40px}.bench-details>summary::-webkit-details-marker,.history-details>summary::-webkit-details-marker{display:none}.bench-details>summary::after,.history-details>summary::after{content:'▾';margin-left:4px}.bench-details[open]>summary::after,.history-details[open]>summary::after{content:'▴'}.bench-details summary span:nth-child(2){font-size:10px;color:#6a829c;font-weight:700;margin-left:auto}.bench-hint{padding:0 10px 8px;font-size:11px;color:#607c94}.bench-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:0 10px}.bench-player{border:1px solid #d5e4f2;border-radius:8px;background:white;padding:9px;text-align:left;font-size:11px;min-height:44px;color:#365a7b;font-weight:650;overflow:hidden}.bench-player b{font-size:14px;margin-right:5px}.bench-player.armed{background:#fff0cb;border:2px solid #db9b2a}.bench-actions{display:flex;gap:7px;padding:8px 10px}.sub-alert{background:#ffefca;padding:10px;color:#77541b;font-size:11px;margin:8px 10px;border-radius:7px}.sub-alert strong{display:block;margin-bottom:4px}.sub-plan{margin:0 10px 10px;background:#ebf2fb;padding:9px;border-radius:8px;font-size:11px;color:#405e7e}.sub-plan div+div{margin-top:4px}
.selected-name{background:#eef5ff;border:1px solid #d0e4fa;border-radius:10px;padding:7px 11px;min-height:45px;display:flex;align-items:center;gap:9px;font-size:12px}.selected-name .circle{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;background:#1e62ac;border-radius:8px;color:white;font-size:17px;font-weight:900}.selected-name strong{font-size:14px}.selected-name span{font-size:11px;color:var(--muted)}.field-row{display:flex;align-items:baseline;justify-content:space-between;gap:7px;margin:10px 0 6px}.section-label{font-size:10px;color:#526f90;text-transform:uppercase;font-weight:900;letter-spacing:.055em}.section-label small{text-transform:none;font-weight:600;letter-spacing:0;font-size:10px}.section-note{font-size:10px;color:#8b9baf}.quick-players{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.quick-player{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;border:1px solid #c9dced;border-radius:8px;background:#f8fbff;min-width:0;padding:6px 1px;min-height:51px}.quick-player .quick-no{font-size:16px;color:#1b568e;font-weight:900;line-height:1}.quick-player .quick-label{font-size:9px;color:#516883;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quick-player.active{background:#dcebff;border:2px solid #1b64b5}.skills{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.skill{border-radius:8px;border:1px solid #d4e1ee;background:#f6f9fe;color:#314d6d;padding:7px 2px;min-height:44px;font-size:11px;font-weight:780}.skill.active{border:2px solid #2271c5;background:#e6f1ff;color:#124d90}.action-field{align-items:center}.undo-action{margin-left:auto;white-space:nowrap}.symbols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.symbol{border:0;border-radius:10px;min-height:79px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;box-shadow:0 4px 9px #1b325210}.symbol b{font-size:30px;line-height:1}.symbol small{font-size:10px;font-weight:730}.symbol[data-symbol="++"]{background:#d1f0e5;color:#0b7556}.symbol[data-symbol="+"]{background:#dcecff;color:#155eac}.symbol[data-symbol="-"]{background:#fff0cf;color:#95661e}.symbol[data-symbol="--"]{background:#ffe2e7;color:#b33c4d}.symbol:disabled{opacity:.35;filter:grayscale(.4)}.symbol.flash{filter:brightness(.89)}.activity-note{font-size:11px;color:#59738f;height:28px;display:flex;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.totals-head{display:flex;align-items:center;justify-content:space-between;margin:2px 0 5px;font-size:11px}.totals-head span{font-size:10px;color:var(--muted)}.mini-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.metric{background:#f0f5fc;border:1px solid #e4edf7;border-radius:8px;text-align:center;padding:7px 3px}.metric strong{display:block;font-size:19px;line-height:1.15}.metric label{font-size:10px;color:#637e9c}.history-details{margin-top:9px}.history{padding:4px 8px 8px;max-height:155px;overflow:auto;display:flex;flex-direction:column;gap:5px}.history-item{display:flex;align-items:center;gap:6px;background:white;padding:7px;border-radius:7px;font-size:11px}.history-item .pill{background:#e7f1fe;padding:3px 5px;border-radius:6px;font-weight:900;min-width:26px;text-align:center}.history-item .grow{flex:1}.history-item button{border:0;background:transparent;color:#b33a4b;font-weight:850;font-size:11px}.action-row{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.quick-footer{margin-top:8px}.secondary-cta{border:1px solid #ccdeee;border-radius:8px;background:#f6faff;padding:9px 12px;color:#245788;font-size:11px;font-weight:800;min-height:36px}
.result-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px}.result-head h2{margin:0;font-size:17px}.spacer{flex:1}.result-head select{border:1px solid var(--line);padding:9px;background:white;border-radius:9px}.legend-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:0 13px 12px}.legend-card{padding:12px;background:#f1f6fd;border-radius:9px}.legend-card b{display:block;font-size:20px}.legend-card span{font-size:10px;color:var(--muted)}.result-table-wrap{max-height:55vh;overflow:auto}.result-table{width:100%;min-width:570px;border-collapse:collapse;font-size:12px}.result-table th{position:sticky;top:0;background:#e7f1ff;color:#315781;text-align:left;padding:10px 8px;z-index:1}.result-table td{padding:9px;border-bottom:1px solid #edf1f6}.result-table td.num{font-weight:850}.result-table td.value{text-align:center;font-weight:780;font-variant-numeric:tabular-nums}.result-table tr.total{background:#eaf3ff;font-weight:900}.skill-area{padding:13px}.skill-area h3{margin:0;font-size:14px}.skill-totals{overflow:auto}.skill-totals table{width:100%;border-collapse:collapse;font-size:12px}.skill-totals th,.skill-totals td{padding:8px;border-bottom:1px solid #e3eaf3}.skill-totals .n{text-align:center;font-weight:800}.result-tools{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px}.footer-tools{display:flex;gap:7px}.export-btn{border:0;border-radius:9px;padding:11px 13px;background:#1a5caa;color:white;font-size:12px;font-weight:800}.export-btn.light{background:#e7f0fc;color:#22588e}
.settings{padding:18px;max-width:960px;margin:auto}.settings h2{margin:0 0 5px;font-size:18px}.settings p{font-size:12px;line-height:1.6;color:#5d748c}.settings hr{margin:20px 0;border:0;border-top:1px solid var(--line)}.setting-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}.setting-fields label{font-size:12px;color:#60748b;font-weight:750;display:flex;flex-direction:column;gap:5px}.setting-fields input{min-height:43px;width:100%;border-radius:8px;border:1px solid #cbddec;padding:9px}.warning{background:#fff7e4;border-radius:10px;border:1px solid #ead6a0;padding:10px;color:#806222;font-size:12px}.danger{background:#fff1f3;color:#b03545;border-color:#f2ccd1}.banner{padding:9px;border:1px solid #bfd6ef;border-radius:9px;background:#ebf5ff;color:#28577f;margin:0 0 9px;font-size:11px}.toast{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:30;pointer-events:none;background:#183858;color:white;padding:11px 16px;border-radius:10px;font-size:12px;font-weight:800;box-shadow:0 6px 24px #25385733}.foot{text-align:center;color:#8294a6;font-size:10px;padding:13px 0}.empty{padding:14px;color:#7188a1;text-align:center;font-size:12px}
@media(min-width:1000px) and (min-height:710px){.entry-grid{align-items:stretch}.entry-grid>.panel{min-height:495px}}
@media(max-width:890px){.shell{padding:9px}.entry-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:8px}.entry-left,.entry-right{padding:9px}.court-player .name{font-size:9px}.court-player{min-height:62px}.quick-player .quick-label{font-size:8px}.skill{font-size:10px}.symbol{min-height:76px}.selector select{max-width:180px}}
@media(max-width:690px){.app-header{height:51px}.brand-text strong{font-size:13px}.brand-text small{font-size:9px}.mark{width:29px;height:29px;font-size:16px}.save-chip{font-size:9px;padding:6px}.topline{flex-wrap:wrap}.topline h1{font-size:17px}.context-controls{width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.6fr)}.selector select{min-width:0;max-width:100%;width:100%}.tabs{justify-content:space-between}.tabs .tab{flex:1;padding:9px}.entry-grid{grid-template-columns:minmax(0,1fr)}.entry-right{order:1}.entry-left{order:2}.quick-player{min-height:54px}.court-player .name{font-size:11px}.court-player{min-height:72px}.quick-footer{justify-content:space-between}.skill{font-size:12px}.setting-fields{grid-template-columns:1fr}.legend-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:400px){.brand-text strong span{display:none}.quick-player .quick-label{font-size:7px}.skill{font-size:10px}.symbol b{font-size:26px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Gestion multi-équipes et répertoire des joueuses */
.team-picker{display:flex;align-items:center;gap:5px;background:#fff;border:1px solid var(--line);padding:5px 9px;border-radius:9px;font-size:11px;color:#4c627d;font-weight:850}.team-picker select{border:0;background:transparent;color:var(--ink);font-weight:750;max-width:175px;min-width:85px}
.roster-table-wrap{overflow-x:auto;margin:10px 0}.roster-table{width:100%;border-collapse:collapse;font-size:12px}.roster-table th{text-align:left;background:#edf3fb;color:#315c87;padding:8px}.roster-table td{border-bottom:1px solid #e6edf6;padding:8px}.roster-table button{margin-right:3px}.roster-table tr.inactive{opacity:.6}.roster-form,.lineup-editor{margin-top:10px;padding:12px;border-radius:10px;background:#f2f7fd;border:1px solid #dae6f4}.roster-form label,.lineup-editor label{font-size:12px;font-weight:750;color:#526b83;display:flex;flex-direction:column;gap:4px}.roster-form input,.lineup-editor select,.lineup-editor input,.team-actions input{min-height:41px;max-width:100%;padding:7px;border:1px solid #c6d8ee;border-radius:7px;background:#fff;color:#192f49}.team-actions{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:8px 0}.team-actions label{font-size:12px;font-weight:700;display:flex;flex-direction:column;gap:4px}.team-actions input{min-width:200px}.roster-form .setting-fields{margin-top:0}.lineup-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:10px 0}.lineup-note{color:#627b95;font-size:11px}.history-team-item{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:space-between;border-bottom:1px solid #e1e8f2;padding:9px 0;font-size:12px}.team-note{font-size:11px;color:#5b748c}.team-name-inline{font-weight:850}
@media(max-width:690px){.team-picker{width:100%;justify-content:space-between}.team-picker select{max-width:65vw}.lineup-slots{grid-template-columns:repeat(2,minmax(0,1fr))}.roster-table{font-size:11px}.roster-table td{padding:6px 3px}.team-actions input{min-width:150px}}

.recovery-box{margin:12px 0;padding:13px;border:1px solid #c9ddec;background:#f3f8ff;border-radius:11px}.recovery-title{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:13px}.recovery-title span{font-size:11px;color:#607b95}.recovery-points{margin:7px 0}.recovery-warning{color:#8b5c1d!important;font-size:11px!important}


/* Pointage tactile : boutons indépendants des statistiques */
.score-panel{display:grid;grid-template-columns:minmax(0,1fr) 115px minmax(0,1fr);gap:7px;align-items:center;padding:8px 11px 5px;background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);margin:0 0 10px}
.score-side{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.score-label{color:#234768;font-size:13px;font-weight:850;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:45%}
.score-buttons{display:flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0}
.score-number{font-size:33px;line-height:1;font-weight:900;color:#102b50;min-width:45px;text-align:center;font-variant-numeric:tabular-nums}
.score-buttons button{border-radius:8px;min-height:46px;min-width:52px;font-weight:900;border:1px solid #bfd5ef;font-size:17px}
.score-plus{background:#1264b5;color:#fff;border-color:#1264b5!important}
.score-plus.away-plus{background:#ca5d27;border-color:#ca5d27!important}
.score-minus{background:#f1f6ff;color:#315b80}
.score-center{text-align:center;display:flex;flex-direction:column;align-items:center;gap:0}
.score-eyebrow{font-size:10px;font-weight:900;color:#68839d;white-space:nowrap}
.score-center strong{font-size:12px;color:#143f6a}
.score-undo{background:transparent;border:0;color:#1e5ea5;font-size:10px;font-weight:750;padding:5px;min-height:26px}
.score-undo:disabled{color:#8a9bac}
.score-setstrip{grid-column:1/-1;border-top:1px solid #e7eff8;padding:5px 2px 1px;display:flex;align-items:center;justify-content:space-between;gap:6px}
.score-set-summary{display:flex;gap:7px;flex-wrap:wrap;align-items:center;font-size:11px;color:#425e7a;font-weight:700}
.score-set-summary span{padding:3px 7px;background:#f2f6fb;border-radius:7px;font-variant-numeric:tabular-nums}
.score-set-summary span.current{color:#104d92;background:#e2f0ff}
.score-independent{color:#8292a5;font-size:10px;text-align:right}
.score-report{margin:4px 0 14px}.score-report h3{margin:0 0 8px;font-size:14px}.score-report-table{overflow:auto}
.score-report-table table{border-collapse:collapse;width:100%;font-size:12px}.score-report-table th,.score-report-table td{border-bottom:1px solid #e0e9f2;text-align:left;padding:7px 9px;white-space:nowrap}.score-report-table th{background:#eef5fc;color:#31577c}.score-report-table tr.current{background:#f2f8ff}.score-result-note{font-size:11px;color:#6e829a;margin:6px 0}
@media(max-width:1050px){.score-side{flex-direction:column;gap:3px}.score-label{max-width:100%;font-size:12px}.score-panel{grid-template-columns:minmax(0,1fr) 100px minmax(0,1fr)}.score-independent{display:none}}
@media(max-width:690px){.score-panel{padding:6px;gap:3px;grid-template-columns:minmax(0,1fr) 75px minmax(0,1fr)}.score-buttons{gap:3px}.score-buttons button{min-width:36px;min-height:45px;font-size:15px;padding:4px}.score-number{min-width:30px;font-size:26px}.score-center strong{font-size:10px}.score-eyebrow{font-size:9px}.score-undo{font-size:9px}.score-setstrip{padding-top:4px}.score-set-summary{font-size:10px;gap:3px}.score-set-summary span{padding:2px 5px}}
/* Indicateur distinct de la sauvegarde des matchs. */
.offline-chip {display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;
 background:#855b18;color:#fff;border-radius:999px;font-size:12px;font-weight:700;
 padding:7px 12px;margin-left:10px}
@media(max-width:720px){.offline-chip{font-size:10px;padding:5px 7px;margin-left:3px}}
