@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;650;700&display=swap');
:root{color-scheme:dark;--bg:#141813;--surface:#1c211a;--line:#353d30;--text:#f8f4e9;--muted:#c1c5b5;--orange:#ffaf55;-- green:#a6bf86;font-family:Inter,system-ui,sans-serif;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}a{color:inherit;text-decoration:none}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:default;opacity:.42}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.67rem .93rem;border:1px solid var(--line);border-radius:6px;background:#242b21;color:var(--text);font-weight:650;font-size:.88rem;min-height:41px;text-align:center}button:hover:not(:disabled),.button:hover{border-color:var(--orange)}.primary{background:var(--orange);color:#212016;border-color:var(--orange)}.quiet{background:transparent}.frame{min-height:100vh;display:grid;grid-template-columns:236px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;padding:27px 18px;background:#191e17;border-right:1px solid var(--line)}.brand{display:flex;align-items:center;gap:.65rem;font-weight:700;font-size:1rem;line-height:1.3}.emblem,.team-icon{display:grid;place-items:center;background:#463224;color:var(--orange);border:1px solid #765333;border-radius:8px;min-width:40px;height:40px;font-size:1.22rem}.brand small{display:block;color:var(--muted);font-size:.7rem;font-weight:500}.sidebar nav{display:grid;gap:.4rem;margin-top:39px}.sidebar nav a{display:flex;align-items:center;gap:.8rem;padding:.7rem .8rem;color:var(--muted);border:1px solid transparent;border-radius:7px;font-size:.93rem}.sidebar nav a b{width:1.3em;text-align:center;font-size:1.19rem;line-height:1}.sidebar nav a[aria-current]{background:#2d3023;color:var(--orange);border-color:#4f432b}.sidebar nav a:hover{background:#262e22}.install{margin-top:auto}.workspace{min-width:0}.top{display:flex;align-items:center;justify-content:space-between;gap:1rem;height:67px;padding:0 clamp(1rem,4vw,3.8rem);border-bottom:1px solid var(--line);color:var(--muted);font-size:.9rem;background:#191e17}.edition{display:flex;align-items:center;gap:.5rem}.edition select{width:clamp(115px,22vw,210px)}input,select,textarea{border:1px solid #465041;border-radius:6px;background:#151a14;color:var(--text);padding:.62rem .7rem;min-width:0;width:100%}select{appearance:none;padding-right:2rem;background-image:linear-gradient(45deg,transparent 50%,#c1c5b5 50%),linear-gradient(135deg,#c1c5b5 50%,transparent 50%);background-position:calc(100% - 15px) 50%,calc(100% - 10px) 50%;background-size:5px 5px;background-repeat:no-repeat}main{max-width:1320px;margin:auto;padding:clamp(1rem,4vw,3.8rem);min-height:calc(100vh - 135px)}footer{border-top:1px solid var(--line);padding:1.1rem clamp(1rem,4vw,3.8rem);font-size:.77rem;color:var(--muted)}h1,h2,h3{font-family:"Barlow Condensed","Arial Narrow",Impact,sans-serif;margin:0;line-height:1;font-weight:700}h1{font-size:clamp(2.5rem,7vw,4.5rem);letter-spacing:-.015em}h2{font-size:clamp(1.65rem,4vw,2.15rem)}h3{font-size:1.45rem}p{line-height:1.55;margin:.55rem 0;color:var(--muted)}.hero{position:relative;isolation:isolate;overflow:hidden;display:grid;align-content:center;min-height:325px;padding:clamp(1.3rem,4vw,2.75rem);border:1px solid #4d5941;border-radius:12px;background:radial-gradient(ellipse at 100% 5%,#3a4d31,#222d20 65%,#22261c)}.hero h1{max-width:8.9em;text-transform:uppercase;font-weight:800}.hero h1 em{color:var(--orange);font-style:normal}.hero p{max-width:32rem;margin:1rem 0 1.4rem}.pitch{position:absolute;pointer-events:none;z-index:-1;right:-7%;top:-42%;width:min(57%,550px);height:180%;transform:rotate(-26deg);border:3px solid #92ad79;opacity:.27;background:repeating-linear-gradient(0deg,transparent 0 9.5%,#b0c78c 9.6% 9.95%,transparent 10% 20%)}.pitch:before{content:"";position:absolute;inset:35% 26%;border:2px solid #a9bf89;border-radius:50%}.pitch:after{content:"";position:absolute;inset:47% 45%;border:2px solid var(--orange);border-radius:50%;background:#ffaf5566}.eyebrow{letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--orange);font-size:.76rem;margin:0 0 .8rem}.toolbar,.actions,.chips,.stats{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem}.section-head{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin:1.75rem 0 .85rem}.page-head{margin-bottom:1.35rem}.page-head p{max-width:68ch}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:.8rem}.card{background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:1.05rem;min-width:0}.card p:last-child{margin-bottom:0}.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:.8rem}.card h3{margin-top:.2rem}.meta{font-size:.83rem;color:var(--muted)}.pill{border:1px solid var(--line);border-radius:99px;padding:.25rem .55rem;font-size:.78rem;color:#dddcca;white-space:nowrap}.orange{color:var(--orange)}.good{color:#b3d99d}.bad{color:#ffb5a0}.list{display:grid;gap:.65rem}.spread{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap}.row{display:flex;align-items:center;gap:.7rem}.field{display:grid;gap:.35rem;font-size:.85rem;color:var(--muted)}.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:.7rem}.field:has(input[type=checkbox]){display:flex;align-items:center}.field input[type=checkbox]{width:auto}.spaced{margin-top:1rem}.split{display:grid;grid-template-columns:1.45fr 1fr;gap:1rem;align-items:start}.score{font:700 3.5rem "Barlow Condensed",sans-serif;color:var(--orange);line-height:1}.table-wrap{max-width:100%;overflow:auto}table{width:100%;border-collapse:collapse;font-size:.88rem}th,td{text-align:left;padding:.6rem .45rem;border-bottom:1px solid var(--line)}th{color:var(--muted);font-weight:600}td strong{white-space:nowrap}details summary{cursor:pointer;font-weight:650;line-height:1.4}dialog{color:var(--text);background:var(--surface);border:1px solid #59634d;border-radius:10px;width:min(94vw,720px);max-height:90dvh;overflow:auto;padding:1.25rem}dialog::backdrop{background:#000a}#status{position:fixed;z-index:3;bottom:1rem;right:1rem;max-width:calc(100% - 2rem);background:#303b29;border-radius:7px;color:var(--text);padding:.7rem 1rem}#status:empty{display:none}.empty{padding:1.4rem;border:1px dashed #465041;border-radius:9px}.links a{text-decoration:underline;text-underline-offset:3px;color:var(--orange)}.hidden{display:none!important}
@media(max-width:900px){.frame{grid-template-columns:182px minmax(0,1fr)}.sidebar{padding-inline:12px}.split{grid-template-columns:1fr}}@media(max-width:650px){.frame{display:block}.sidebar{height:auto;position:static;padding:.65rem 1rem;display:flex;flex-direction:row;gap:.55rem;align-items:center;justify-content:space-between;border:0;border-bottom:1px solid var(--line)}.sidebar nav{position:fixed;bottom:0;left:0;right:0;margin:0;z-index:2;display:flex;justify-content:space-around;gap:0;border-top:1px solid var(--line);padding:.3rem .15rem max(.3rem,env(safe-area-inset-bottom));background:#191e17}.sidebar nav a{display:grid;justify-items:center;gap:.22rem;padding:.38rem .29rem;font-size:.73rem;min-width:3.6rem}.sidebar nav a b{font-size:1.05rem}.sidebar .install{margin:0;font-size:.76rem;padding:.47rem .55rem}.top{height:55px}.hero{min-height:280px}.hero p{max-width:24ch}.pitch{right:-26%;width:86%;opacity:.17}footer{margin-bottom:68px}#status{bottom:72px}.section-head{align-items:flex-start}.top label{font-size:.77rem}}
dialog.wide{width:min(96vw,1280px)}.comparison-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}#print-sheet{display:none}@media(max-width:850px){.comparison-grid{grid-template-columns:1fr}}@media print{body>*{display:none!important}body>#print-sheet{display:block!important;color:#111;background:white;padding:1cm}#print-sheet pre{white-space:pre-wrap;font:12pt/1.5 sans-serif}#print-sheet h1{font:700 24pt sans-serif}}
.header-options{display:flex;gap:.8rem;align-items:center}.header-options .edition select{width:clamp(110px,16vw,190px)}.skill-buttons{display:flex;flex-wrap:wrap;gap:.35rem}.skill-buttons button{min-height:30px;font-size:.82rem;padding:.25rem .55rem}.player-number{color:var(--orange);font-weight:700}.reference-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}@media(max-width:650px){.top{height:auto;min-height:55px;padding-block:.6rem;align-items:flex-start}.header-options{flex-wrap:wrap;justify-content:flex-end;gap:.45rem}.header-options .edition{font-size:.73rem}.sidebar nav a{min-width:0;flex:1}.sidebar nav{padding-inline:.1rem}.header-options .edition select{width:125px}}
 .section-head{flex-wrap:wrap}

.memo{margin:.6rem 0}.memo h3{margin:0 0 .4rem}.memo-group{margin:.35rem 0}.memo-group .skill-buttons{display:flex;flex-wrap:wrap;gap:.3rem;margin:.2rem 0 .4rem}.memo-primary>summary{color:#9fd08a}.memo-secondary>summary{color:#e3b55a}.memo-forbidden>summary{color:#d07a6a}.memo-forbidden .pill{opacity:.6}.pill.owned{text-decoration:line-through;opacity:.5}

@media print{@page{size:A4 landscape;margin:8mm}body>#print-sheet{padding:0}}
.bb-sheet{font:7.5pt/1.15 Arial,sans-serif;color:#000}.bb-sheet .bar{height:8px;background:#8a17e6;margin-bottom:6px}
.bb-sheet table{border-collapse:collapse;width:100%}.bb-sheet th,.bb-sheet td{border:1px solid #000;padding:1px 3px;text-align:center;vertical-align:middle}
.bb-sheet .head{margin-bottom:6px}.bb-sheet .head th{text-align:left;font-weight:400;width:12%}.bb-sheet .head td.wide{width:50%;font-weight:700}
.bb-sheet .roster th{font-size:6.5pt;font-weight:400}.bb-sheet .roster td{height:6.6mm;font-size:6.5pt}.bb-sheet .num{font-size:11pt!important;width:5mm}
.bb-sheet .name{font-weight:700;width:22mm}.bb-sheet .small{width:18mm}.bb-sheet .stat{width:5mm;font-weight:700}.bb-sheet .skills{width:52mm;font-weight:700;font-size:6pt!important}.bb-sheet .money{width:16mm;font-weight:700;white-space:nowrap}
.bb-sheet .foot{display:grid;grid-template-columns:1fr 32mm 1fr;margin-top:4px}.bb-sheet .foot th{text-align:left;font-weight:400;width:45%}.bb-sheet .foot td{font-weight:700}
.bb-sheet .crest{border:1px solid #000;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#3a1414;color:#e8b04a;text-align:center;padding:2px}.bb-sheet .crest span{font-size:18pt}
.bb-sheet .legend{font-size:6pt;margin-top:3px;color:#444}
@media print{html,body{background:#fff!important}}
.bb-sheet th,.bb-sheet td{color:#000!important;background:#fff}.bb-sheet .crest{background:#3a1414}.bb-sheet .crest *{color:#e8b04a!important}
.bb-sheet .reserve{font-size:7pt;margin-top:4px}.bb-sheet{print-color-adjust:exact;-webkit-print-color-adjust:exact}
/* Thèmes : chaque thème ne fait que redéfinir ces jetons. */
:root{--panel:#191e17;--btn:#242b21;--field:#151a14;--field-line:#465041;--hover:#262e22;--on-bg:#2d3023;--on-line:#4f432b;--emblem-bg:#463224;--emblem-line:#765333;--hero-1:#3a4d31;--hero-2:#222d20;--hero-3:#22261c;--hero-line:#4d5941;--pitch:#a9bf89;--status:#303b29;--dialog-line:#59634d;--pill:#dddcca;--on-accent:#212016}
html[data-theme=red]{--bg:#120c0c;--surface:#1f1514;--panel:#180f0f;--line:#4a2c29;--text:#f7eee6;--muted:#d3bdb3;--orange:#ef5b4a;--on-accent:#1c0c0a;--btn:#2b1a18;--field:#140d0d;--field-line:#5c3833;--hover:#2a1916;--on-bg:#3a1c19;--on-line:#7a3a32;--emblem-bg:#4a1d18;--emblem-line:#8c3a30;--hero-1:#6b2219;--hero-2:#3a1512;--hero-3:#1f1212;--hero-line:#6e3830;--pitch:#e7c9a8;--status:#3a1d1a;--dialog-line:#6e4038;--pill:#ead8cc}
html[data-theme=violet]{--bg:#0f0d16;--surface:#1b1727;--panel:#15111f;--line:#3d3352;--text:#f6f1ff;--muted:#c6bcda;--orange:#b892ff;--on-accent:#160e26;--btn:#251e36;--field:#120f1b;--field-line:#4d4166;--hover:#241d34;--on-bg:#2e2344;--on-line:#634b8c;--emblem-bg:#33224f;--emblem-line:#6f52a0;--hero-1:#45296d;--hero-2:#261c3b;--hero-3:#18131f;--hero-line:#5a4480;--pitch:#d7c6ff;--status:#2e2344;--dialog-line:#5a4880;--pill:#e2d9f5}
html[data-theme=nuit]{--bg:#0c111c;--surface:#151c2b;--panel:#0f1624;--line:#2c3850;--text:#f1f4fa;--muted:#b4bfd3;--orange:#f2c14e;--on-accent:#1a1404;--btn:#1c2639;--field:#0d1320;--field-line:#3c4a66;--hover:#1b2436;--on-bg:#262b30;--on-line:#6a5a2c;--emblem-bg:#3d3216;--emblem-line:#80692c;--hero-1:#21365e;--hero-2:#152238;--hero-3:#0f1626;--hero-line:#34476d;--pitch:#9fb6e0;--status:#1f2d48;--dialog-line:#40517a;--pill:#d6deec}
html[data-theme=glace]{--bg:#101416;--surface:#181e22;--panel:#13181b;--line:#2f3a41;--text:#eef5f8;--muted:#a9b9c1;--orange:#6cc8f0;--on-accent:#061820;--btn:#1f272c;--field:#0f1315;--field-line:#3e4c54;--hover:#1e272c;--on-bg:#1d2d36;--on-line:#2f6680;--emblem-bg:#183442;--emblem-line:#2f6a85;--hero-1:#24414f;--hero-2:#18252c;--hero-3:#121719;--hero-line:#36505d;--pitch:#bfe6f5;--status:#1d3440;--dialog-line:#40535d;--pill:#d8e6ec}
html[data-theme=cuir]{--bg:#16110c;--surface:#211a13;--panel:#1b150f;--line:#43362a;--text:#f8efe2;--muted:#cdbda6;--orange:#e6c38a;--on-accent:#20170b;--btn:#2b2219;--field:#140f0a;--field-line:#574634;--hover:#2b2219;--on-bg:#352a1e;--on-line:#6b5538;--emblem-bg:#4a3420;--emblem-line:#86643c;--hero-1:#5a3b22;--hero-2:#2e2218;--hero-3:#1d1610;--hero-line:#5c4630;--pitch:#f3e3c8;--status:#3a2d20;--dialog-line:#5f4c37;--pill:#eadcc6}
html[data-theme=poison]{--bg:#0b0d0b;--surface:#141814;--panel:#0f120f;--line:#2b342a;--text:#eef4ea;--muted:#aebcab;--orange:#9be15d;--on-accent:#0d1806;--btn:#1a2019;--field:#0b0e0b;--field-line:#3a4638;--hover:#1a2219;--on-bg:#1c2a16;--on-line:#4c7a2e;--emblem-bg:#1f3414;--emblem-line:#4c7a2e;--hero-1:#24401a;--hero-2:#152015;--hero-3:#0f130f;--hero-line:#34502a;--pitch:#c4ee9c;--status:#1d2e17;--dialog-line:#3d5236;--pill:#d6e4d0}
html,body{background:var(--bg);color:var(--text)}
button,.button{background:var(--btn)}.primary{background:var(--orange);color:var(--on-accent)}.quiet{background:transparent}
.sidebar,.top{background:var(--panel)}
.emblem,.team-icon{background:var(--emblem-bg);border-color:var(--emblem-line)}
.sidebar nav a[aria-current]{background:var(--on-bg);border-color:var(--on-line)}.sidebar nav a:hover{background:var(--hover)}
input,select,textarea{background-color:var(--field);border-color:var(--field-line)}
select{background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%)}
.hero{border-color:var(--hero-line);background:radial-gradient(ellipse at 100% 5%,var(--hero-1),var(--hero-2) 65%,var(--hero-3))}
.pitch{border-color:var(--pitch);background:repeating-linear-gradient(0deg,transparent 0 9.5%,var(--pitch) 9.6% 9.95%,transparent 10% 20%)}
.pitch:before{border-color:var(--pitch)}.pitch:after{background:color-mix(in srgb,var(--orange) 40%,transparent)}
.pill{color:var(--pill)}dialog{border-color:var(--dialog-line)}#status{background:var(--status)}.empty{border-color:var(--field-line)}
@media(max-width:650px){.sidebar nav{background:var(--panel)}}
/* Formulaires : chaque case garde sa hauteur, rien ne s'étire. */
.fields{align-items:start}.field{align-content:start}.fields input:not([type=checkbox]),.fields select{height:41px}
.fields>.field:has(input[type=checkbox]){margin-top:calc(.85rem * 1.2 + .35rem);min-height:41px}
.field-note{margin:.3rem 0 0;font-size:.74rem;line-height:1.3}

.pill.dev-maison{border-color:var(--orange);color:var(--orange)}.pill.dev-modif{border-color:#7fa6d9;color:#a9c6ee}.dev-row{display:flex;justify-content:space-between;align-items:center;gap:.7rem;flex-wrap:wrap;padding:.75rem 1rem}.dev-table input{padding:.45rem}.dev-table .dev-stat{width:3.4rem}.dev-table .dev-cat{width:4rem}.dev-table input[type=number]{width:6.5rem}.dev-table td{padding:.3rem .25rem}.dev-table td:first-child input{min-width:9rem}.dev-table input[name$=skills]{min-width:14rem}.chips .pill input{width:auto;margin:0 .25rem 0 0;vertical-align:middle}.dev-tabs{display:flex;flex-wrap:wrap;gap:.4rem}

.live-board{position:sticky;top:0;z-index:2;background:var(--surface);border:2px solid var(--orange);border-radius:10px;padding:.7rem .8rem;margin:0 0 1rem;box-shadow:0 8px 20px #0009}
.lb-top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:.6rem}.lb-team{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.lb-team.right{text-align:right}.lb-on{color:var(--orange);text-decoration:underline 3px;text-underline-offset:5px}
.lb-score{font:700 2.5rem "Barlow Condensed",sans-serif;color:var(--orange);line-height:1}.lb-line{margin:.35rem 0;font-size:.86rem;color:var(--muted);text-align:center}.lb-line strong{color:var(--text);font-size:.98rem}
.lb-buttons{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.5rem}.lb-buttons button{flex:1 1 7rem;min-height:50px;font-size:.98rem}.lb-steps{display:grid;gap:.8rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}.lb-steps p{margin:.3rem 0 .5rem}
.lb-more{margin-top:.5rem;font-size:.88rem}.lb-more summary{cursor:pointer;color:var(--muted)}button.big{min-height:52px;font-size:1rem}
.pchips{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,135px),1fr));gap:.4rem;margin-top:.5rem}.chip{flex-direction:column;align-items:flex-start;justify-content:center;gap:.1rem;min-height:54px;text-align:left;padding:.4rem .55rem;font-size:.84rem;font-weight:600}.chip b{font-size:1.1rem;color:var(--orange)}.chip small{color:var(--muted);font-weight:500;font-size:.74rem}.chip em{font-style:normal;font-weight:700;padding:0 .3rem;border-radius:4px;background:#6b2c22;color:#fff}.chip i{font-style:normal;color:#b3d99d}.chip.st-ko{border-color:#d1a43c}.chip.st-ko em{background:#7a5a17}.chip.st-cas,.chip.st-dead,.chip.st-sent{opacity:.62}
[hidden]{display:none!important}
@media(max-width:650px){.live-board{padding:.55rem .6rem;border-radius:8px}.lb-score{font-size:2.1rem}.lb-buttons{gap:.35rem;margin-top:.35rem}.lb-buttons button{flex:1 1 30%;min-height:46px;font-size:.86rem;padding:.4rem .3rem}.lb-more{margin-top:.3rem}.lb-line{font-size:.8rem}}
@media print{.live-board{display:none}}
#view:has(.live-board) :is(button,a,input,select,summary){scroll-margin:240px 0 90px}

/* ===== Style « tableau de compétition » (v1.2) : titres en dégradé, bandeaux, cartes de joueurs ===== */
:root{--accent-2:#e0582b;--cat-sec:#4c5b6e}
html[data-theme=red]{--accent-2:#ff9a3c}html[data-theme=violet]{--accent-2:#ff6fc8}html[data-theme=nuit]{--accent-2:#f0792a}
html[data-theme=glace]{--accent-2:#7d7bff}html[data-theme=cuir]{--accent-2:#c96a32}html[data-theme=poison]{--accent-2:#e8ee4a}
.top{position:relative;box-shadow:0 3px 14px #0006}
.top:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:linear-gradient(90deg,var(--orange),var(--accent-2) 60%,transparent)}
.sidebar nav a{position:relative}
.sidebar nav a[aria-current]:before{content:"";position:absolute;left:-1px;top:20%;bottom:20%;width:3px;border-radius:3px;background:linear-gradient(var(--orange),var(--accent-2))}
.page-head h1,.section-head h2,.tp-title{background:linear-gradient(115deg,var(--orange) 10%,var(--accent-2) 95%);-webkit-background-clip:text;background-clip:text;color:transparent;text-transform:uppercase;font-weight:800;letter-spacing:.01em;width:fit-content}
.page-head h1{font-size:clamp(2.2rem,6vw,3.6rem)}
.section-head{position:relative}
.section-head h2{display:flex;align-items:center;gap:.6rem;flex:1 1 auto;width:auto;padding-left:.75rem;border-left:4px solid var(--orange)}
.section-head h2:after{content:"";flex:1;height:2px;min-width:2rem;background:linear-gradient(90deg,var(--line),transparent)}
.card{box-shadow:0 1px 0 #ffffff08 inset,0 6px 16px #0000002e;background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 92%,#fff) 0,var(--surface) 70px)}
.pill{background:color-mix(in srgb,var(--btn) 70%,transparent);border-color:color-mix(in srgb,var(--line) 70%,transparent)}
.primary{letter-spacing:.03em;text-transform:uppercase;font-size:.84rem;box-shadow:0 4px 14px color-mix(in srgb,var(--orange) 28%,transparent)}
.primary:hover:not(:disabled){filter:brightness(1.08)}
.hero{box-shadow:0 10px 30px #0006}
.hero:after{content:"";position:absolute;left:0;right:0;bottom:0;height:12px;z-index:-1;opacity:.18;background:repeating-conic-gradient(var(--text) 0 25%,transparent 0 50%) 0 0/12px 12px}
/* Catalogue des équipes : tuiles à bandeau */
#results .card{padding-top:0;overflow:hidden}
#results .card-head{margin:0 -1.05rem .7rem;padding:.8rem 1.05rem;background:linear-gradient(115deg,color-mix(in srgb,var(--btn) 85%,var(--orange)) 0,var(--btn) 55%);border-bottom:2px solid color-mix(in srgb,var(--orange) 55%,var(--line))}
#results .card-head h3{text-transform:uppercase;font-size:1.18rem;letter-spacing:.01em;overflow-wrap:anywhere;hyphens:auto}#results .card-head>.row{min-width:0;flex:1 1 auto}#results .card-head{gap:.5rem}
.team-icon{background:linear-gradient(135deg,var(--orange),var(--accent-2));color:var(--on-accent);border:0;font-family:"Barlow Condensed",sans-serif;font-weight:800;font-size:1.4rem}
/* Cartes de postes et de joueurs */
.pcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,236px),1fr));gap:.85rem}
.pcard{display:flex;flex-direction:column;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden;box-shadow:0 6px 16px #0000003a;transition:border-color .15s,transform .15s}
.pcard:hover{border-color:color-mix(in srgb,var(--orange) 60%,var(--line))}
.pc-head{display:grid;min-height:3.7rem;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.5rem;padding:.6rem .75rem .5rem;border-bottom:2px solid color-mix(in srgb,var(--orange) 35%,var(--line));background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 88%,#fff),var(--surface))}
.pc-head h3{font-size:1.12rem;text-transform:uppercase;letter-spacing:.02em;text-align:center;overflow-wrap:anywhere}
.pc-quota{font-weight:700;font-size:.82rem;color:var(--muted);white-space:nowrap}
.pc-cost{font:800 1.4rem/1 "Barlow Condensed",sans-serif;color:var(--orange);white-space:nowrap}
.pc-num{display:grid;place-items:center;min-width:34px;height:34px;padding:0 .3rem;border-radius:99px;background:linear-gradient(135deg,var(--orange),var(--accent-2));color:var(--on-accent);font:800 1.1rem/1 "Barlow Condensed",sans-serif}
.pc-title{min-width:0}.pc-title h3{text-align:left;font-size:1.15rem}.pc-title small{display:block;color:var(--muted);font-size:.72rem;margin-top:.15rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc-photo{position:relative;aspect-ratio:4/3;background:radial-gradient(ellipse at 50% 62%,color-mix(in srgb,var(--orange) 13%,var(--surface)),var(--field) 75%);border-bottom:1px solid var(--line)}
.pc-photo-pick{width:100%;height:100%;padding:0;margin:0;border:0;border-radius:0;background:transparent;display:grid;place-items:center;min-height:0;overflow:hidden}
.pc-photo-pick:hover:not(:disabled){border:0}
.pc-photo-pick img{width:100%;height:100%;object-fit:contain;display:block}
.pc-silhouette{width:40%;max-height:80%;color:color-mix(in srgb,var(--muted) 32%,transparent)}
.pc-photo-hint{position:absolute;right:.5rem;bottom:.45rem;font-size:.7rem;font-weight:600;color:var(--muted);background:color-mix(in srgb,var(--surface) 80%,transparent);border-radius:99px;padding:.1rem .45rem;opacity:.75}
.pc-photo-pick:hover .pc-photo-hint{opacity:1;color:var(--orange)}
.pc-photo-del{position:absolute;top:.4rem;right:.4rem;width:28px;min-height:28px;height:28px;padding:0;border-radius:50%;background:#000b;border-color:#fff3;color:#fff;font-size:1rem}
.pc-body{display:grid;gap:.6rem;align-content:start;flex:1;padding:.65rem .75rem .75rem}
.pc-stats{display:flex;justify-content:center;gap:.35rem}
.pc-stat{display:grid;place-content:center;justify-items:center;flex:1 1 0;max-width:48px;aspect-ratio:1;min-width:0;border-radius:50%;border:2px solid var(--field-line);background:var(--field);line-height:1}
.pc-stat small{font-size:.6rem;color:var(--muted);letter-spacing:.04em}.pc-stat b{font-size:1.02rem;margin-top:.12rem}
.pc-stat.mod{border-color:var(--orange)}.pc-stat.mod b{color:var(--orange)}
.pc-skills{display:flex;flex-wrap:wrap;justify-content:center;gap:.3rem}.pc-skills.none{opacity:.7;font-size:.8rem}.pc-body>*{min-width:0}
.pc-skills .skill-buttons{justify-content:center;gap:.3rem}
.pc-skill,.pc-skills .skill-buttons button,.pc-skills .pill{border-radius:99px;background:color-mix(in srgb,var(--btn) 80%,var(--muted));border:1px solid transparent;color:var(--text);padding:.2rem .6rem;min-height:26px;font-size:.78rem;font-weight:600}
.pc-skills .skill-buttons button:hover{border-color:var(--orange)}
.pc-access{display:flex;justify-content:space-between;gap:.5rem;border-top:1px solid var(--line);padding-top:.5rem}
.pc-access small{display:block;font-size:.64rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:.25rem}.pc-access .right{text-align:right}
.pc-access>div>span{display:flex;gap:.2rem}.pc-access .right>span{justify-content:flex-end}
.pc-cat{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;font-size:.7rem;font-weight:800}
.pc-cat.prim{background:linear-gradient(135deg,var(--orange),var(--accent-2));color:var(--on-accent)}.pc-cat.sec{background:var(--cat-sec);color:#eef2f6}
.pc-actions{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:auto;padding-top:.2rem}.pc-actions button{flex:1 1 auto;min-height:38px;font-size:.8rem;padding:.4rem .55rem}
.pc-tags{display:flex;justify-content:center;gap:.35rem;flex-wrap:wrap}
.pc-status,.pc-spp{border-radius:99px;padding:.15rem .55rem;font-size:.74rem;font-weight:700;border:1px solid var(--line);color:var(--muted)}
.pc-spp{color:var(--orange);border-color:color-mix(in srgb,var(--orange) 45%,var(--line))}
.pcard.st-ok .pc-status{color:#b3d99d;border-color:#5d7a4a}
.pcard.st-warn .pc-status{color:#f3c96b;border-color:#8a6a24;background:#8a6a2422}
.pcard.st-bad .pc-status{color:#fff;background:#9c3326;border-color:#9c3326}
.pcard.st-dead{filter:grayscale(.85);opacity:.7}.pcard.st-dead .pc-status{background:#000;color:#ddd}
.pcard.st-idle{border-style:dashed;opacity:.85}
.pc-injuries{margin:0;font-size:.78rem;color:#ffb5a0;text-align:center}
.pc-logo{flex:0 0 auto;width:48px;height:48px;aspect-ratio:1;border-radius:10px;overflow:hidden;border:1px solid var(--emblem-line);background:linear-gradient(135deg,var(--orange),var(--accent-2))}
.pc-logo .pc-photo-pick img{object-fit:cover}
.pc-logo-letter{font:800 1.6rem/1 "Barlow Condensed",sans-serif;color:var(--on-accent)}
.pc-logo .pc-photo-del{width:20px;height:20px;min-height:20px;top:2px;right:2px;font-size:.75rem}
.team-head{display:flex;align-items:center;gap:1rem}.team-head .pc-logo{width:76px;height:76px;border-radius:14px}.team-head .pc-logo-letter{font-size:2.6rem}
.team-card .row{min-width:0}
.pc-thumb{width:64px;aspect-ratio:4/3;border-radius:6px;overflow:hidden;border:1px solid var(--field-line)}.pc-thumb .pc-photo-hint{display:none}.pc-thumb .pc-silhouette{width:55%}
.pc-thumb .pc-photo-del{width:18px;height:18px;min-height:18px;top:1px;right:1px;font-size:.7rem}
dialog.wide .pcards{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr))}
.bb-sheet .crest img{max-width:100%;max-height:22mm;object-fit:contain}
@media(max-width:560px){
  .pcard{display:grid;grid-template-columns:100px minmax(0,1fr);grid-template-areas:"head head" "photo body"}
  .pc-head{grid-area:head}.pcard .pc-photo{grid-area:photo;aspect-ratio:auto;min-height:130px;border-bottom:0;border-right:1px solid var(--line)}.pc-body{grid-area:body;padding:.55rem .6rem .6rem;gap:.5rem}
  .pc-head h3{font-size:1.02rem}.pc-cost{font-size:1.25rem}
  .pc-stats{gap:.25rem}.pc-stat{max-width:42px}.pc-stat b{font-size:.92rem}.pc-stat small{font-size:.55rem}
  .pc-skills,.pc-skills .skill-buttons,.pc-tags{justify-content:flex-start}.pc-stats{justify-content:flex-start}
  .pc-photo-hint{font-size:.62rem;right:.3rem;bottom:.3rem}
  .team-head .pc-logo{width:58px;height:58px}.team-head .pc-logo-letter{font-size:2rem}
  .section-head h2:after{display:none}
}
@media print{.pc-photo-pick{border:0}}

.chip.has-av{position:relative;padding-right:54px}.chip-av{position:absolute;right:.35rem;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;object-fit:cover;border:2px solid var(--line);background:var(--field)}
.chip.st-ko .chip-av{border-color:#d1a43c}
#sheet-viewer{position:fixed;inset:0;z-index:1000;background:#2a2a2a;display:flex;flex-direction:column;color:#fff}
#sheet-viewer .sheet-tools{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;justify-content:space-between;padding:.6rem .8rem;background:#111}
#sheet-viewer .sheet-buttons{display:flex;flex-wrap:wrap;gap:.4rem}
#sheet-viewer .sheet-hint{margin:0;padding:.3rem .8rem;font-size:.8rem;color:#ccc;background:#111}
#sheet-viewer .sheet-scroll{flex:1;overflow:auto;padding:8px}
#sheet-viewer .sheet-page{width:1123px;box-sizing:border-box;padding:28px;background:#fff;margin:0 auto}
#sheet-viewer .sheet-image{display:block;width:100%;max-width:1123px;margin:0 auto;background:#fff}
@media print{body>#sheet-viewer{display:none!important}}

.match-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:.35rem;margin:0 0 1rem}.match-tabs button{min-height:44px;padding:.4rem .3rem;font-size:.86rem}
.field-wide{grid-column:1/-1}.tchips{display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.4rem;align-items:center}.tchips .meta{flex-basis:100%;margin-top:.2rem}
.tchip{min-height:38px;padding:.25rem .5rem;font-size:.8rem;font-weight:600}.tchip b{color:var(--orange)}.tchip.picked{background:var(--orange);color:#111;border-color:var(--orange)}.tchip.picked b{color:#111}
.ind-board{margin:0 0 1rem}.ind-board .actions button{min-height:40px}

.season-row{display:grid;grid-template-columns:1fr 7.5rem;gap:.5rem;align-items:center;padding:.25rem 0}
.season-row input[type=number]{width:100%}
.season-row label{display:flex;gap:.5rem;align-items:center}
.season-row input[type=checkbox]{width:auto;margin:0}
.fold>summary.section-summary{font-family:"Barlow Condensed","Arial Narrow",Impact,sans-serif;font-size:1.6rem;font-weight:700;padding:.4rem 0}
.more-actions>summary{color:var(--muted);font-size:.9rem}
.team-stats{grid-template-columns:repeat(auto-fit,minmax(min(30%,200px),1fr));gap:.5rem}.team-stats .card{padding:.7rem}.team-stats h2{font-size:clamp(1.2rem,4vw,2.15rem)}.team-stats .meta{font-size:.75rem}
.team-stats button{padding:.4rem .5rem;font-size:.75rem;min-height:34px;margin-top:.3rem;width:100%}

.account-chip{display:inline-flex;align-items:center;gap:.45rem;padding:.3rem .7rem .3rem .3rem;border:1px solid var(--line);border-radius:99px;color:var(--text);font-size:.85rem;font-weight:600;min-height:36px;white-space:nowrap}.account-chip:hover{border-color:var(--orange)}.account-chip .chip-name{max-width:11rem;overflow:hidden;text-overflow:ellipsis}
.avatar{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,var(--orange),#c9792f);color:#212016;font:800 1.1rem "Barlow Condensed",sans-serif;flex:none;text-transform:uppercase}.avatar.small{width:28px;height:28px;font-size:.85rem}.avatar.big{width:76px;height:76px;font-size:2rem;box-shadow:0 0 0 4px color-mix(in srgb,var(--orange) 25%,transparent)}
.account-hero{display:flex;align-items:center;gap:1.2rem;flex-wrap:wrap;padding:1.4rem;background:radial-gradient(ellipse at 100% 0,color-mix(in srgb,var(--orange) 16%,var(--surface)),var(--surface) 60%)}.account-hero h1{font-size:clamp(2rem,5vw,3rem)}.account-hero .grow{flex:1;min-width:12rem}
.grow{flex:1;min-width:0}
.account-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:1rem;align-items:start;margin-top:1rem}.account-layout>*{min-width:0}@media(max-width:860px){.account-layout{grid-template-columns:1fr}}
.account-login{max-width:460px;width:100%;padding:1.4rem}.account-why{max-width:460px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:.3rem;padding:.3rem;border:1px solid var(--line);border-radius:9px;margin-bottom:1rem}.auth-tabs button{border:0;background:transparent;min-height:38px}.auth-tabs button[aria-selected=true]{background:var(--orange);color:#212016}
.password-row{display:flex;gap:.4rem}.password-row input{flex:1}.password-row button{min-height:0;padding:.4rem .65rem}
.wide-button{width:100%}
.perks{list-style:none;padding:0;margin:.6rem 0 0;display:grid;gap:.55rem}.perks li{padding-left:1.6rem;position:relative;color:var(--muted);line-height:1.45}.perks li:before{content:"✓";position:absolute;left:0;color:var(--orange);font-weight:800}
.account-team{display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding:.65rem .8rem;border:1px solid var(--line);border-radius:8px;flex-wrap:wrap}.account-team:hover{border-color:var(--orange)}
.league-card{display:grid;gap:.5rem;align-content:start}.league-card.is-main{border-color:var(--orange);box-shadow:0 0 0 1px var(--orange) inset}
.account-mini{display:grid;gap:.5rem}.join-card{border-style:dashed}
.other-team{opacity:.92}.other-team h3{color:var(--muted)}#home-others summary{font-family:"Barlow Condensed",sans-serif;font-size:1.35rem}
.account-mini{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.account-mini .grow{min-width:12rem}.account-mini>.button{margin-left:auto}
.account-team .grow{flex:1 1 11rem}@media(max-width:650px){.account-team{gap:.5rem}.account-team>.pill{margin-left:2.4rem}}
.role-select{width:auto;min-height:36px;padding-block:.35rem}
