:root{font:15px/1.5 system-ui,-apple-system,Segoe UI,sans-serif;color:#19283a;background:#f3f6fa}*{box-sizing:border-box}body{margin:0}header{background:#153658;color:white;display:flex;justify-content:space-between;align-items:center;padding:15px max(18px,calc((100vw - 1120px)/2));gap:15px}.brand{display:flex;align-items:center;gap:10px}.brand strong{display:block;font-size:17px}.brand small{display:block;opacity:.78;font-size:11px}.logo{font-size:29px}#identity{font-size:12px;text-align:right}main{max-width:1120px;margin:22px auto;padding:0 16px}h1{font-size:25px;margin:0 0 3px}h2{font-size:19px;margin:0 0 10px}h3{margin:0 0 10px;font-size:16px}p{margin:6px 0 12px;color:#536476}.panel,.card{background:white;border:1px solid #e1e8ef;border-radius:15px;padding:19px;margin-bottom:14px;box-shadow:0 2px 12px #16345208}.hidden{display:none!important}.top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}nav{display:flex;overflow-x:auto;gap:8px;margin:0 0 16px;padding-bottom:5px}button{border:0;background:#1667b5;color:white;padding:10px 14px;border-radius:9px;cursor:pointer;font-weight:650;font:inherit;white-space:nowrap}button:hover{filter:brightness(.96)}button.secondary,nav button{background:#e7eef7;color:#214362}nav button.selected{background:#173d66;color:white}button.danger{background:#a63e43}button:disabled{opacity:.5;cursor:not-allowed}input,select,textarea{display:block;width:100%;border:1px solid #cbd7e3;border-radius:8px;padding:10px;font:inherit;background:white;color:#19283a}textarea{min-height:70px}label{display:block;font-weight:600;font-size:13px;margin-bottom:11px}label input,label select,label textarea{margin-top:5px;font-weight:400}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.metric{background:white;border-radius:13px;padding:15px;border:1px solid #e1e8ef}.metric b{font-size:27px;display:block}.metric small{color:#66758a}.chip{font-size:11px;background:#e7eef7;color:#275279;padding:4px 9px;border-radius:999px;display:inline-block;font-weight:650}.chip.orange{background:#fff0d9;color:#95601b}.chip.green{background:#e1f5e8;color:#237047}.chip.red{background:#ffe9e9;color:#a13d45}.row{display:flex;justify-content:space-between;gap:12px;align-items:center}.actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.actions button{font-size:13px;padding:8px 10px}.muted,.hint{font-size:12px;color:#66758a}.progress{height:7px;background:#e6edf5;border-radius:20px;overflow:hidden;margin-top:10px}.progress span{height:100%;background:#2475bc;display:block}.details{border-top:1px solid #e5eaf0;margin-top:12px;padding-top:12px}details summary{cursor:pointer;font-weight:650;margin:7px 0}form.inline{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;align-items:end}form.inline label{margin:0}form.inline button{margin-bottom:0}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#173658;color:white;border-radius:10px;padding:12px 18px;max-width:90vw;display:none;box-shadow:0 8px 22px #0003;z-index:3}.empty{padding:30px;text-align:center;color:#66758a;border:1px dashed #bdcddd;border-radius:12px;background:white}.notice{border-left:4px solid #d19a2e;background:#fff9ed;padding:10px 12px;margin:12px 0;border-radius:6px}.fieldpair{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}@media(max-width:600px){header{padding:12px 15px}main{margin:14px auto}h1{font-size:22px}.metrics{gap:6px}.metric{padding:10px}.metric b{font-size:22px}.card,.panel{padding:14px}.row{align-items:flex-start}nav button{font-size:13px;padding:9px 11px}}

/* V3 — identité visuelle FCLA 2026/27 : noir, blanc, jaune, repères événementiels rouges. */
:root{color:#181818;background:#f8f8f6;font-size:16px;--ink:#141414;--yellow:#f1d329;--red:#d52d2b;--paper:#fff;--soft:#f7f7f4}
body{background:linear-gradient(150deg,#f9f9f7,#f3f3f0 65%,#fff);min-height:100vh}
header{background:#fff;color:var(--ink);border-bottom:4px solid var(--yellow);padding:15px 20px;box-shadow:0 3px 14px #00000008}
.header-inner{width:min(1120px,100%);margin:auto;display:flex;align-items:center;justify-content:space-between;gap:14px}
.brand{gap:13px;min-width:0}.club-crest{width:60px;height:60px;object-fit:contain;flex:none}.brand-copy{min-width:0}.brand .eyebrow{display:block;font-size:10px;font-weight:800;letter-spacing:.085em;color:#383838;line-height:1.35}.brand strong{font-size:clamp(21px,4vw,30px);font-weight:900;letter-spacing:-.04em;line-height:1.2}.brand strong span{color:var(--red)}.brand small{font-size:12px;color:#606060;opacity:1}.season{color:#333}#identity{font-size:12px;color:#4b4b4b}
main{margin-top:12px}.section-stripe{display:flex;gap:5px;margin-bottom:19px}.section-stripe span{display:block;height:4px;border-radius:9px;background:var(--yellow);width:70px}.section-stripe span:nth-child(2){width:24px;background:var(--ink)}.section-stripe span:nth-child(3){width:13px;background:var(--red)}
h1,h2,h3{color:#171717;letter-spacing:-.025em}h1{font-weight:850}h2{font-size:23px;font-weight:850}h3{font-weight:780}p{color:#626262}
.panel,.card,.metric{border:1px solid #e4e4e0;box-shadow:0 3px 16px #16161608;background:#fff}.panel,.card{border-radius:15px}.card{border-top:3px solid #e4e4e0}.card:focus-within{border-top-color:var(--red)}
button{background:#161616;color:white;border-radius:10px;font-weight:700;min-height:43px}button.secondary{background:#f0eee4;color:#191919;border:1px solid #e0dfd5}button.danger{background:#b42b2b}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}
nav{overflow-x:auto;scrollbar-width:thin;gap:7px}nav button{background:#f0f0ed;color:#252525;border:1px solid #e3e3df;border-radius:10px;min-height:43px}nav button.selected{background:#151515;color:#fff;border-color:#151515;box-shadow:inset 0 -4px 0 var(--yellow)}
.metric{border-radius:12px;border-bottom:3px solid var(--yellow)}.metric b{color:#111}.metric small,.muted,.hint{color:#666}
.chip{background:#f5edbc;color:#3c3410}.chip.orange{background:#fff1df;color:#884e14}.chip.green{background:#e7f3e9;color:#246038}.chip.red{background:#fbe7e6;color:#a12827}
.progress{background:#eeeae1;height:9px}.progress span{background:linear-gradient(90deg,#e2bf18,#f0d53a)}.notice{border-left-color:var(--yellow);background:#fffbed}.empty{border-color:#dadad6;color:#666}.details{border-color:#e7e7e4}
input,select,textarea{border-color:#cfcfca;color:#191919}#toast{background:#181818;border-bottom:3px solid var(--yellow)}
@media(max-width:600px){header{padding:12px 14px}.header-inner{flex-wrap:wrap;gap:5px}.club-crest{width:52px;height:52px}.brand{gap:10px}.brand .eyebrow{font-size:8px}.brand strong{font-size:23px}.brand small{font-size:10px}#identity{width:100%;text-align:left;padding-left:62px;font-size:11px}main{margin-top:9px}.top{align-items:flex-start;flex-wrap:wrap}.top .actions{margin-top:3px}nav button{padding:9px 12px}.card,.panel{padding:16px}.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.metric{padding:10px}.metric b{font-size:21px}.metric small{font-size:10px}.row{flex-wrap:wrap}.season{display:none}}
@media(prefers-reduced-motion:no-preference){button,.card{transition:background .18s ease,box-shadow .18s ease}button:hover{filter:none;box-shadow:0 3px 12px #00000012}}

/* V3.1 : actions et navigation adaptées aux écrans tactiles */
#progressDialog{border:1px solid #deded9;border-radius:20px;box-shadow:0 22px 80px #0004;width:min(460px,calc(100vw - 28px));max-height:calc(100dvh - 36px);padding:24px;color:#171717}
#progressDialog::backdrop{background:#0009;backdrop-filter:blur(2px)}
#progressDialog h2{margin:0 0 8px}.dialog-task{font-weight:700;color:#333;margin-bottom:20px}
#progressDialog select{min-height:52px;font-size:17px;margin:8px 0 12px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}.dialog-actions button{min-height:48px;flex:1}.form-error{color:#aa2424;font-weight:650}
#tabs{scroll-snap-type:x proximity;overscroll-behavior-x:contain}#tabs button{scroll-snap-align:start;flex-shrink:0}
.actions button{min-height:46px}.card .actions{gap:10px}.card .actions button{white-space:normal;text-align:center}
@media(max-width:600px){#tabs{position:sticky;top:0;z-index:2;background:#f8f8f6;padding:9px 0 10px;margin-bottom:12px}#tabs button{min-height:48px;font-size:14px}.top .actions button{min-height:44px}.card .actions button{flex:1 1 145px;padding:11px 12px;font-size:14px}.metric small{line-height:1.2;display:block}.panel .row select{max-width:100%!important}.panel .row{align-items:stretch}#progressDialog{padding:20px}}

/* V3.2 : choix d'état direct, sans sélecteur natif superposé */
.status-fieldset{border:0;margin:0;padding:0;min-width:0}.status-fieldset legend{font-size:15px;font-weight:750;margin-bottom:12px}.status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.status-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:102px;margin:0;padding:14px 8px;border:2px solid #dfdfda;border-radius:14px;background:#fafaf8;text-align:center;font-size:15px;font-weight:750;cursor:pointer;position:relative}.status-option input{position:absolute;opacity:0;width:1px;height:1px;margin:0}.status-option:has(input:checked){border-color:#171717;background:#fff9d7;box-shadow:inset 0 -4px 0 var(--yellow)}.status-option:has(input:focus-visible){outline:3px solid #d5ad00;outline-offset:3px}.status-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#eeede8;font-size:21px;font-weight:800;line-height:1}.status-option:has(input:checked) .status-icon{background:#171717;color:white}.dialog-actions{position:sticky;bottom:0;background:white;padding-top:12px}#progressDialog{overflow-y:auto}#progressDialog .dialog-task{max-height:130px;overflow-y:auto;overflow-wrap:anywhere}@media(max-width:380px){.status-grid{gap:8px}.status-option{min-height:90px;font-size:14px}#progressDialog{padding:16px}}

/* V3.3 : fenêtres de gestion unifiées, utilisables sur smartphone */
.fcla-dialog{border:1px solid #deded9;border-radius:20px;box-shadow:0 22px 80px #0004;width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 28px);overflow-y:auto;padding:24px;color:#171717}
.fcla-dialog::backdrop{background:#0009;backdrop-filter:blur(2px)}.fcla-dialog h2{margin:0 0 8px}.fcla-dialog .dialog-task{overflow-wrap:anywhere;max-height:100px;overflow-y:auto}.fcla-dialog label{font-size:15px;margin-top:15px}.fcla-dialog select,.fcla-dialog textarea{min-height:50px;font-size:16px;margin-top:7px}.fcla-dialog .dialog-actions{position:sticky;bottom:-24px;background:white;padding:16px 0 4px;z-index:1}.dialog-subsection{border-top:1px solid #e4e4df;padding-top:16px;margin-top:18px}.proposal-mini{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid #eaeae7}.proposal-mini span{flex:1 1 160px;color:#666;font-size:13px}.proposal-message{background:#fffbed;border-left:3px solid var(--yellow);padding:10px;border-radius:6px;overflow-wrap:anywhere}#proposalsView .card{margin-bottom:12px}#tabs button{white-space:nowrap}@media(max-width:600px){.fcla-dialog{padding:19px}.fcla-dialog .dialog-actions{bottom:-19px}.fcla-dialog .dialog-actions button{white-space:normal;min-width:0;font-size:14px}}
