/* Charte FBBP 01 : bleu nuit, bleu club, orange et rouge — reprise des fiches PowerPoint. */
:root {
  --navy: #0B1A2B;
  --navy-2: #12304F;
  --navy-3: #0D3F6E;
  --blue: #0053A0;
  --orange: #FC6440;
  --red: #D63637;
  --pink: #ED486E;
  --cyan: #1EB6F2;
  --grey: #5B6B7E;
  --line: #C9D4E3;
  --line-2: #E0E2E5;
  --bg: #F2F4F7;
  --white: #FFFFFF;
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --display: "Titillium Web", "Arial Narrow", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--navy); font-family: var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* ---------- Verrou ---------- */
.lock { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px 16px;
  background: linear-gradient(135deg, #061220 0%, var(--navy-2) 55%, var(--navy-3) 100%); color: #fff; }
.lock::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--pink), var(--orange)); }
.lock-box { width: 100%; max-width: 340px; text-align: center; }
.lock-logo { width: 104px; height: auto; filter: drop-shadow(0 6px 20px rgba(0,83,160,.5)); }
.kicker { margin: 18px 0 4px; color: var(--orange); font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.lock h1 { margin: 0; font-size: 30px; letter-spacing: .01em; }
.lock-msg { min-height: 20px; margin: 8px 0 18px; color: #B8C6D8; font-size: 15px; }
.lock-msg.err { color: var(--orange); }
.dots { display: flex; justify-content: center; gap: 14px; height: 18px; margin-bottom: 26px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #8FA6C2; }
.dots i.on { background: var(--orange); border-color: var(--orange); }
.dots.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pad button { height: 62px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06);
  color: #fff; font-size: 24px; font-weight: 700; }
.pad button:active { background: rgba(252,100,64,.35); }
.pad button.ghost { background: none; border-color: transparent; font-size: 15px; font-weight: 400; color: #B8C6D8; }

/* ---------- Barre ---------- */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  padding-top: max(10px, env(safe-area-inset-top));
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%); color: #fff;
  border-bottom: 3px solid var(--orange); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 14px; letter-spacing: .04em; min-width: 0; }
.brand img { width: 30px; height: auto; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-nav { display: flex; align-items: center; gap: 4px; }
.bar-nav a, .lock-btn { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 700; color: #C9D6E6; background: none; border: 0; }
.bar-nav a.on { color: #fff; background: rgba(255,255,255,.1); }
.lock-btn { color: var(--orange); }
@media (max-width: 620px) {
  .brand span { display: none; }
  .bar-nav a, .lock-btn { padding: 8px 9px; font-size: 13px; }
}

main { padding: 20px 16px 60px; max-width: 1280px; margin: 0 auto; }

/* ---------- Accueil ---------- */
.home-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.home-head h1 { margin: 2px 0 0; font-size: 30px; }
.sec-title { margin: 0; color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.progress { min-width: 240px; flex: 0 1 320px; }
.progress-txt { display: flex; justify-content: space-between; font-size: 13px; color: var(--grey); margin-bottom: 6px; }
.progress-txt b { color: var(--navy); }
.progress-bar { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--orange)); border-radius: 4px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 14px; font-weight: 700; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.search { flex: 1 1 200px; min-width: 0; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 15px; color: var(--navy); }
.group { margin-bottom: 26px; }
.group-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.group-h h2 { margin: 0; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; padding-left: 10px; border-left: 4px solid var(--red); }
.group-h span { color: var(--grey); font-size: 13px; }
.group-h::after { content: ""; flex: 1; height: 1px; background: var(--red); opacity: .5; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.card { position: relative; display: block; text-decoration: none; border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 2px rgba(11,26,43,.08), 0 4px 14px rgba(11,26,43,.06); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11,26,43,.14); }
.card-ph { position: relative; aspect-ratio: 4 / 4.2; background: linear-gradient(160deg, var(--navy-2), var(--navy-3)); overflow: hidden; }
.card-ph img { position: absolute; left: 50%; bottom: 0; height: 100%; transform: translateX(-50%); object-fit: contain; }
.card-num { position: absolute; left: 8px; bottom: 8px; min-width: 28px; padding: 3px 6px; border-radius: 4px; background: var(--red); color: #fff; font-weight: 700; font-size: 14px; text-align: center; }
.card-st { position: absolute; right: 8px; top: 8px; }
.card-done { position: absolute; left: 8px; top: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #1FA463; color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 0 0 2px #fff; }
.card-b { padding: 9px 10px 11px; }
.card-b b { display: block; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-b small { display: block; margin-top: 2px; color: var(--grey); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-block; padding: 3px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; font-style: italic; letter-spacing: .04em; color: #fff; background: var(--blue); }
.pill.st-libre, .pill.st-reserve { background: var(--orange); }
.pill.st-pret { background: var(--pink); }
.pill.st-apprenti { background: #fff; color: var(--navy); }
.pill.st-ik { background: #F5C518; color: var(--navy); }
.pill.st-serv-civ { background: #22C3D6; color: var(--navy); }
.empty { padding: 30px; text-align: center; color: var(--grey); }

/* ---------- Fiche (réplique de la diapositive) ---------- */
.fiche-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.fiche-nav a, .btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 700; }
.fiche-nav .mid { color: var(--grey); font-size: 13px; text-align: center; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.danger { color: var(--red); }
.btn:disabled { opacity: .45; cursor: default; }
.fiche-nav .edit { margin-left: 12px; padding: 6px 12px; border: 0; background: var(--navy); color: #fff; font-size: 13px; vertical-align: middle; }
@media (max-width: 620px) { .fiche-nav .mid { display: flex; flex-direction: column; align-items: center; gap: 6px; } .fiche-nav .edit { margin-left: 0; } }

/* ---------- Formulaire joueur ---------- */
.form { max-width: 960px; margin: 0 auto; }
.form h1 { margin: 2px 0 18px; font-size: 26px; }
.f-top { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; margin-bottom: 22px; }
.f-photo { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.f-photo img { width: 170px; height: 210px; object-fit: contain; object-position: bottom; border-radius: 10px; background: linear-gradient(160deg, var(--navy-2), var(--navy-3)); }
.f-photo .btn { font-size: 13px; }
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.f-grid .wide { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--grey); }
.form input, .form select { width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: 15px var(--font); }
.form input:focus, .form select:focus { outline: 3px solid rgba(252,100,64,.3); border-color: var(--orange); }
.f-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.f-kpis div { display: grid; gap: 6px; padding: 10px; border-radius: 8px; background: var(--navy-2); border-top: 3px solid var(--orange); }
.f-kpis input:first-child { font-weight: 700; color: var(--orange); text-align: center; }
.f-kpis input:last-child { text-align: center; font-size: 13px; }
.f-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.f-actions .danger { margin-left: auto; }
.gone { list-style: none; margin: 0 0 14px; padding: 0; }
.gone li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
@media (max-width: 620px) {
  .f-top { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr; }
  .f-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-actions .danger { margin-left: 0; }
}

.slide { background: var(--bg); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 4px rgba(11,26,43,.06), 0 10px 30px rgba(11,26,43,.08); }
.s-head { position: relative; display: grid; grid-template-columns: 104px 140px minmax(0, 1fr) 100px minmax(0, 420px); align-items: center; gap: 0 14px;
  padding: 0 24px 0 18px; min-height: 230px; color: #fff;
  background: repeating-linear-gradient(120deg, rgba(255,255,255,0) 0 80px, rgba(255,255,255,.025) 80px 160px), linear-gradient(100deg, #071425 0%, var(--navy-2) 55%, #0B4277 100%); }
.s-badge { align-self: center; text-align: center; }
.badge { display: inline-block; padding: 6px 12px; font-size: 26px; font-weight: 700; font-style: italic; color: #fff; letter-spacing: .02em;
  background: linear-gradient(180deg, #2C73C4, var(--blue)); box-shadow: 0 3px 6px rgba(0,0,0,.35); text-shadow: 1px 2px 0 rgba(0,0,0,.25); }
.badge.st-libre, .badge.st-reserve { background: linear-gradient(180deg, #FF8A6B, var(--orange)); }
.badge.st-pret { background: linear-gradient(180deg, #F57D9A, var(--pink)); }
.badge.st-apprenti { background: linear-gradient(180deg, #fff, #DCE4EE); color: var(--navy); text-shadow: none; }
.badge.st-ik { background: linear-gradient(180deg, #FFD84A, #F5C518); color: var(--navy); text-shadow: none; }
.badge.st-serv-civ { font-size: 20px; background: linear-gradient(180deg, #5AD8E6, #22C3D6); color: var(--navy); text-shadow: none; }
.s-badge small { display: block; margin-top: 8px; font-weight: 700; font-style: italic; font-size: 13px; }
.s-photo { align-self: end; height: 220px; display: flex; justify-content: center; }
.s-photo img { height: 100%; width: auto; object-fit: contain; }
.s-id { padding: 18px 0; min-width: 0; }
.s-kicker { margin: 0 0 10px; color: var(--orange); font-weight: 700; font-size: 14px; letter-spacing: .12em; white-space: nowrap; }
.s-name { display: flex; align-items: center; gap: 14px; }
.s-num { color: var(--orange); font-size: 46px; font-weight: 700; line-height: 1; }
.s-name h1 { margin: 0; font-size: 34px; line-height: 1.02; letter-spacing: .01em; }
.s-poste { margin: 12px 0 8px; font-weight: 700; font-size: 18px; }
.s-infos { margin: 0; color: #D7E0EC; font-size: 15px; line-height: 1.5; }
.s-logo { width: 100%; max-width: 110px; height: auto; justify-self: center; filter: drop-shadow(0 4px 12px rgba(0,0,0,.35)); }
.s-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 22px 0; }
.kpi { padding: 12px 6px 10px; border-radius: 8px; background: rgba(18,48,79,.92); border-top: 3px solid var(--orange); text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.kpi b { display: block; color: var(--orange); font-size: 22px; }
.kpi span { display: block; margin-top: 4px; font-size: 14px; color: #fff; }

.s-body { padding: 16px 24px 26px 64px; }
.s-sec { margin: 0 0 10px; color: var(--red); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; }
.tech { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #fff; border-radius: 8px; border-bottom: 3px solid var(--orange);
  padding: 10px 0; box-shadow: 0 1px 3px rgba(11,26,43,.06); margin-bottom: 18px; }
.tech div { padding: 2px 6px; text-align: center; border-left: 1px solid var(--line-2); }
.tech div:first-child { border-left: 0; }
.tech b { display: block; color: var(--blue); font-size: 15px; margin-bottom: 4px; }
.tech span { display: block; color: var(--grey); font-size: 14px; line-height: 1.2; }
.msg { background: #fff; border-radius: 8px; padding: 14px 18px; color: var(--grey); font-size: 16px; box-shadow: 0 1px 3px rgba(11,26,43,.06); }
.tech-msg { border-bottom: 3px solid var(--orange); margin-bottom: 18px; }
.s-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.69fr); gap: 30px; align-items: start; }
.tbl-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
.t th, .t td { border: 1px solid var(--line); padding: 7px 8px; text-align: center; white-space: nowrap; }
.t th { background: var(--line-2); color: var(--grey); font-weight: 700; font-size: 15px; }
.t tbody tr:nth-child(even) td { background: #F7F8FA; }
.t td.lieu { color: var(--grey); }
.t td.V { color: var(--blue); } .t td.D { color: var(--red); } .t td.N { color: var(--grey); }
.t.parc td:nth-child(2) { text-align: left; white-space: normal; }
.t.parc td:nth-child(n+3) { text-align: right; }
.t.parc td.full { text-align: center; }
.hist { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.75; }
.hist .g { color: var(--grey); }
.hist li.note { color: var(--grey); margin-top: 6px; }
.s-right .s-sec + .tbl-wrap, .s-right .s-sec + .msg { margin-bottom: 20px; }
.s-right .s-sec.h2 { margin-top: 22px; }

@media (max-width: 1180px) {
  .s-head { grid-template-columns: 96px 130px minmax(0, 1fr) 96px; }
  .s-kpis { grid-column: 1 / -1; padding-top: 0; }
  .s-body { padding-left: 24px; }
}
@media (max-width: 820px) {
  .s-cols { grid-template-columns: minmax(0, 1fr); }
  .tech { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); row-gap: 10px; }
  .tech div:nth-child(3n+1) { border-left: 0; }
}
@media (max-width: 620px) {
  main { padding: 14px 12px 50px; }
  .s-head { grid-template-columns: 112px minmax(0, 1fr); gap: 0 12px; padding: 14px 14px 0; min-height: 0; }
  .s-badge { grid-column: 2; grid-row: 1; text-align: left; }
  .badge { font-size: 18px; padding: 4px 10px; }
  .s-badge small { display: inline; margin-left: 8px; }
  .s-photo { grid-column: 1; grid-row: 1 / span 2; height: 170px; }
  .s-id { grid-column: 2; grid-row: 2; padding: 8px 0 12px; }
  .s-kicker { display: none; }
  .s-num { font-size: 32px; }
  .s-name h1 { font-size: 22px; }
  .s-poste { font-size: 15px; margin-top: 8px; }
  .s-infos { font-size: 13px; }
  .s-logo { display: none; }
  .s-kpis { grid-column: 1 / -1; padding: 12px 0 14px; gap: 6px; }
  .kpi b { font-size: 18px; } .kpi span { font-size: 12px; }
  .s-body { padding: 14px 12px 20px; }
  .s-sec { font-size: 13px; }
  .tech { grid-template-columns: repeat(3, 1fr); }
  .tech b { font-size: 14px; } .tech span { font-size: 12px; }
  table.t { font-size: 13px; } .t th, .t td { padding: 6px 5px; } .t th { font-size: 13px; }
  .hist { font-size: 14px; line-height: 1.6; }
  .fiche-nav a { padding: 8px 10px; font-size: 13px; }
}

/* ---------- Entretien individuel ---------- */
.itw { position: relative; margin-top: 22px; border-radius: 12px; overflow: hidden; color: #fff; padding: 26px 30px 30px;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(30,140,240,.35), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(30,120,230,.28), transparent 50%),
    linear-gradient(160deg, #07152A 0%, #0A2142 55%, #061226 100%);
  box-shadow: 0 10px 30px rgba(11,26,43,.18); }
.itw::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .7; }
.itw-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-bottom: 20px; }
.itw-logo { width: 70px; height: auto; }
.itw-sep { width: 2px; align-self: stretch; background: rgba(255,255,255,.7); }
.itw-title { font-family: var(--display); font-style: italic; font-weight: 900; line-height: .9; text-transform: uppercase; }
.itw-title span { display: block; font-size: 38px; }
.itw-title strong { display: block; font-size: 46px; color: var(--cyan); text-shadow: 0 0 18px rgba(30,182,242,.45); }
.itw-title::after { content: ""; display: block; width: 100%; height: 5px; margin-top: 8px; background: linear-gradient(90deg, #E3262E, #E3262E 70%, transparent); transform: skewX(-25deg); }
.itw-time { margin-left: auto; text-align: right; }
.itw-time b { display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 54px; line-height: 1; }
.itw-time b.over { color: var(--orange); }
.itw-time button { margin-top: 6px; padding: 6px 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font-size: 13px; font-weight: 700; }
.itw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.itw-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.itw-tabs button { padding: 7px 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #CFE3F7; font-size: 13px; font-weight: 700; }
.itw-tabs button.on { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.itw-meta label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #CFE3F7; margin-left: auto; }
.itw-meta input[type=date] { padding: 6px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font: inherit; color-scheme: dark; }
.q { position: relative; margin-bottom: 14px; border: 2px solid rgba(60,170,255,.75); border-radius: 10px 18px 10px 18px; background: rgba(4,14,30,.72);
  box-shadow: 0 0 14px rgba(30,150,255,.35), inset 0 0 12px rgba(30,150,255,.12); transform: skewX(-6deg); }
.q > * { transform: skewX(6deg); }
.q-row { display: flex; align-items: center; gap: 16px; padding: 10px 18px 6px 0; }
.q-num { flex: 0 0 auto; width: 96px; padding: 8px 0; text-align: center; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 38px; line-height: 1;
  background: linear-gradient(90deg, rgba(25,110,210,.85), rgba(10,40,90,.6)); border-radius: 8px 0 0 8px; margin-left: -2px; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.q-slash { flex: 0 0 auto; width: 6px; height: 34px; background: #E3262E; transform: skewX(-16deg); }
.q-text { margin: 0; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 25px; text-transform: uppercase; letter-spacing: .01em; line-height: 1.1; }
.q-text em { font-style: inherit; color: var(--cyan); }
.q textarea { display: block; width: calc(100% - 32px); margin: 4px 16px 14px 16px; min-height: 74px; resize: vertical; padding: 10px 12px; border-radius: 8px;
  border: 1px solid rgba(120,190,255,.35); background: rgba(255,255,255,.95); color: var(--navy); font: 16px/1.45 var(--font); }
.q textarea:focus { outline: 3px solid rgba(30,182,242,.5); outline-offset: 0; }
.itw-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.saved { margin-left: auto; font-size: 13px; color: #9FC4E6; }
.itw-foot .btn { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; }
.itw-foot .btn.danger { color: #FF9C8A; }
@media (max-width: 620px) {
  .itw { padding: 18px 12px 20px; }
  .itw-logo, .itw-sep { display: none; }
  .itw-title span { font-size: 26px; } .itw-title strong { font-size: 32px; }
  .itw-time b { font-size: 38px; }
  .itw-meta label { margin-left: 0; }
  .q { transform: none; border-radius: 10px; } .q > * { transform: none; }
  .q-row { gap: 10px; padding-right: 10px; }
  .q-num { width: 54px; font-size: 24px; }
  .q-slash { height: 24px; width: 4px; }
  .q-text { font-size: 17px; }
  .q textarea { width: calc(100% - 20px); margin: 4px 10px 12px; }
}

/* ---------- Groupe / réglages ---------- */
.gal { display: grid; gap: 18px; }
.gal img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(11,26,43,.12); background: #fff; }
.panel { max-width: 720px; background: #fff; border-radius: 12px; padding: 22px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(11,26,43,.08); }
.panel h2 { margin: 0 0 6px; font-size: 18px; }
.panel p { margin: 0 0 14px; color: var(--grey); font-size: 15px; line-height: 1.5; }
.panel .row { display: flex; flex-wrap: wrap; gap: 10px; }

#toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 14px; transition: .2s; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Impression : fiche + entretien ---------- */
@media print {
  @page { size: A4 landscape; margin: 8mm; }
  .bar, .fiche-nav, .itw-time button, .itw-tabs, .itw-foot, #toast { display: none !important; }
  main { padding: 0; max-width: none; }
  body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .slide { box-shadow: none; break-after: page; }
  .itw { break-inside: avoid; }
  .q textarea { border: 0; min-height: 0; resize: none; field-sizing: content; }
}

/* ---------- Barre de navigation verticale à gauche (écrans larges) ---------- */
@media (min-width: 760px) {
  .bar { position: fixed; left: 0; top: 0; bottom: 0; width: 200px; z-index: 20;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 22px;
    padding: max(22px, env(safe-area-inset-top)) 14px 22px max(14px, env(safe-area-inset-left));
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
    border-bottom: 0; border-right: 3px solid var(--orange); }
  .brand { flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .brand img { width: 72px; }
  .brand span { white-space: normal; font-size: 13px; line-height: 1.3; }
  .bar-nav { flex: 1; flex-direction: column; align-items: stretch; gap: 4px; }
  .bar-nav a, .lock-btn { display: block; width: 100%; padding: 11px 14px; text-align: left; font-size: 15px; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; }
  .bar-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
  .bar-nav a.on { border-left-color: var(--orange); }
  .lock-btn { margin-top: auto; }
  #app > main { margin-left: 200px; }
}
@media print { #app > main { margin-left: 0 !important; } }
@media (max-width: 440px) {
  .bar .brand { display: none; }
  .bar { justify-content: center; }
  .bar-nav a, .lock-btn { padding: 8px 6px; font-size: 13px; }
}

/* ---------- Connexion en ligne (js/cloud.js) ---------- */
.ds-box h1 { margin-bottom: 14px; }
.ds-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.ds-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: #B8C6D8; }
.ds-form input { padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; font: 16px var(--font); }
.ds-form input:focus { outline: 2px solid var(--orange); border-color: transparent; }
.ds-form .lock-msg { margin: 0; min-height: 18px; font-size: 14px; }
.ds-form .btn.primary { justify-content: center; padding: 12px; font-size: 16px; }
.ds-link { align-self: center; border: 0; background: none; color: #B8C6D8; font-size: 14px; text-decoration: underline; }
.ds-user { display: flex; align-items: center; gap: 10px; margin-left: 6px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.15); }
.ds-who { color: #C9D6E6; font-size: 12.5px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.ds-sync { font-size: 12px; white-space: nowrap; color: #7BD88F; }
.ds-sync.busy { color: #FFD166; } .ds-sync.err, .ds-sync.conflict { color: var(--orange); } .ds-sync.ro { color: #9FB3CC; }
.ds-banner { position: fixed; left: 50%; bottom: 20px; z-index: 70; transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  max-width: min(680px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 12px; background: var(--navy); color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); border-left: 5px solid var(--orange); }
table.acc { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 10px; }
table.acc th { text-align: left; padding: 6px 8px; color: var(--grey); font-size: 12px; border-bottom: 1px solid var(--line); }
table.acc td { padding: 6px 8px; border-bottom: 1px solid var(--line-2); }
table.acc input, table.acc select { width: 100%; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line); font: inherit; background: #fff; color: var(--navy); }
.accounts { overflow-x: auto; }
@media (max-width: 900px) { .ds-who { display: none; } }

/* ---------- Statuts : ce que chaque compte voit ---------- */
/* Prépa athlétique : GPS seulement */
.role-prepa .bar-nav a[href^="index.html"], .role-prepa .bar-nav a[href^="scouting.html"] { display: none; }
/* Staff · consultant : lecture seule (le serveur refuse de toute façon les modifications) */
.readonly.page-gps [data-act="import"], .readonly.page-gps [data-act="newseance"], .readonly.page-gps .drop,
.readonly.page-gps [data-act="edit"], .readonly.page-gps .tabs a[href$="/donnees"], .readonly.page-gps .bar-nav a[href="#/reglages"],
.readonly.page-gps [data-act="demo"], .readonly.page-gps .g-empty .btn,
.readonly.page-scouting [data-act="add"], .readonly.page-scouting [data-act="del"] { display: none !important; }
.readonly.page-scouting #view [data-k],
.readonly.page-gps #view .panel input, .readonly.page-gps #view .panel select { pointer-events: none; background: var(--bg); }
