
/* ADN Hockey · styles partagés */
:root{
  --bg:#FFFFFF; --surface:#F1F4F9; --fg:#06172C; --muted:#4A5873; --line:#8795AE; --soft:#D3DAE5;
  --navy:#06172C; --btn:#60B6DD; --btn-fg:#06172C; --red-text:#17678F; --alert:#D80B15; --focus:#1D4ED8;
  --err-bg:#FDE8E9; --err-fg:#8F0009; --ok-bg:#E3F4EA; --ok-fg:#14532D;
  --display:'Barlow Condensed','Arial Narrow',sans-serif; --text:'Inter',system-ui,sans-serif;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#06172C; --surface:#12223F; --fg:#FFFFFF; --muted:#B9C4D6; --line:#6E80A0; --soft:#2B3A55;
    --navy:#040F20; --red-text:#60B6DD; --focus:#8FB0FF;
    --err-bg:#4A1620; --err-fg:#FFB4B8; --ok-bg:#123626; --ok-fg:#A7E8C3; color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#06172C; --surface:#12223F; --fg:#FFFFFF; --muted:#B9C4D6; --line:#6E80A0; --soft:#2B3A55;
  --navy:#040F20; --red-text:#60B6DD; --focus:#8FB0FF;
  --err-bg:#4A1620; --err-fg:#FFB4B8; --ok-bg:#123626; --ok-fg:#A7E8C3; color-scheme:dark;
}
*{box-sizing:border-box}
body{background:var(--bg);color:var(--fg);font-family:var(--text);font-size:16px;line-height:1.5;margin:0;
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-block:0}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.bleed{margin-left:calc(-1 * max(16px,env(safe-area-inset-left,0px)));margin-right:calc(-1 * max(16px,env(safe-area-inset-right,0px)));
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.top{background:var(--navy);color:#fff;border-bottom:6px solid var(--btn)}
.wrap{max-width:760px;margin:0 auto}
.top .wrap{padding-block:18px;display:flex;flex-wrap:wrap;gap:6px 20px;align-items:baseline;justify-content:space-between}
.brand{font-family:var(--display);font-weight:700;font-size:26px;letter-spacing:.06em;text-transform:uppercase}
.top small{color:#C3CCDA;font-size:14px}
.proto{background:var(--btn);color:var(--btn-fg);font-size:14px;font-weight:600;padding-block:8px;text-align:center}
main{padding-block:28px 72px;display:flex;flex-direction:column;gap:24px}
h1,h2,h3{font-family:var(--display);text-transform:uppercase;line-height:1.05;margin:0;text-wrap:balance}
h1{font-size:44px}h2{font-size:34px}h3{font-size:20px;letter-spacing:.02em}
p{margin:0}
.muted{color:var(--muted)}
.prog{display:flex;flex-direction:column;gap:8px}
.prog ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(8,1fr);gap:4px}
.prog li{height:8px;background:var(--soft)}
.prog li.done{background:var(--navy)}
:root[data-theme="dark"] .prog li.done{background:#fff}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .prog li.done{background:#fff}}
.prog li.cur{background:var(--btn)}
.prog p{font-size:14px;font-weight:600;color:var(--muted)}
.step{display:flex;flex-direction:column;gap:20px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.field{display:flex;flex-direction:column;gap:6px;min-width:0;border:0;padding:0;margin:0}
.field>label,.field>legend{font-weight:600;font-size:15px;padding:0}
.req::after{content:" *";color:var(--red-text)}
input[type=text],input[type=email],input[type=tel],input[type=date],select,textarea{
  width:100%;background:var(--bg);border:2px solid var(--line);padding:11px 12px;min-height:46px}
textarea{min-height:90px;resize:vertical}
input:invalid:not(:placeholder-shown),select:invalid{border-color:var(--line)}
.opts{display:flex;flex-wrap:wrap;gap:10px}
.opt{display:flex;align-items:center;gap:10px;border:2px solid var(--line);padding:10px 14px;min-height:46px;cursor:pointer;background:var(--bg)}
.opt input{width:20px;height:20px;margin:0;accent-color:#60B6DD;flex:none}
.opt.block{width:100%}
.hint{font-size:14px;color:var(--muted)}
.box{background:var(--surface);padding:20px;display:flex;flex-direction:column;gap:14px}
.legal{max-height:340px;overflow-y:auto;background:var(--surface);padding:18px;display:flex;flex-direction:column;gap:14px;font-size:15px;border:1px solid var(--soft)}
.legal h3{font-size:18px}
.consent{border:2px solid var(--soft);padding:18px;display:flex;flex-direction:column;gap:12px}
.consent.must{border-color:var(--btn)}
.tag{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:2px 8px;background:var(--btn);color:var(--btn-fg);align-self:flex-start}
.nav{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;border-top:1px solid var(--soft);padding-top:20px}
.btn{background:var(--btn);color:var(--btn-fg);border:0;font-weight:700;font-size:17px;padding:12px 28px;min-height:50px;cursor:pointer}
.btn.ghost{background:transparent;color:var(--fg);border:2px solid var(--line)}
.err{background:var(--err-bg);color:var(--err-fg);padding:12px 14px;font-weight:600}
.ok{background:var(--ok-bg);color:var(--ok-fg);padding:14px 16px;font-weight:600}
dl.sum{display:grid;grid-template-columns:minmax(120px,200px) 1fr;gap:8px 16px;margin:0;font-size:15px}
dl.sum dt{color:var(--muted);font-weight:600}
dl.sum dd{margin:0;overflow-wrap:anywhere}
.sig{font-family:'Barlow Condensed',cursive;font-size:30px;border-bottom:2px solid var(--fg);padding:6px 0;text-transform:none}
@media (max-width:520px){dl.sum{grid-template-columns:1fr}h1{font-size:36px}}

/* ===== Application (joueurs, parents, coachs) ===== */
.wrap.wide{max-width:1180px}
.tabs{display:flex;flex-wrap:wrap;gap:8px}
.tabs button{background:transparent;border:2px solid var(--line);color:var(--fg);padding:10px 16px;font-weight:700;cursor:pointer;min-height:44px}
.tabs button[aria-pressed="true"]{background:var(--navy);color:#fff;border-color:var(--navy)}
.card{background:var(--surface);padding:22px;display:flex;flex-direction:column;gap:14px;min-width:0}
.row{display:flex;flex-wrap:wrap;gap:16px}.row>.grow{flex:1 1 320px;min-width:0}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px}
.tile{background:var(--surface);padding:18px;display:flex;flex-direction:column;gap:4px;border-top:6px solid var(--navy)}
.tile.alert{border-top-color:var(--alert)}
.tile b{font-family:var(--display);font-size:52px;line-height:1;font-variant-numeric:tabular-nums}
.tile span{font-size:14px;color:var(--muted)}
.pill{display:inline-block;font-size:13px;font-weight:700;padding:3px 10px;background:var(--soft);margin:2px 4px 2px 0}
.pill.ok{background:var(--ok-bg);color:var(--ok-fg)}.pill.warn{background:var(--err-bg);color:var(--err-fg)}.pill.mid{background:#FFF1CC;color:#6B4A00}
.tbl{overflow-x:auto}
table{border-collapse:collapse;width:100%;font-size:15px}
th,td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--soft);vertical-align:top}
th{font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.big-num{font-family:var(--display);font-size:96px;line-height:.9;font-weight:700}
.seg{display:flex;flex-wrap:wrap;gap:6px}
.seg label{position:relative}
.seg input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.seg span{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 10px;border:2px solid var(--line);font-weight:700;background:var(--bg)}
.seg input:checked+span{background:var(--navy);color:#fff;border-color:var(--navy)}
.seg input:focus-visible+span{outline:3px solid var(--focus);outline-offset:2px}
.note{font-size:14px;color:var(--muted);font-weight:400}
.names{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.names button{min-height:72px;font-weight:700;background:var(--surface);border:2px solid var(--line);cursor:pointer;padding:12px}
.fiche{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.fiche .b{background:var(--bg);padding:14px;display:flex;flex-direction:column;gap:6px}
.bar{height:10px;background:var(--bg);min-width:80px}.bar i{display:block;height:10px;background:var(--navy)}
.loginbox{max-width:440px;margin:60px auto;display:flex;flex-direction:column;gap:16px}
.topbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:space-between}
.small{font-size:14px}

/* ===== Visuel de l'app (alignement sur le site) ===== */
.brand{display:flex;align-items:center;gap:12px}
.brand-logo{height:40px;width:auto;display:block}
.tile{border-top-width:8px}
.tile b{font-size:64px}
.tiles-st .tile.t-ok{border-top-color:#1E8A4C}
.tiles-st .tile.t-mid{border-top-color:#D9A400}
.tiles-st .tile.t-warn{border-top-color:var(--alert)}
.tiles-st .tile b{font-size:72px}
tr.st-pret>td:first-child{box-shadow:inset 6px 0 0 #1E8A4C}
tr.st-vig>td:first-child{box-shadow:inset 6px 0 0 #D9A400}
tr.st-allege>td:first-child{box-shadow:inset 6px 0 0 var(--alert)}
tr.st-none>td:first-child{box-shadow:inset 6px 0 0 var(--soft)}
td:first-child{padding-left:16px}
.rnum{font-family:var(--display);font-size:30px;line-height:1}
.card h2{border-left:8px solid var(--btn);padding-left:12px}
.big-num{font-size:120px}
form.stepping .field>legend{font-family:var(--display);font-size:26px;text-transform:uppercase;line-height:1.1}
form.stepping .seg span{min-width:48px;min-height:52px;font-size:18px}
.stepbar{display:flex;flex-direction:column;gap:12px}
.stepnav{display:flex;gap:12px}.stepnav .btn{flex:1}
.stepnav [hidden]{display:none}
@media (max-width:600px){.tile b,.tiles-st .tile b{font-size:52px}.big-num{font-size:96px}}
[hidden]{display:none!important}
