/* Espace Servette FC : feuille de style unique (noir et or, identité du logo) */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(fonts/jbmono-latin.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #12070b;
  --bg-raise: #180a10;
  --card: #1e0d14;
  --card-2: #26121a;
  --card-3: #301822;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --line-3: rgba(255, 255, 255, .18);
  --text: #edebe6;
  --text-2: #b5a7aa;
  --text-3: #806e72;
  --gold: #bf9f6f;
  --gold-hi: #e3cba3;
  --gold-lo: #ac8f64;
  --gold-soft: rgba(191,159,111, .10);
  --gold-line: rgba(191,159,111, .32);
  --gold-grad: linear-gradient(135deg, #a3855a 0%, #cdb083 42%, #ead6b2 52%, #bf9f6f 70%, #a3855a 100%);
  --ok: #5cc495; --ok-soft: rgba(92, 196, 149, .12);
  --warn: #e8b04b; --warn-soft: rgba(232, 176, 75, .12);
  --danger: #ef6a5e; --danger-soft: rgba(239, 106, 94, .12);
  --info: #8fb3ff; --info-soft: rgba(143, 179, 255, .10);
  --r-sm: 9px; --r: 14px; --r-lg: 20px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -24px rgba(0,0,0,.8);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --side-w: 264px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--font); font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body::before { /* filet d'or en haut de l'écran : signature */
  content: ""; position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: var(--gold-grad); opacity: .9;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .92em; }
button { font: inherit; color: inherit; }
::selection { background: rgba(191,159,111, .35); color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
[hidden] { display: none !important; }

.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 42px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; letter-spacing: .005em; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .field input:focus-visible { outline: none; }
.btn--gold {
  background: var(--gold-grad); background-size: 160% 100%; background-position: 0 0; color: #1d0a10;
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 10px 30px -12px rgba(191,159,111,.55);
}
.btn--gold:hover { background-position: 100% 0; box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 14px 34px -12px rgba(191,159,111,.7); }
.btn--gold .ico { stroke-width: 2; }
.btn--ghost { background: rgba(255,255,255,.03); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold-line); background: var(--gold-soft); color: var(--gold-hi); }
.btn--quiet { background: transparent; color: var(--text-2); padding: 0 10px; }
.btn--quiet:hover { color: var(--text); background: rgba(255,255,255,.04); }
.btn--danger { background: transparent; border-color: rgba(239,106,94,.35); color: var(--danger); }
.btn--danger:hover { background: var(--danger-soft); }
.btn--block { width: 100%; }
.btn--lg { height: 50px; font-size: 15px; border-radius: 13px; }
.btn--sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(191,159,111,.35); }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }

/* ------------------------------------------------------------ champs */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field__label { font-size: 12px; font-weight: 600; color: var(--text-2); letter-spacing: .02em; }
.field__label em { font-style: normal; color: var(--gold); margin-left: 2px; }
.field__hint { font-size: 12px; color: var(--text-3); }
.field__error { font-size: 12px; color: var(--danger); }
.field__control { position: relative; display: flex; align-items: center; }
.field__control > .ico { position: absolute; left: 14px; color: var(--text-3); pointer-events: none; transition: color .2s; }
.field__control:focus-within > .ico { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 11px;
  background: var(--bg-raise); border: 1px solid var(--line-2); color: var(--text);
  font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field__control > .ico ~ input { padding-left: 42px; }
.field textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-line); background: #1a0b11; box-shadow: 0 0 0 4px rgba(191,159,111,.10);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: rgba(239,106,94,.55); }
.field select {
  appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8a6a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.field input[type="date"] { color-scheme: dark; }
.field__reveal { position: absolute; right: 6px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--text-3); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.field__reveal:hover { color: var(--text); background: rgba(255,255,255,.05); }
.field__control input[data-pw] { padding-right: 46px; }
.field__static { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 11px; border: 1px dashed var(--line-2); color: var(--text-2); font-size: 14px; }
.field__static .ico { color: var(--gold); }
.otp {
  height: 64px !important; text-align: center; font: 600 30px/1 var(--mono) !important; letter-spacing: .5em; padding-left: .5em !important;
  font-variant-numeric: tabular-nums;
}
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-raise); cursor: pointer; transition: border-color .2s, background .2s; }
.check:hover { border-color: var(--line-2); }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--line-3); background: transparent; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--gold-grad); border-color: transparent; }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #1d0a10; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check:has(input:checked) { border-color: var(--gold-line); background: var(--gold-soft); }
.check strong { display: block; font-size: 14px; font-weight: 600; }
.check span { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 2px; }

.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.strength i { height: 3px; border-radius: 3px; background: var(--line-2); transition: background .25s; }
.strength[data-level="1"] i:nth-child(-n+1) { background: var(--danger); }
.strength[data-level="2"] i:nth-child(-n+2) { background: var(--warn); }
.strength[data-level="3"] i:nth-child(-n+3) { background: var(--gold); }
.strength[data-level="4"] i { background: var(--ok); }

/* ------------------------------------------------------------ pastilles, alertes, étapes */
.pill { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.pill--ok { color: var(--ok); background: var(--ok-soft); }
.pill--warn { color: var(--warn); background: var(--warn-soft); }
.pill--danger { color: var(--danger); background: var(--danger-soft); }
.pill--muted { color: var(--text-2); background: rgba(255,255,255,.05); }
.pill--gold { color: var(--gold-hi); background: var(--gold-soft); border-color: rgba(191,159,111,.2); }
.pill--info { color: var(--info); background: var(--info-soft); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 500; color: var(--text-2); background: rgba(255,255,255,.04); border: 1px solid var(--line); white-space: nowrap; }
.tag .ico { width: 14px; height: 14px; }
.tag--gold { color: var(--gold-hi); border-color: rgba(191,159,111,.25); background: var(--gold-soft); }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; border: 1px solid; }
.alert .ico { margin-top: 1px; }
.alert--danger { color: #ffb4ac; background: var(--danger-soft); border-color: rgba(239,106,94,.25); }
.alert--info { color: #c9d8ff; background: var(--info-soft); border-color: rgba(143,179,255,.2); }
.alert--ok { color: #b5ebd1; background: var(--ok-soft); border-color: rgba(92,196,149,.25); }
.alert--warn { color: #f6d79e; background: var(--warn-soft); border-color: rgba(232,176,75,.25); }

.steps { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.steps li { flex: 1; display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 500; color: var(--text-3); padding-top: 12px; border-top: 2px solid var(--line-2); }
.steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 1px solid var(--line-2); }
.steps li span .ico { width: 13px; height: 13px; stroke-width: 2.5; }
.steps li.is-current { color: var(--text); border-top-color: var(--gold); }
.steps li.is-current span { background: var(--gold-grad); color: #1d0a10; border-color: transparent; }
.steps li.is-done { color: var(--text-2); border-top-color: rgba(191,159,111,.45); }
.steps li.is-done span { color: var(--gold); border-color: var(--gold-line); }

/* ------------------------------------------------------------ écrans d'accès */
.bare-main { min-height: 100vh; }
.auth { display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(420px, 1fr); min-height: 100vh; }
.auth__brand {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 56px clamp(40px, 6vw, 88px); border-right: 1px solid var(--line);
  background: radial-gradient(1200px 600px at 0% 0%, rgba(191,159,111,.07), transparent 60%), #07080a;
}
.hexfield {
  position: absolute; inset: -2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34.64 60'%3E%3Cpath d='M17.32 0 34.64 10v20L17.32 40 0 30V10ZM17.32 40v20' fill='none' stroke='%23d8b65e' stroke-opacity='.16' stroke-width='.6'/%3E%3C/svg%3E");
  background-size: 58px 100.46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 25% 35%, #000 0%, rgba(0,0,0,.4) 45%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 25% 35%, #000 0%, rgba(0,0,0,.4) 45%, transparent 75%);
}
.auth__glow {
  position: absolute; width: 620px; height: 620px; left: -160px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(191,159,111,.16), transparent 62%); filter: blur(10px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(140px, 180px) scale(1.15); } }
.auth__logo { position: relative; width: 300px; height: auto; }
.auth__pitch { position: relative; max-width: 470px; }
.auth__pitch h1 { margin: 14px 0 34px; font-size: clamp(34px, 3.6vw, 48px); font-weight: 680; letter-spacing: -.035em; line-height: 1.04; }
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.trust li { display: flex; gap: 16px; align-items: flex-start; }
.trust .ico { width: 40px; height: 40px; padding: 10px; border-radius: 12px; color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(191,159,111,.2); }
.trust strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.trust span { color: var(--text-2); font-size: 14px; }
.auth__legal { position: relative; color: var(--text-3); font-size: 12.5px; }

.auth__panel { display: grid; place-items: center; padding: 48px 28px; background: radial-gradient(800px 500px at 100% 100%, rgba(191,159,111,.04), transparent 60%), var(--bg); }
.auth__card { width: 100%; max-width: 420px; display: grid; gap: 24px; animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.auth__mobilelogo { display: none; }
.auth__head h2 { font-size: 30px; font-weight: 680; letter-spacing: -.03em; }
.auth__head p { margin-top: 8px; color: var(--text-2); }
.auth__help { color: var(--text-3); font-size: 13px; text-align: center; }
.auth__help--row { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; }
.auth__help--row span { display: inline-flex; align-items: center; gap: 7px; }
.auth__help--row b { font-family: var(--mono); color: var(--text-2); font-weight: 500; }
.auth__head p b.mono { font-family: var(--mono); font-weight: 500; color: var(--text); }
.auth__resend { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; color: var(--text-3); font-size: 13px; }
.auth__help a { color: var(--gold); }
.auth__help a:hover { color: var(--gold-hi); }
.auth__trace { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12px; }
.auth__trace .ico { width: 15px; height: 15px; }
.auth__trace code { color: var(--text-2); }

.enroll { display: grid; grid-template-columns: 172px 1fr; gap: 20px; align-items: center; padding: 18px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--card); }
.enroll__qr { width: 172px; height: 172px; padding: 12px; border-radius: 12px; background: #fff; }
.enroll__qr svg { width: 100%; height: 100%; }
.enroll__manual { display: grid; gap: 10px; justify-items: start; }
.enroll__key { font-size: 14px; line-height: 1.6; letter-spacing: .06em; color: var(--gold-hi); word-break: break-word; }

/* ------------------------------------------------------------ application : barre latérale (SaaS) */
body.app { padding-left: var(--side-w); }
.side { position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--side-w); display: flex; flex-direction: column; padding: 22px 14px 14px;
  background: linear-gradient(180deg, rgba(191,159,111,.035), transparent 30%), #0a0b0e; border-right: 1px solid var(--line); }
.side__top { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 26px; }
.side__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.side__brand img { width: 34px; height: 34px; flex: none; }
.side__brand span { display: grid; line-height: 1.2; }
.side__brand b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.side__brand small { font-size: 10.5px; color: var(--gold); letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-top: 2px; }
.side__close { display: none; }
.side__nav { flex: 1; min-height: 0; display: grid; align-content: start; gap: 2px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; --haut: 0px; --bas: 0px; }
.side__nav::-webkit-scrollbar { display: none; }
.side__nav.is-haut { --haut: 28px; }
.side__nav.is-bas { --bas: 36px; }
.side__nav.is-haut, .side__nav.is-bas { -webkit-mask-image: linear-gradient(#0000, #000 var(--haut), #000 calc(100% - var(--bas)), #0000); mask-image: linear-gradient(#0000, #000 var(--haut), #000 calc(100% - var(--bas)), #0000); }
.side__label { padding: 22px 12px 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.side__link { position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 11px; color: var(--text-2); font-size: 14px; font-weight: 500; transition: color .2s, background .2s; }
.side__link .ico { width: 18px; height: 18px; flex: none; }
.side__link:hover { color: var(--text); background: rgba(255,255,255,.035); }
.side__link.is-active { color: var(--text); background: linear-gradient(90deg, var(--gold-soft), rgba(191,159,111,.02)); }
.side__link.is-active .ico { color: var(--gold); }
.side__dot { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.side__link.is-active::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--gold-grad); }
.side__link.is-soon { color: var(--text-3); cursor: default; }
.side__link.is-soon:hover { background: transparent; }
.side__link em { margin-left: auto; font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; }
.session-pill { display: grid; gap: 6px; margin: 0 2px 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--gold-line); background: linear-gradient(135deg, var(--gold-soft), rgba(191,159,111,.02)); transition: border-color .3s; }
.session-pill__row { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--text); }
.session-pill__row .ico { width: 15px; height: 15px; color: var(--gold); flex: none; }
.session-pill__row b { margin-left: auto; font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.session-pill__ip { padding-left: 24px; font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-pill__ip code { color: var(--text-2); font-size: 11.5px; }
.session-pill.is-low { border-color: rgba(232,176,75,.45); background: var(--warn-soft); }
.session-pill.is-low .session-pill__row b { color: var(--warn); }
.mbar__session { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--gold-line); background: var(--gold-soft); }
.mbar__session .ico { width: 13px; height: 13px; color: var(--gold); }
.mbar__session b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.mbar__session.is-low { border-color: rgba(232,176,75,.45); background: var(--warn-soft); }
.mbar__session.is-low b { color: var(--warn); }
.side__foot { position: relative; padding-top: 12px; border-top: 1px solid var(--line); }
.usermenu__btn { display: flex; width: 100%; align-items: center; gap: 11px; padding: 8px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; text-align: left; transition: background .2s; }
.usermenu__btn:hover, .usermenu__btn.is-active, .usermenu__btn[aria-expanded="true"] { background: rgba(255,255,255,.04); }
.usermenu__btn > .ico { width: 15px; height: 15px; color: var(--text-3); flex: none; margin-left: auto; }
.usermenu__who { display: grid; min-width: 0; line-height: 1.3; }
.usermenu__who b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu__who small { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #1d0a10; background: var(--gold-grad); letter-spacing: .02em; }
.avatar--sm { width: 32px; height: 32px; }
.usermenu__panel { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); padding: 6px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); animation: rise .18s var(--ease) both; }
.usermenu__panel a, .usermenu__panel button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; border: 0; background: transparent; font-size: 14px; color: var(--text-2); cursor: pointer; text-align: left; }
.usermenu__panel a:hover, .usermenu__panel button:hover { background: rgba(255,255,255,.05); color: var(--text); }
.usermenu__panel form { margin: 0; }
.mbar, .side-scrim { display: none; }

/* ------------------------------------------------------------ application : page */
.page { max-width: 1240px; margin: 0 auto; padding: 48px 56px 72px; animation: rise .4s var(--ease) both; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.pagehead h1 { font-size: 30px; font-weight: 680; letter-spacing: -.03em; }
.pagehead p { color: var(--text-2); margin-top: 6px; }
.pagehead__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.backlink { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13.5px; margin-bottom: 18px; }
.backlink:hover { color: var(--gold-hi); }
.backlink .ico { width: 16px; height: 16px; }

.card { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008)), var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card--pad { padding: 24px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card__title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.card__title .ico { color: var(--gold); }
.card__body { padding: 20px 22px; }
.card__foot { padding: 14px 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.card__foot .ico { width: 15px; height: 15px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; align-content: start; }

.toast { position: fixed; top: 24px; left: calc(50% + var(--side-w) / 2); transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--card-3); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -15px rgba(0,0,0,.8); font-size: 14px; animation: toast-in .35s var(--ease) both; max-width: calc(100vw - 32px); }
.toast--ok .ico { color: var(--ok); }
.toast--danger .ico, .toast--error .ico { color: var(--danger); }
.toast.is-out { opacity: 0; transform: translate(-50%, -8px); transition: .3s; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -10px); } }

.empty-state { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 56px 24px; color: var(--text-2); }
.empty-state h1, .empty-state h3 { color: var(--text); font-size: 20px; }
.empty-state--page { min-height: 60vh; align-content: center; }
.empty-state .btn { margin-top: 12px; }
.empty-state__icon { width: 52px; height: 52px; padding: 13px; border-radius: 16px; color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(191,159,111,.2); margin-bottom: 6px; }


.expire-warn { position: fixed; inset: auto 0 24px 0; z-index: 80; display: flex; justify-content: center; padding: 0 16px; }
.expire-warn__box { display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 18px; border-radius: 16px; background: var(--card-3); border: 1px solid rgba(232,176,75,.35); box-shadow: 0 30px 70px -20px rgba(0,0,0,.9); animation: rise .3s var(--ease) both; }
.expire-warn__box > .ico { width: 22px; height: 22px; color: var(--warn); }
.expire-warn__box strong { display: block; font-size: 14px; }
.expire-warn__box span { font-size: 13px; color: var(--text-2); }
.expire-warn__box b { font-family: var(--mono); color: var(--warn); font-weight: 600; }

/* ------------------------------------------------------------ monogramme hexagonal (pas de photos) */
.hexmono { --s: 44px; position: relative; flex: none; width: var(--s); height: calc(var(--s) * 1.1); display: grid; place-items: center; }
.hexmono::before, .hexmono::after { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.hexmono::before { background: linear-gradient(160deg, rgba(227,203,163,.75), rgba(163,133,90,.35) 60%, rgba(191,159,111,.6)); }
.hexmono::after { inset: 1.5px; background: linear-gradient(160deg, #1d1a12, #111215 70%); }
.hexmono span { position: relative; z-index: 1; font-weight: 700; font-size: calc(var(--s) * .32); letter-spacing: .02em; color: var(--gold-hi); }
.hexmono--lg { --s: 92px; }
.hexmono--lg::after { inset: 2px; }
.hexmono--muted::before { background: rgba(255,255,255,.14); }
.hexmono--muted span { color: var(--text-3); }

/* ------------------------------------------------------------ accueil : les modules */
.home__head { padding: 8px 0 40px; }
.home__head h1 { font-size: clamp(32px, 3.4vw, 46px); font-weight: 680; letter-spacing: -.04em; margin-top: 10px; }
.home__head p:last-child { color: var(--text-2); margin-top: 10px; font-size: 16px; }
.home__bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.home__bar h2 { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.home__bar span { font-size: 13px; color: var(--text-3); }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.mod { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 300px; padding: 26px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008)), var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.mod::before { content: ""; position: absolute; right: -70px; top: -70px; width: 280px; height: 280px; pointer-events: none; opacity: .5; transition: opacity .3s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34.64 60'%3E%3Cpath d='M17.32 0 34.64 10v20L17.32 40 0 30V10ZM17.32 40v20' fill='none' stroke='%23d8b65e' stroke-opacity='.22' stroke-width='.6'/%3E%3C/svg%3E");
  background-size: 40px 69.3px; -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 65%); mask-image: radial-gradient(circle at 70% 30%, #000, transparent 65%); }
a.mod:hover { transform: translateY(-3px); border-color: var(--gold-line); box-shadow: var(--shadow), 0 30px 60px -30px rgba(191,159,111,.25); }
a.mod:hover::before { opacity: 1; }
.mod__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: auto; }
.mod__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; color: #1d0a10; background: var(--gold-grad); box-shadow: 0 14px 30px -12px rgba(191,159,111,.55); }
.mod__icon .ico { width: 26px; height: 26px; }
.mod__state { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.mod__state i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.mod__name { display: block; margin-top: 40px; font-size: 26px; font-weight: 680; letter-spacing: -.035em; }
.mod__desc { display: block; margin-top: 8px; color: var(--text-2); font-size: 14.5px; max-width: 360px; }
.mod__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.mod__foot em { font-style: normal; color: var(--warn); margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line-2); }
.mod__go { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 600; transition: gap .25s var(--ease); }
.mod__go .ico { width: 16px; height: 16px; }
a.mod:hover .mod__go { gap: 8px; color: var(--gold-hi); }
.mod.is-soon { background: transparent; border-style: dashed; border-color: var(--line-2); box-shadow: none; }
.mod.is-soon::before { opacity: .15; }
.mod.is-soon .mod__icon { background: rgba(255,255,255,.04); color: var(--text-3); box-shadow: none; border: 1px solid var(--line-2); }
.mod.is-soon .mod__name { color: var(--text-2); }
.mod.is-soon .mod__foot { color: var(--text-3); }

.list { display: grid; }
.list__row { display: flex; align-items: center; gap: 14px; padding: 13px 22px; border-top: 1px solid var(--line); transition: background .15s; min-width: 0; }
.list__row:first-child { border-top: 0; }
a.list__row:hover { background: rgba(255,255,255,.025); }
.list__main { flex: 1; min-width: 0; }
.list__main strong { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list__main span { display: block; font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list__side { flex: none; text-align: right; font-size: 12.5px; color: var(--text-3); }
.list__row > .ico { color: var(--text-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--text-3); }
.dot--acces { background: var(--gold); }
.dot--alerte { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.dot--combattants { background: var(--info); }
.dot--medical { background: var(--ok); }
.dot--equipe { background: #c8a2ff; }
.dot--matchmaking { background: #f0a35e; }
.dot--meta { background: #7fd4e8; }
.dot--invites { background: var(--gold-hi); }
.dot--partenaires { background: var(--info); }
.dot--compta { background: var(--ok); }
.dot--joueurs, .dot--intervenants, .dot--evenements, .dot--documents { background: var(--text-2); }

/* ------------------------------------------------------------ combattants : liste */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); text-align: left; cursor: pointer; transition: border-color .2s, background .2s; color: inherit; font: inherit; }
.kpi:hover { border-color: var(--line-2); }
.kpi.is-active { border-color: var(--gold-line); background: var(--gold-soft); }
.kpi small { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); font-weight: 500; }
.kpi b { display: block; margin-top: 6px; font-size: 28px; font-weight: 680; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi--ok small i { background: var(--ok); } .kpi--warn small i { background: var(--warn); } .kpi--danger small i { background: var(--danger); } .kpi--all small i { background: var(--gold); }
.kpi small i { width: 7px; height: 7px; border-radius: 50%; }

.toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.toolbar .field { flex: 0 1 190px; }
.toolbar .field--search { flex: 1 1 280px; }
.toolbar .field select, .toolbar .field input { height: 42px; font-size: 14px; }
.toolbar__count { margin-left: auto; font-size: 13px; color: var(--text-3); white-space: nowrap; }

.flist { overflow: hidden; }
.frow { display: grid; grid-template-columns: minmax(230px, 2.1fr) minmax(130px, 1.4fr) 84px minmax(120px, 1.4fr) 56px minmax(130px, 1.1fr) 20px; align-items: center; gap: 16px; padding: 12px 22px; border-top: 1px solid var(--line); transition: background .15s; }
.frow:first-child { border-top: 0; }
a.frow:hover { background: rgba(191,159,111,.035); }
a.frow:hover .frow__chev { color: var(--gold); transform: translateX(2px); }
.frow--head { padding-top: 13px; padding-bottom: 13px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); background: rgba(255,255,255,.015); }
.frow__who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.frow__id { min-width: 0; display: block; }
.frow__id strong { display: block; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow__id em { display: block; font-style: normal; font-size: 12.5px; color: var(--gold); opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow__cell { font-size: 13.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow__cats { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: normal; line-height: 1.35; }
.frow__rec { font-family: var(--mono); font-size: 13.5px; color: var(--text); }
.frow__chev { color: var(--text-3); transition: transform .2s, color .2s; }
.frow__chev .ico { width: 16px; height: 16px; }
.frow__lbl { display: none; }
.is-archived { opacity: .55; }

/* ------------------------------------------------------------ combattants : fiche */
.fhero { display: flex; gap: 26px; align-items: center; padding: 28px; margin-bottom: 20px; overflow: hidden; }
.fhero::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(600px 200px at 0% 0%, rgba(191,159,111,.08), transparent 70%); }
.fhero__id { flex: 1; min-width: 0; position: relative; z-index: 1; }
.fhero__id h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.035em; }
.fhero__nick { margin-top: 4px; font-size: 15px; color: var(--gold); font-weight: 500; }
.fhero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fhero__record { position: relative; z-index: 1; display: flex; gap: 6px; text-align: center; }
.fhero__record div { min-width: 78px; padding: 12px 10px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.fhero__record b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.fhero__record span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); font-weight: 600; }
.fhero__record .w b { color: var(--gold-hi); }
.fhero__actions { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }

.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.dl div { padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.dl div:nth-child(-n+2) { border-top: 0; padding-top: 2px; }
.dl dt { font-size: 12px; color: var(--text-3); font-weight: 500; margin-bottom: 3px; }
.dl dd { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }
.dl dd a { color: var(--gold); display: inline-flex; align-items: center; gap: 5px; }
.dl dd a:hover { color: var(--gold-hi); }
.dl dd a .ico { width: 14px; height: 14px; }
.dl dd.is-empty { color: var(--text-3); }

.wins { display: grid; gap: 14px; }
.wins__row { display: grid; grid-template-columns: 120px 1fr 34px; gap: 12px; align-items: center; font-size: 13.5px; color: var(--text-2); }
.wins__row b { text-align: right; font-family: var(--mono); color: var(--text); font-weight: 500; }
.bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.05); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--gold-grad); transition: width .8s var(--ease); }

.notes { white-space: pre-wrap; color: var(--text-2); font-size: 14px; }

.medsum { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.medsum p { font-size: 13px; color: var(--text-2); }
.medrow { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 13px 22px; border-top: 1px solid var(--line); }
.medrow:first-child { border-top: 0; }
.medrow strong { font-size: 13.5px; font-weight: 600; }
.medrow span.medrow__date { grid-column: 1; font-size: 12.5px; color: var(--text-2); }
.medrow .pill { grid-row: 1 / span 2; grid-column: 2; }
.medrow input[type="date"] { height: 38px; font-size: 13.5px; width: 168px; }
.medrow--edit { grid-template-columns: 1fr auto; }
.medrow--edit .field { grid-row: 1 / span 2; grid-column: 2; }
.drive-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); background: rgba(255,255,255,.012); }
.drive-note .ico { width: 16px; height: 16px; margin-top: 1px; color: var(--gold-lo); }

.timeline { display: grid; }
.timeline__row { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 11px 22px; border-top: 1px solid var(--line); font-size: 13px; }
.timeline__row:first-child { border-top: 0; }
.timeline__row strong { font-weight: 600; }
.timeline__row span { color: var(--text-2); }
.timeline__row time { color: var(--text-3); font-size: 12px; white-space: nowrap; }

/* ------------------------------------------------------------ formulaires longs */
.formgrid { display: grid; gap: 20px; }
.fieldset { padding: 0; }
.fieldset__body { padding: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fieldset__body .span-2 { grid-column: span 2; }
.fieldset__body .span-3 { grid-column: 1 / -1; }
.evlogo { padding: 22px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: start; }
.evlogo__apercu { height: 120px; display: grid; place-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: repeating-conic-gradient(#1b1e23 0% 25%, #14161a 0% 50%) 0 0 / 14px 14px; }
.evlogo__apercu img { max-width: 100%; max-height: 90px; object-fit: contain; }
.evlogo__apercu.is-vide { border-style: dashed; background: transparent; color: var(--text-3); font-size: 13px; }
.evlogo__champ { display: grid; gap: 14px; }
.evlogo__retirer { padding: 11px 13px; }
@media (max-width: 640px) { .evlogo { grid-template-columns: 1fr; } }
.formbar { position: sticky; bottom: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; background: linear-gradient(180deg, transparent, var(--bg) 35%); }
.formbar__info { font-size: 12.5px; color: var(--text-3); display: flex; gap: 8px; align-items: center; }
.formbar__info .ico { width: 15px; height: 15px; }
.formbar__actions { display: flex; gap: 10px; }

/* ------------------------------------------------------------ équipe, journal, compte */
.mrow { display: grid; grid-template-columns: minmax(220px, 1.6fr) minmax(220px, 1.6fr) minmax(130px, .9fr) minmax(130px, 1fr) auto; gap: 16px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); }
.mrow:first-child { border-top: 0; }
.mrow__who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.mrow__who .avatar { width: 38px; height: 38px; font-size: 13px; }
.mrow__who .avatar.is-off { background: rgba(255,255,255,.08); color: var(--text-3); }
.mrow__who strong { display: block; font-size: 14.5px; }
.mrow__who span { display: block; font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow__rights { display: flex; gap: 6px; flex-wrap: wrap; }
.mrow__meta { font-size: 12.5px; color: var(--text-3); }

.linkbox { display: grid; gap: 12px; padding: 20px 22px; border-radius: var(--r-lg); border: 1px solid var(--gold-line); background: linear-gradient(180deg, rgba(191,159,111,.08), rgba(191,159,111,.03)); margin-bottom: 22px; }
.linkbox__row { display: flex; gap: 10px; align-items: center; }
.linkbox__row code { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 10px; background: var(--bg-raise); border: 1px solid var(--line-2); color: var(--gold-hi); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkbox p { font-size: 13px; color: var(--text-2); }
.linkbox strong { font-size: 15px; display: flex; gap: 8px; align-items: center; }
.linkbox strong .ico { color: var(--gold); }

.jrow { display: grid; grid-template-columns: 150px 10px minmax(160px, 1fr) minmax(200px, 1.5fr) minmax(160px, 1fr) 190px; gap: 14px; align-items: center; padding: 11px 22px; border-top: 1px solid var(--line); font-size: 13.5px; }
.jrow:first-child { border-top: 0; }
.jrow--head { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); background: rgba(255,255,255,.015); }
.jrow time { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.jrow__act { font-weight: 600; }
.jrow__cible { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jrow__cible a { color: var(--gold); }
.jrow__dev { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jrow__dev code { color: var(--text-2); }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.pager div { display: flex; gap: 8px; }

.devices { display: grid; }
.device { display: flex; gap: 14px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); }
.device:first-child { border-top: 0; }
.device > .ico { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: rgba(255,255,255,.04); color: var(--text-2); }
.device.is-current > .ico { color: var(--gold); background: var(--gold-soft); }
.device div { flex: 1; min-width: 0; }
.device strong { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.device span { display: block; font-size: 12.5px; color: var(--text-2); }
.device form { margin: 0; }

.rights { display: grid; gap: 10px; }

/* ------------------------------------------------------------ téléphone et tablette */
@media (max-width: 1440px) {
  .page { padding: 40px 36px 64px; }
}

@media (max-width: 1340px) {
  .grid-main { grid-template-columns: 1fr; }
  .frow { grid-template-columns: minmax(200px, 2fr) minmax(110px, 1.2fr) 76px 52px minmax(120px, 1fr) 20px; }
  .frow > :nth-child(4) { display: none; }
  .jrow { grid-template-columns: 130px 10px minmax(140px, 1fr) minmax(160px, 1.3fr) 150px; }
  .jrow > :nth-child(6) { display: none; }
  .mrow { grid-template-columns: minmax(200px, 1.5fr) minmax(200px, 1.5fr) minmax(120px, 1fr) auto; }
  .mrow > :nth-child(4) { display: none; }
}

@media (max-width: 980px) {
  body.app { padding-left: 0; }
  .mbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 14px; background: rgba(18,7,11, .82); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--line); }
  .mbar__btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); cursor: pointer; }
  .mbar__btn .ico { width: 19px; height: 19px; }
  .mbar__brand { flex: 1; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
  .mbar__brand img { width: 28px; height: 28px; }
  .side { width: min(300px, 86vw); transform: translateX(-102%); transition: transform .32s var(--ease); box-shadow: 30px 0 80px -20px rgba(0,0,0,.9); }
  body.is-nav-open .side { transform: none; }
  .side__close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; }
  .side-scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.is-nav-open .side-scrim { opacity: 1; pointer-events: auto; }
  body.is-nav-open { overflow: hidden; }
  .toast { left: 50%; top: 72px; }
}

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth__brand { display: none; }
  .auth__panel { align-items: start; padding: 40px 18px 32px; }
  .auth__mobilelogo { display: block; width: 190px; height: auto; margin: 0 auto 6px; }
  body.bare--auth::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34.64 60'%3E%3Cpath d='M17.32 0 34.64 10v20L17.32 40 0 30V10ZM17.32 40v20' fill='none' stroke='%23d8b65e' stroke-opacity='.12' stroke-width='.6'/%3E%3C/svg%3E");
    background-size: 46px 79.7px; -webkit-mask-image: radial-gradient(ellipse 120% 45% at 50% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse 120% 45% at 50% 0%, #000, transparent 70%); }
  .auth__head { text-align: center; }

  .page { padding: 28px 16px 64px; }
  .home__head { padding: 4px 0 28px; }
  .mod { min-height: 0; padding: 22px; }
  .mod__name { margin-top: 28px; font-size: 23px; }
  .pagehead h1 { font-size: 25px; }
  .pagehead__actions .btn { flex: 1; }
  .expire-warn { bottom: 16px; }
  .expire-warn__box { flex-wrap: wrap; }

  .grid-2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi b { font-size: 24px; }
  .toolbar .field, .toolbar .field--search { flex: 1 1 100%; }
  .toolbar .field:not(.field--search) { flex: 1 1 calc(50% - 5px); }
  .toolbar__count { margin-left: 0; }

  .frow--head { display: none; }
  .frow { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 16px; }
  .frow__who { grid-column: 1; }
  .frow > :nth-child(2), .frow > :nth-child(3), .frow > :nth-child(4), .frow > :nth-child(5) { display: none; }
  .frow > :nth-child(6) { grid-column: 2; grid-row: 1; }
  .frow__chev { display: none; }
  .frow__lbl { display: block; grid-column: 1 / -1; padding-left: 58px; font-size: 12.5px; color: var(--text-2); }

  .fhero { flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px; }
  .fhero__record { width: 100%; }
  .fhero__record div { flex: 1; min-width: 0; }
  .fhero__actions { width: 100%; }
  .fhero__actions .btn { flex: 1; }
  .dl { grid-template-columns: 1fr; }
  .dl div:nth-child(2) { border-top: 1px solid var(--line); padding-top: 12px; }
  .fieldset__body { grid-template-columns: 1fr 1fr; padding: 18px; gap: 14px; }
  .fieldset__body .span-2, .fieldset__body .wide { grid-column: 1 / -1; }
  .formbar { flex-direction: column; align-items: stretch; }
  .formbar__actions .btn { flex: 1; }
  .medrow input[type="date"] { width: 150px; }

  .mrow { grid-template-columns: 1fr auto; gap: 10px; padding: 14px 16px; }
  .mrow > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .mrow > :nth-child(3) { grid-column: 1 / -1; grid-row: 3; }
  .mrow > :nth-child(4) { display: none; }
  .mrow > :nth-child(5) { grid-column: 2; grid-row: 1; }
  .jrow--head { display: none; }
  .jrow { grid-template-columns: 10px 1fr; gap: 4px 12px; padding: 12px 16px; }
  .jrow > time { grid-column: 2; grid-row: 2; }
  .jrow > .dot { grid-column: 1; grid-row: 1; }
  .jrow > :nth-child(3) { grid-column: 2; grid-row: 1; }
  .jrow > :nth-child(4) { grid-column: 2; }
  .jrow > :nth-child(5) { grid-column: 2; }
  .jrow > :nth-child(5):empty { display: none; }
  .enroll { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .enroll__manual { justify-items: center; }
  .linkbox__row { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.alert--spaced { margin-bottom: 18px; }
.dl--one { grid-template-columns: 1fr; }
.dl--one div:nth-child(2) { border-top: 1px solid var(--line); padding-top: 12px; }
.otp.otp--sm { height: 50px !important; font-size: 22px !important; }

/* ------------------------------------------------------------ outils communs ajoutés avec le matchmaking */
.iconbtn { position: relative; display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--text-3); cursor: pointer; transition: color .2s, background .2s; }
.iconbtn .ico { width: 17px; height: 17px; }
.iconbtn:hover { color: var(--text); background: rgba(255,255,255,.05); }
.iconbtn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(191,159,111,.35); }
.iconbtn--danger:hover { color: var(--danger); background: var(--danger-soft); }
.iconbtn[disabled] { opacity: .28; pointer-events: none; }
.iconbtn.is-on { color: var(--gold); background: var(--gold-soft); }
.iconbtn.has-dot::after { content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.empty-state--sm { padding: 28px 20px; font-size: 13.5px; }
.home__bar--spaced { margin-top: 40px; }
.tag--sm { height: 22px; font-size: 11.5px; padding: 0 8px; border-radius: 6px; }
.dangerzone { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; padding: 16px 20px; border-radius: var(--r); border: 1px solid rgba(239,106,94,.22); background: rgba(239,106,94,.04); }
.dangerzone strong { display: block; font-size: 14px; }
.dangerzone span { font-size: 13px; color: var(--text-2); }

/* fiche combattant : plusieurs catégories, plusieurs coachs */
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-raise); font-size: 13.5px; font-weight: 500; color: var(--text-2); transition: border-color .2s, background .2s, color .2s; }
.chip small { font: 500 11px/1 var(--mono); color: var(--text-3); }
.chip:hover span { border-color: var(--line-3); color: var(--text); }
.chip input:checked + span { border-color: var(--gold-line); background: var(--gold-soft); color: var(--gold-hi); }
.chip input:checked + span small { color: var(--gold); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(191,159,111,.3); }
.coachlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.coachlist__row { display: flex; gap: 6px; align-items: center; }
.coachlist__row input { flex: 1; }
.coachlist__add { justify-self: start; }

/* ------------------------------------------------------------ matchmaking : liste des événements */
.evts { overflow: hidden; }
.evt { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto 20px; gap: 22px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--line); transition: background .15s; }
.evt:first-child { border-top: 0; }
.evt:hover { background: rgba(191,159,111,.035); }
.evt:hover .frow__chev { color: var(--gold); transform: translateX(2px); }
.evt__date, .evhead__date { display: grid; justify-items: center; align-content: center; width: 64px; height: 70px; border-radius: 14px; border: 1px solid var(--gold-line); background: linear-gradient(180deg, var(--gold-soft), transparent); line-height: 1.05; flex: none; }
.evt__date b, .evhead__date b { font-size: 24px; font-weight: 700; letter-spacing: -.03em; color: var(--gold-hi); }
.evt__date small, .evhead__date small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text-2); margin-top: 3px; }
.evt__date em { font-style: normal; font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.evt.is-past .evt__date { border-color: var(--line-2); background: transparent; }
.evt.is-past .evt__date b { color: var(--text-2); }
.evt__main { min-width: 0; }
.evt__main strong { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evt__main > span { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evt__main i { font-style: normal; }
.evt__stats { display: flex; gap: 18px; font-size: 13px; color: var(--text-3); white-space: nowrap; }
.evt__stats b { color: var(--text); font-weight: 650; font-size: 15px; font-variant-numeric: tabular-nums; margin-right: 3px; }
.evt__state { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; min-width: 120px; }

/* ------------------------------------------------------------ matchmaking : en-tête d'événement */
body.app--mm .page { max-width: 1480px; }
.evhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.evhead__main { min-width: 0; flex: 1 1 420px; display: grid; gap: 14px; }
.evswitch { position: relative; min-width: 0; }
.evswitch__btn { display: flex; align-items: center; gap: 16px; max-width: 100%; padding: 6px 16px 6px 6px; margin-left: -7px; border: 1px solid transparent; border-radius: 20px; background: transparent; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.evswitch__btn:hover, .evswitch__btn[aria-expanded="true"] { background: rgba(255,255,255,.03); border-color: var(--line-2); }
.evswitch__btn > .ico { width: 20px; height: 20px; color: var(--text-3); transition: transform .2s; }
.evswitch__btn[aria-expanded="true"] > .ico { transform: rotate(180deg); color: var(--gold); }
.evswitch__title { min-width: 0; display: grid; gap: 5px; }
.evswitch__title h1 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.035em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evswitch__panel { position: absolute; z-index: 30; top: calc(100% + 8px); left: -7px; width: min(420px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; padding: 8px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px rgba(0,0,0,.9); animation: rise .18s var(--ease) both; }
.evswitch__label { padding: 10px 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.evswitch__item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; color: var(--text-2); }
.evswitch__item:hover { background: rgba(255,255,255,.05); color: var(--text); }
.evswitch__item.is-active { background: var(--gold-soft); color: var(--text); }
.evswitch__item > .ico { margin-left: auto; width: 16px; height: 16px; color: var(--gold); }
.evswitch__d { display: grid; justify-items: center; width: 42px; flex: none; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); line-height: 1.15; }
.evswitch__d b { font-size: 17px; color: var(--text); letter-spacing: -.02em; }
.evswitch__n { min-width: 0; display: grid; }
.evswitch__n strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evswitch__n small { font-size: 12px; color: var(--text-3); }
.evswitch__new { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 12px 10px 6px; border-top: 1px solid var(--line); color: var(--gold); font-size: 14px; font-weight: 600; }
.evswitch__new:hover { color: var(--gold-hi); }
.evhead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13.5px; color: var(--text-2); }
.evhead__meta > span:not(.pill) { display: inline-flex; align-items: center; gap: 7px; }
.evhead__meta .ico { width: 15px; height: 15px; color: var(--gold-lo); }
.evhead__side { display: grid; gap: 14px; justify-items: end; }
.evstats { display: flex; gap: 10px; }
.evstat { min-width: 96px; padding: 10px 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--card); }
.evstat b { display: flex; align-items: baseline; font-size: 22px; font-weight: 680; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.evstat b small { font-size: 13px; font-weight: 600; color: var(--text-3); margin-left: 1px; }
.evstat b .ico { width: 21px; height: 21px; stroke-width: 2.2; }
.evstat span { display: block; max-width: 150px; margin-top: 3px; font-size: 11.5px; line-height: 1.3; color: var(--text-3); }
.evstat--bad { border-color: rgba(239,106,94,.3); background: var(--danger-soft); }
.evstat--bad b { color: var(--danger); }
.evstat--ok b { color: var(--ok); }
.evhead__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.savestate { display: inline-flex; align-items: center; gap: 7px; margin-right: 6px; font-size: 12.5px; color: var(--text-3); }
.savestate .ico { width: 14px; height: 14px; }
.savestate--ok { color: var(--ok); }
.savestate--err { color: var(--danger); }
.savestate--busy i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-3); border-top-color: var(--gold); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.evnotes { display: flex; gap: 10px; margin: -6px 0 24px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: 13.5px; color: var(--text-2); white-space: pre-wrap; }
.evnotes .ico { width: 16px; height: 16px; margin-top: 2px; color: var(--gold-lo); }

/* ------------------------------------------------------------ matchmaking : cartes et déroulé */
.mm { display: grid; gap: 22px; }
.mmcard { border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,.006)), var(--card); box-shadow: var(--shadow); }
.mmcard__head { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 22px; border-bottom: 1px solid var(--line); }
.mmcard__name { flex: 1; min-width: 0; padding: 7px 10px; margin-left: -11px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text); font: 650 17px/1.2 var(--font); letter-spacing: -.015em; }
h2.mmcard__name { margin-left: 0; padding-left: 0; }
input.mmcard__name:hover { border-color: var(--line-2); }
input.mmcard__name:focus { outline: none; border-color: var(--gold-line); background: var(--bg-raise); box-shadow: 0 0 0 4px rgba(191,159,111,.1); }
.mmcard__count { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.mmcard__tools { display: flex; gap: 2px; }
.mmlist { display: grid; gap: 8px; min-height: 64px; padding: 14px; }
.mmlist__empty { padding: 18px; border: 1px dashed var(--line-2); border-radius: 14px; text-align: center; font-size: 13px; color: var(--text-3); }
.mmlist > [data-item] ~ .mmlist__empty, .mmlist > .mm-ph ~ .mmlist__empty { display: none; }
.mmcard__foot { display: flex; gap: 8px; padding: 0 14px 14px; }
.mm__addcard { display: flex; align-items: center; justify-content: center; gap: 10px; height: 60px; border: 1px dashed var(--line-3); border-radius: var(--r-lg); background: transparent; color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.mm__addcard:hover { border-color: var(--gold-line); background: var(--gold-soft); color: var(--gold-hi); }

.bout { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-raise); transition: border-color .2s; }
.bout:hover { border-color: var(--line-2); }
.bout.is-open { border-color: var(--gold-line); }
.bout__row { display: grid; grid-template-columns: auto 30px minmax(0, 1fr) 176px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 10px 10px 8px; }
.mm:not(.is-editable) .bout__row { grid-template-columns: 30px minmax(0, 1fr) 176px minmax(0, 1fr); padding-left: 12px; }
.grip { display: grid; place-items: center; width: 26px; height: 42px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); cursor: grab; touch-action: none; }
.grip:hover { color: var(--text-2); background: rgba(255,255,255,.04); }
.grip:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(191,159,111,.35); color: var(--gold); }
.grip .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.bout__num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; border: 1px solid rgba(191,159,111,.22); background: var(--gold-soft); font: 600 13px/1 var(--mono); color: var(--gold-hi); }
.corner { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 72px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018); }
.corner::before { content: ""; position: absolute; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; }
.corner--rouge::before { left: -2px; background: #e0574b; }
.corner--bleu::before { right: -2px; background: #4f86f7; }
.corner--bleu { flex-direction: row-reverse; text-align: right; }
.corner__id { flex: 1; min-width: 0; display: grid; gap: 2px; }
.corner--bleu .corner__id { justify-items: end; }
.corner__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 500; }
.corner__name b { font-weight: 700; letter-spacing: .01em; }
.corner__name:hover { color: var(--gold-hi); }
.corner__id em { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 12px; color: var(--gold); }
.corner__meta { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 12px; color: var(--text-2); }
.corner--bleu .corner__meta { justify-content: flex-end; }
.corner__meta .mono { color: var(--text); }
.corner__change { opacity: 0; transition: opacity .2s; }
.corner:hover .corner__change, .corner__change:focus-visible { opacity: 1; }
@media (hover: none) { .corner__change { opacity: 1; } }
.corner--empty { justify-content: center; gap: 9px; border-style: dashed; border-color: var(--line-2); background: transparent; color: var(--text-3); font: 600 13.5px/1.2 var(--font); }
.corner--bleu.corner--empty { flex-direction: row; }
.corner--empty::before { opacity: .45; }
.corner--empty .ico { width: 18px; height: 18px; }
button.corner--empty { cursor: pointer; }
button.corner--empty:hover { border-color: var(--gold-line); background: var(--gold-soft); color: var(--gold-hi); }
.hexmono--sm { --s: 38px; }
.medtag { display: inline-flex; align-items: center; gap: 5px; width: fit-content; margin-top: 3px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.medtag .ico { width: 13px; height: 13px; stroke-width: 2.2; }
.medtag.is-ok { color: var(--ok); }
.medtag.is-bad { padding: 2px 8px 2px 6px; border-radius: 6px; background: var(--danger-soft); color: var(--danger); cursor: help; }
.bout__mid { display: grid; justify-items: center; gap: 5px; min-width: 0; text-align: center; }
.bout__vs { padding-left: .22em; font: 800 12px/1 var(--font); letter-spacing: .22em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold); }
.bout__cat { max-width: 100%; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(255,255,255,.03); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 12px/1.3 var(--font); color: var(--text); }
button.bout__cat { cursor: pointer; }
button.bout__cat:hover { border-color: var(--gold-line); color: var(--gold-hi); }
.bout__cat.is-empty { border-style: dashed; font-weight: 500; color: var(--text-3); }
.bout__fmt { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.bout__tools { display: flex; gap: 2px; }
.bout__note { display: flex; align-items: flex-start; gap: 8px; margin: 0 12px 10px 76px; padding: 8px 12px; border: 1px solid rgba(191,159,111,.14); border-radius: 9px; background: rgba(191,159,111,.05); font-size: 13px; color: var(--text-2); white-space: pre-wrap; }
.mm:not(.is-editable) .bout__note { margin-left: 54px; }
.bout__note .ico { width: 14px; height: 14px; margin-top: 2px; color: var(--gold); }
.bout__panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; padding: 14px 16px 16px; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; background: rgba(255,255,255,.012); animation: rise .2s var(--ease) both; }
.bout__panel .bout__notefield { grid-column: 1 / -1; }
.bout__panel select, .bout__panel input { height: 40px; font-size: 13.5px; }
.bout__panel textarea { min-height: 64px; font-size: 13.5px; }

.mmlabel { --lc: var(--gold); --lc-soft: var(--gold-soft); --lc-line: var(--gold-line);
  display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 8px; border: 1px solid var(--lc-line); border-radius: 12px; background: var(--lc-soft); }
.mm:not(.is-editable) .mmlabel { padding: 10px 14px; }
.mmlabel--bleu { --lc: var(--info); --lc-soft: var(--info-soft); --lc-line: rgba(143,179,255,.3); }
.mmlabel--vert { --lc: var(--ok); --lc-soft: var(--ok-soft); --lc-line: rgba(92,196,149,.3); }
.mmlabel--rouge { --lc: var(--danger); --lc-soft: var(--danger-soft); --lc-line: rgba(239,106,94,.3); }
.mmlabel--gris { --lc: var(--text-2); --lc-soft: rgba(255,255,255,.035); --lc-line: var(--line-2); }
.mmlabel__ico { display: grid; color: var(--lc); }
.mmlabel__ico .ico { width: 16px; height: 16px; }
.mmlabel__text { flex: 1; min-width: 0; padding: 7px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; font: 650 13px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--lc); }
input.mmlabel__text:hover { border-color: var(--lc-line); }
input.mmlabel__text:focus { outline: none; border-color: var(--lc-line); background: rgba(0,0,0,.25); }
.mmlabel__colors { display: flex; gap: 6px; padding: 0 4px; }
.swatch { width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.swatch--or { background: var(--gold); }
.swatch--bleu { background: var(--info); }
.swatch--vert { background: var(--ok); }
.swatch--rouge { background: var(--danger); }
.swatch--gris { background: #7c7a75; }
.swatch.is-on { outline: 2px solid var(--text); outline-offset: 2px; }
.swatch:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

[data-item].is-dragging { position: fixed; z-index: 90; pointer-events: none; opacity: .96; transform: rotate(-.6deg) scale(1.01); box-shadow: 0 30px 60px -15px rgba(0,0,0,.85), 0 0 0 1px var(--gold-line); }
body.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.mm-ph { border: 1.5px dashed var(--gold-line); border-radius: 14px; background: var(--gold-soft); }

/* ------------------------------------------------------------ matchmaking : choix d'un combattant */
.picker { position: fixed; z-index: 85; inset: 0 0 0 auto; width: min(480px, 100vw); display: flex; flex-direction: column; background: #0d0f12; border-left: 1px solid var(--line-2); box-shadow: -40px 0 90px -30px rgba(0,0,0,.9); animation: slidein .28s var(--ease) both; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.picker-scrim { position: fixed; inset: 0; z-index: 84; background: rgba(0,0,0,.5); animation: fadein .2s both; }
@keyframes fadein { from { opacity: 0; } }
.picker__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 22px 14px; }
.picker__head h2 { margin-top: 6px; font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.picker__corner--rouge { color: #ff8a7f; }
.picker__corner--bleu { color: #8fb3ff; }
.picker__filters { display: grid; gap: 10px; padding: 0 22px 14px; border-bottom: 1px solid var(--line); }
.picker__filters input, .picker__filters select { height: 42px; font-size: 14px; }
.picker__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.picker__row select { padding-left: 10px; padding-right: 28px; font-size: 13px; background-position: right 8px center; }
.picker__hint { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.picker__hint .ico { width: 14px; height: 14px; color: var(--gold-lo); }
.picker__list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px; }
.pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.pick:hover, .pick:focus-visible { outline: none; border-color: rgba(191,159,111,.18); background: rgba(191,159,111,.06); }
.pick.is-current { border-color: var(--gold-line); background: var(--gold-soft); }
.pick__id { flex: 1; min-width: 0; display: grid; }
.pick__id strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.pick__id span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--text-2); }
.pick__side { display: grid; justify-items: end; gap: 4px; flex: none; }
.pick__side .medtag { margin-top: 0; }
.picker__foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }

/* Accompagnants d'un combattant (module Accès backstage) : violet = accompagnant, comme dans la liste backstage */
.corner__line { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; min-width: 0; max-width: 100%; }
.corner--bleu .corner__line { flex-direction: row-reverse; }
.corner__line .corner__name { flex: 0 0 auto; }
.corner__acc { display: inline-flex; align-items: center; gap: 5px; flex: none; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-2); background: transparent; color: var(--text-3); font: 600 11px/1 var(--font); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.corner__acc .ico { width: 13px; height: 13px; }
.corner__acc b { display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 5px; background: rgba(177,140,255,.2); color: #cdb6ff; font-size: 10.5px; }
.corner__acc:hover, .corner__acc:focus-visible { outline: none; color: #cdb6ff; border-color: rgba(177,140,255,.45); background: rgba(177,140,255,.08); }
.corner__acc.has-acc { color: #cdb6ff; border-color: rgba(177,140,255,.3); }
@media (max-width: 640px) { .corner__acc span { display: none; } }
.accp__eyebrow { color: #cdb6ff; }
.accp__hint { display: flex; gap: 8px; margin: 0 22px 12px; font-size: 12px; line-height: 1.5; color: var(--text-3); }
.accp__hint .ico { flex: none; width: 14px; height: 14px; margin-top: 2px; color: #b18cff; }
.accp__hint a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.accp__list { display: grid; align-content: start; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.accp__card { position: relative; display: flex; gap: 6px; align-items: flex-start; padding: 12px 10px 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018); }
.accp__card::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: #b18cff; }
.accp__card[data-p=""]::before { opacity: .35; }
.accp__grid { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.accp__grid input { height: 38px; font-size: 13.5px; }
.accp__del { margin-top: 18px; }
@media (max-width: 420px) { .accp__grid { grid-template-columns: 1fr; } }

@media (max-width: 1340px) {
  .bout__row { grid-template-columns: auto 30px minmax(0, 1fr) 150px minmax(0, 1fr) auto; }
  .mm:not(.is-editable) .bout__row { grid-template-columns: 30px minmax(0, 1fr) 150px minmax(0, 1fr); }
}
@media (max-width: 1120px) {
  .bout__row { grid-template-columns: auto 30px minmax(0, 1fr) auto; grid-template-areas: "grip num rouge tools" "grip num mid tools" "grip num bleu tools"; align-items: start; }
  .mm:not(.is-editable) .bout__row { grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: "num rouge" "num mid" "num bleu"; }
  .bout__row > .grip { grid-area: grip; align-self: center; }
  .bout__num { grid-area: num; }
  .corner--rouge { grid-area: rouge; }
  .corner--bleu { grid-area: bleu; flex-direction: row; text-align: left; }
  .corner--bleu::before { right: auto; left: -2px; }
  .corner--bleu .corner__line { flex-direction: row; }
  .corner--bleu .corner__id { justify-items: start; }
  .corner--bleu .corner__meta { justify-content: flex-start; }
  .bout__mid { grid-area: mid; grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; padding-left: 4px; }
  .bout__tools { grid-area: tools; flex-direction: column; }
  .bout__note, .mm:not(.is-editable) .bout__note { margin-left: 12px; }
}
@media (max-width: 980px) {
  .evhead { align-items: stretch; }
  .evhead__side { width: 100%; justify-items: stretch; }
  .evstats > * { flex: 1; min-width: 0; }
  .evhead__actions { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .evt { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 6px 14px; padding: 14px 16px; }
  .evt__date { width: 56px; height: 64px; grid-row: 1 / span 2; }
  .evt__stats { grid-column: 2; grid-row: 2; gap: 12px; }
  .evt__state { grid-column: 3; grid-row: 1 / span 2; flex-direction: column; align-items: flex-end; min-width: 0; }
  .evt > .frow__chev { display: none; }
  .evswitch__btn { gap: 12px; }
  .evhead__date { width: 56px; height: 62px; }
  .evswitch__title h1 { white-space: normal; font-size: 24px; }
  .evstat { padding: 9px 11px; }
  .evstat span { font-size: 11px; }
  .mmcard__head { flex-wrap: wrap; padding: 10px 10px 10px 16px; gap: 6px 10px; }
  .mmcard__name { flex-basis: 100%; order: -1; }
  .mmcard__tools { margin-left: auto; }
  .mmlist { padding: 10px; }
  .bout__row { gap: 8px; padding: 8px 6px; }
  .grip { width: 22px; }
  .bout__num { width: 26px; height: 26px; font-size: 12px; }
  .corner { min-height: 0; padding: 9px 10px; gap: 10px; }
  .bout__mid { grid-auto-flow: row; justify-items: start; gap: 4px; }
  .bout__panel { grid-template-columns: 1fr 1fr; padding: 12px; gap: 10px; }
  .mmlabel { flex-wrap: wrap; }
  .picker { border-left: 0; }
  .picker__head, .picker__filters { padding-left: 16px; padding-right: 16px; }
  .picker__row { grid-template-columns: 1fr 1fr; }
  .picker__row .field:first-child { grid-column: 1 / -1; }
  .dangerzone { flex-direction: column; align-items: stretch; }
  .coachlist { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* téléphone : numéro et outils sur une ligne, puis les deux coins sur toute la largeur */
  .bout__row { grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "grip num tools" "rouge rouge rouge" "mid mid mid" "bleu bleu bleu"; align-items: center; }
  .mm:not(.is-editable) .bout__row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num ." "rouge rouge" "mid mid" "bleu bleu"; }
  .bout__row > .grip { height: 30px; }
  .bout__tools { flex-direction: row; justify-content: flex-end; }
  .bout__mid { grid-auto-flow: column; justify-content: start; align-items: center; gap: 8px; padding: 0 2px; }
  .bout__note, .mm:not(.is-editable) .bout__note { margin: 0 6px 8px; }
  .mmlist { padding: 8px; }
}

/* ---------------------------------------------------------- format du combat (amateur, pro, main event) */
.bout__panel .bout__formfield { grid-column: 1 / -1; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 4px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255,255,255,.02); }
.seg__opt { display: grid; gap: 2px; justify-items: center; padding: 8px 6px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text-2); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.seg__opt b { font-size: 13.5px; font-weight: 600; }
.seg__opt small { font: 500 11.5px/1.2 var(--mono); color: var(--text-3); }
.seg__opt:hover { background: rgba(255,255,255,.04); color: var(--text); }
.seg__opt:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(191,159,111,.35); }
.seg__opt.is-on { border-color: var(--gold-line); background: var(--gold-soft); color: var(--gold-hi); }
.seg__opt.is-on small { color: var(--gold); }
.bout__fmt--main { color: var(--gold); font-weight: 600; }
@media (max-width: 560px) {
  .bout__panel { grid-template-columns: 1fr; }
  .seg__opt { padding: 8px 2px; }
  .seg__opt b { font-size: 12.5px; }
}

/* ------------------------------------------------------------ servcoins : crédits IA communs (compteur, débit animé, bandeau) */
.coin { width: 20px; height: 20px; flex: none; }
.coin__bord { fill: #bf9f6f; stroke: #ead6b2; stroke-width: 1.1; stroke-linejoin: round; }
.coin__h { fill: none; stroke: #1d0a10; stroke-width: 2.1; stroke-linecap: round; }
.coins-pill { position: relative; display: grid; gap: 7px; margin: 0 2px 10px; padding: 12px 14px 11px; border-radius: 12px; border: 1px solid var(--gold-line); background: linear-gradient(135deg, rgba(191,159,111,.16), rgba(191,159,111,.03)); transition: border-color .2s, box-shadow .2s; }
.coins-pill:hover { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(191,159,111,.08); }
.coins-pill__row { display: flex; align-items: center; gap: 10px; }
.coins-pill__row .coin { width: 30px; height: 30px; filter: drop-shadow(0 4px 10px rgba(191,159,111,.45)); }
.coins-pill__n { display: grid; line-height: 1.05; }
.coins-pill__n b { font: 700 22px/1 var(--mono); color: var(--gold-hi); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.coins-pill__n small { font-size: 10.5px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.coins-pill__bar { height: 5px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.coins-pill__bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--gold-grad); transition: width .8s var(--ease); }
.coins-pill__txt { font-size: 11.5px; color: var(--text-3); }
.coins-pill.is-bas { border-color: rgba(232,176,75,.5); }
.coins-pill.is-bas .coins-pill__bar i { background: var(--warn); }
.coins-pill.is-vide { border-color: rgba(239,106,94,.5); background: var(--danger-soft); }
.coins-pill.is-vide .coins-pill__n b { color: var(--danger); }
.coins-pill.is-vide .coins-pill__txt { color: var(--danger); }
.coins-pill.is-debit .coin, .mbar__coins.is-debit .coin { animation: coin-spin .7s var(--ease); }
.coins-fly { position: absolute; right: 14px; top: 8px; font: 700 17px/1 var(--mono); color: #ffd9a8; text-shadow: 0 2px 10px rgba(0,0,0,.7); pointer-events: none; animation: coin-fly 1.4s var(--ease) forwards; z-index: 5; }
.coins-fly--plus { right: 10px; top: -4px; color: var(--gold-hi); }
.mbar__coins { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 7px; border-radius: 99px; border: 1px solid var(--gold-line); background: var(--gold-soft); }
.mbar__coins .coin { width: 18px; height: 18px; }
.mbar__coins b { font: 600 13px/1 var(--mono); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.mbar__coins.is-vide { border-color: rgba(239,106,94,.5); background: var(--danger-soft); }
.mbar__coins.is-vide b { color: var(--danger); }
.mbar__coins .coins-fly { right: 4px; top: 30px; animation-name: coin-fly-bas; }
.coins-banner .coin { width: 20px; height: 20px; margin-top: 0; }
.coins-banner a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@keyframes coin-fly { 0% { opacity: 0; transform: translateY(6px) scale(.8); } 18% { opacity: 1; transform: translateY(-4px) scale(1.15); } 100% { opacity: 0; transform: translateY(-46px) scale(1); } }
@keyframes coin-fly-bas { 0% { opacity: 0; transform: translateY(-6px); } 18% { opacity: 1; } 100% { opacity: 0; transform: translateY(26px); } }
@keyframes coin-spin { 0% { transform: rotateY(0) scale(1); } 50% { transform: rotateY(180deg) scale(1.2); } 100% { transform: rotateY(360deg) scale(1); } }

/* pages Servcoins et Coûts réels */
.hc-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; margin-bottom: 26px; }
.hc-solde { position: relative; display: grid; gap: 14px; padding: 26px 28px; border-radius: var(--r-lg); border: 1px solid var(--gold-line); background: radial-gradient(120% 140% at 0 0, rgba(191,159,111,.2), transparent 60%), var(--card); overflow: hidden; }
.hc-solde__top { display: flex; align-items: center; gap: 18px; }
.hc-solde__top .coin { width: 64px; height: 64px; filter: drop-shadow(0 10px 26px rgba(191,159,111,.5)); }
.hc-solde__n { display: grid; }
.hc-solde__n b { font: 700 56px/1 var(--mono); letter-spacing: -.03em; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.hc-solde__n span { font-size: 12px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.hc-bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.hc-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--gold-grad); transition: width .9s var(--ease); }
.hc-solde p { font-size: 13.5px; color: var(--text-2); }
.hc-solde p b { color: var(--text); }
.hc-side { display: grid; gap: 12px; align-content: start; }
.hc-fact { display: grid; gap: 3px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.hc-fact span { font-size: 11px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); }
.hc-fact b { font-size: 17px; font-weight: 640; }
.hc-fact small { font-size: 12.5px; color: var(--text-3); }
.hc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.hc-table th { padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.hc-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.hc-table tr:last-child td { border-bottom: 0; }
.hc-table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hc-table td small { display: block; font-size: 11.5px; color: var(--text-3); }
.hc-debit { font: 600 13.5px/1 var(--mono); color: var(--gold-hi); white-space: nowrap; }
.hc-part { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.hc-part:last-child { border-bottom: 0; }
.hc-part b { font: 600 13.5px/1 var(--mono); color: var(--gold-hi); }
.hc-part .hc-bar { grid-column: 1 / -1; height: 4px; }
.hc-wrap { overflow-x: auto; }
.hc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 26px; }
.hc-kpi { display: grid; gap: 6px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.hc-kpi span { font-size: 11px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); }
.hc-kpi b { font: 680 24px/1.1 var(--mono); letter-spacing: -.02em; }
.hc-kpi small { font-size: 12.5px; color: var(--text-3); }
.hc-reel { color: #9fd8ff; }
.hc-kpi--or { border-color: var(--gold-line); }
.hc-kpi--or b { color: var(--gold-hi); }
.hc-tarifs { display: grid; gap: 0; }
.hc-tarifs div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.hc-tarifs div:last-child { border-bottom: 0; }
.hc-tarifs b { font: 600 13.5px/1.3 var(--mono); text-align: right; }
.hc-tarifs small { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-3); }
.hc-recharge { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.hc-recharge .field { margin: 0; }
.hc-equiv { font-size: 13px; color: var(--text-2); margin-top: 12px; }
.hc-equiv b { color: var(--gold-hi); }
.hc-mini { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; color: var(--text-3); text-decoration: underline; cursor: pointer; }
.hc-mini:hover { color: var(--text); }
.hc-plus { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.hc-plus > summary { padding: 16px 20px; cursor: pointer; font-weight: 640; font-size: 14px; }
.hc-plus > summary small { font-weight: 400; color: var(--text-3); margin-left: 8px; }
.hc-plus[open] > summary { border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .hc-recharge { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 980px) { .hc-hero { grid-template-columns: 1fr; } .hc-solde__n b { font-size: 44px; } }
.mbar__coins, .mbar__session { flex: none; }
.mbar__coins b { white-space: nowrap; }
.mbar__brand { min-width: 0; }
.mbar__brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 460px) { .mbar { gap: 8px; } .mbar__brand span { display: none; } }

/* ---------- Événement de travail (menu, sous le nom de l'espace : _app/evenements.php) ---------- */
.sevt { position: relative; margin: 0 0 4px; padding: 8px 6px 6px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.sevt__tools { display: flex; align-items: center; gap: 4px; }
.sevt__head .sevt__edit { opacity: 1; }
.sevt__cur { width: 100%; display: flex; align-items: center; gap: 9px; padding: 7px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 500; text-align: left; cursor: pointer; transition: background .2s; }
.sevt__cur:hover, .sevt__cur[aria-expanded="true"] { background: rgba(255,255,255,.04); }
.sevt__cur:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(191,159,111,.35); }
.sevt__cur .sevt__dot { margin-top: 0; align-self: center; }
.sevt__cur > .ico { width: 16px; height: 16px; flex: none; color: var(--text-3); transition: transform .2s; }
.sevt__cur[aria-expanded="true"] > .ico { transform: rotate(180deg); color: var(--gold); }
.sevt__cur.is-on { color: var(--text); font-weight: 600; }
.sevt__cur.is-on .sevt__dot { border-color: transparent; background: var(--gold-grad); box-shadow: 0 0 0 3px var(--gold-soft); }
.sevt__cur.is-on .sevt__date { color: var(--gold); font-weight: 500; }
.sevt__cur:not(.is-on) .sevt__dot { border-style: dashed; }
.sevt__panel { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: clamp(180px, calc(100vh - 470px), 420px); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0,0,0,.85); animation: rise .18s var(--ease) both; }
.sevt__head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 6px; }
.sevt__head > span { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.sevt__add, .sevt__edit { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; color: var(--text-3); transition: color .2s, background .2s; }
.sevt__add { border: 1px solid var(--line-2); }
.sevt__add:hover, .sevt__edit:hover { color: var(--gold-hi); background: var(--gold-soft); }
.sevt__add .ico, .sevt__edit .ico { width: 14px; height: 14px; }
.sevt__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.sevt__item { position: relative; display: flex; align-items: center; gap: 2px; border-radius: 10px; transition: background .2s; }
.sevt__item:hover { background: rgba(255,255,255,.035); }
.sevt__item form { flex: 1; min-width: 0; margin: 0; }
.sevt__pick { width: 100%; display: flex; align-items: flex-start; gap: 9px; min-height: 34px; padding: 7px 4px 7px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 500; text-align: left; cursor: pointer; }
.sevt__pick:focus-visible, .sevt__add:focus-visible, .sevt__edit:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(191,159,111,.35); }
.sevt__dot { width: 8px; height: 8px; flex: none; margin-top: 5px; border-radius: 50%; border: 1.5px solid var(--line-3); }
.sevt__txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.sevt__nom { min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
.sevt__date { font-size: 11.5px; line-height: 1.3; color: var(--text-3); }
.sevt__edit { opacity: 0; margin-right: 2px; }
.sevt__item:hover .sevt__edit, .sevt__edit:focus-visible, .sevt__item.is-on .sevt__edit { opacity: 1; }
@media (hover: none) { .sevt__edit { opacity: 1; } }
.sevt__item.is-on { background: linear-gradient(90deg, var(--gold-soft), rgba(191,159,111,.03)); }
.sevt__item.is-on .sevt__pick { color: var(--text); font-weight: 600; }
.sevt__item.is-on .sevt__dot { border-color: transparent; background: var(--gold-grad); box-shadow: 0 0 0 3px var(--gold-soft); }
.sevt__item.is-on .sevt__date { color: var(--gold); }
.sevt__item--all { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.sevt__item--all .sevt__pick { color: var(--text-3); font-size: 12.5px; }
.sevt__item--all .sevt__dot { border-style: dashed; }
.sevt__past details > summary { display: flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 8px; border-radius: 10px; list-style: none; cursor: pointer; font-size: 12px; color: var(--text-3); }
.sevt__past details > summary::-webkit-details-marker { display: none; }
.sevt__past details > summary:hover { color: var(--text-2); }
.sevt__past details > summary .ico { width: 13px; height: 13px; transition: transform .2s; }
.sevt__past details[open] > summary .ico { transform: rotate(90deg); }
.sevt__past details > summary b { font-weight: 600; }
.sevt__vide { padding: 4px 8px 8px; font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.sevt-ligne { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; font-size: 13px; color: var(--text-2); }
.sevt-ligne .ico { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--gold); }
.sevt-ligne b { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------ menu latéral : paliers selon la hauteur de la fenêtre
   (24/11/2026, Tom : pas de barre de défilement). Le menu entier du super admin tient sans défiler jusqu'à 620 px de haut ;
   plus bas, il défile sans barre, avec un fondu (data-side-nav, assets/app.js). */
@media (max-height: 1180px) {
  .side { padding-top: 18px; padding-bottom: 10px; }
  .side__top { padding-bottom: 16px; }
  .side__link { height: 37px; }
  .side__link.is-active::before { top: 9px; bottom: 9px; }
  .side__label { padding: 14px 12px 5px; }
  .coins-pill { padding: 9px 14px; margin-bottom: 8px; }
  .coins-pill__row .coin { width: 24px; height: 24px; }
  .coins-pill__n { flex: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .coins-pill__n b { font-size: 18px; white-space: nowrap; }
  .coins-pill__bar { height: 4px; }
  .coins-pill__txt, .session-pill__ip { display: none; }
  .session-pill { padding: 9px 14px; margin-bottom: 10px; }
  .side__foot { padding-top: 8px; }
}
@media (max-height: 970px) {
  .sevt { display: flex; flex-direction: row-reverse; align-items: center; gap: 2px; padding: 3px 6px 3px 4px; }
  .sevt__head { flex: none; padding: 0; }
  .sevt__head > span:first-child { display: none; }
  .sevt__cur { flex: 1; width: auto; min-width: 0; gap: 7px; padding: 5px 4px 5px 8px; }
  .sevt__cur .sevt__nom, .sevt__cur .sevt__date { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sevt__panel { max-height: clamp(180px, calc(100vh - 330px), 420px); }
  .side__etat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin: 0 2px 8px; padding-top: 8px; }
  .coins-pill, .session-pill { margin: 0; padding: 0 11px; height: 38px; align-content: center; }
  .coins-pill { gap: 5px; }
  .coins-pill__row { gap: 8px; }
  .coins-pill__row .coin { width: 18px; height: 18px; }
  .coins-pill__n b { font-size: 14.5px; }
  .coins-pill__n small { display: none; }
  .coins-pill__bar { height: 3px; }
  .session-pill__row > span { display: none; }
}
@media (max-height: 885px) and (min-width: 981px) {
  .side__nav { gap: 1px; }
  .side__label { padding: 10px 12px 3px; font-size: 10px; }
  .side__link { height: 33px; font-size: 13.5px; }
  .side__link.is-active::before { top: 8px; bottom: 8px; }
}
@media (max-height: 776px) and (min-width: 981px) {
  .side { padding-top: 14px; padding-bottom: 6px; }
  .side__top { padding-bottom: 10px; }
  .side__nav { gap: 0; }
  .side__link { height: 29px; font-size: 13px; }
  .side__link .ico { width: 16px; height: 16px; }
  .side__label { margin: 5px 12px 4px; padding: 0; height: 1px; overflow: hidden; color: transparent; background: var(--line); }
  .side__foot { padding-top: 4px; }
  .usermenu__btn { padding: 6px 8px; }
  .side__foot .avatar { width: 30px; height: 30px; }
}
.evhead__title { display: flex; align-items: center; gap: 16px; min-width: 0; }

/* ------------------------------------------------------------ fiche combattant enrichie (26/11/2026, demandes du Servette FC) */
/* coachs détaillés : nom, type de licence, BF2 */
.coachlist--detail { grid-template-columns: 1fr; }
.coachlist--detail .coachlist__row { display: grid; grid-template-columns: minmax(0, 1fr) 170px 130px 38px; gap: 8px; }
.field--court textarea { min-height: 84px; }
.field--femme[hidden] { display: none; }
.field input[type="file"] { height: auto; padding: 9px 12px; font-size: 13px; color: var(--text-2); }
.field input[type="file"]::file-selector-button { margin-right: 12px; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text); font: 600 12.5px/1 var(--font); cursor: pointer; }

/* présentation et titres, sous l'en-tête de la fiche */
.story { display: grid; gap: 16px; padding: 24px 28px; margin-bottom: 20px; overflow: hidden; }
.story__text { position: relative; display: flex; gap: 14px; align-items: flex-start; }
.story__mark { flex: none; font: 700 54px/0.8 Georgia, "Times New Roman", serif; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.story__text p { margin: 0; font-size: 17px; line-height: 1.6; letter-spacing: -.005em; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.story__titres { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.story__titres li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--gold-line); background: var(--gold-soft); color: var(--gold-hi); font-size: 13px; font-weight: 600; }
.story__titres .ico { width: 15px; height: 15px; }

/* tailles de vêtements */
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sizes__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.sizes__item span { font-size: 13px; color: var(--text-2); }
.sizes__item b { font: 600 14px/1 var(--mono); color: var(--gold-hi); }
.sizes__item.is-empty b { color: var(--text-3); font-weight: 400; }

/* management : toutes les lignes séparées */
.dl--rows div:nth-child(n+2) { border-top: 1px solid var(--line); padding-top: 12px; }

/* liens externes */
.links { display: grid; }
.links--2 { grid-template-columns: 1fr 1fr; }
.links--2 .links__row:nth-child(2) { border-top: 0; }
.links--2 .links__row:nth-child(odd) { border-right: 1px solid var(--line); }
.links__row { display: flex; align-items: center; gap: 12px; padding: 13px 22px; border-top: 1px solid var(--line); color: var(--text); transition: background .15s; }
.links__row:first-child { border-top: 0; }
a.links__row:hover { background: var(--gold-soft); }
a.links__row:hover > .ico { color: var(--gold-hi); }
.links__row > .ico { width: 15px; height: 15px; color: var(--text-3); }
.links__ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--gold-soft); color: var(--gold); }
.links__ico .ico { width: 16px; height: 16px; }
.links__txt { flex: 1; display: grid; min-width: 0; }
.links__txt strong { font-size: 13.5px; font-weight: 600; }
.links__txt span { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links__row.is-empty { color: var(--text-3); }
.links__row.is-empty .links__ico { background: rgba(255,255,255,.03); color: var(--text-3); }
.links__row.is-empty .links__txt span { color: var(--text-3); }
.links--2 .links__row.links__row--wide { grid-column: 1 / -1; border-right: 0; }
/* musique d'entrée : la pochette de la vidéo YouTube, servie par le serveur (_app/youtube.php) */
.music { gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.music__cover { position: relative; flex: none; width: 148px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, rgba(191,159,111,.18), rgba(0,0,0,.4)); border: 1px solid var(--line-2); box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.music__cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.music__play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45)); }
.music__play .ico { width: 34px; height: 34px; padding: 9px 8px 9px 10px; border-radius: 50%; background: rgba(10,10,12,.72); color: var(--gold-hi); fill: currentColor; stroke-width: 0; border: 1px solid var(--gold-line); transition: transform .2s var(--ease), background .2s; }
a.music:hover .music__cover img { transform: scale(1.05); }
a.music:hover .music__play .ico { transform: scale(1.1); background: var(--gold); color: #111; }
.music__txt { flex: 1; display: grid; gap: 3px; min-width: 0; }
.music__label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.music__label .ico { width: 13px; height: 13px; }
.music__txt strong { font-size: 14.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.music__txt > span:last-child { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* pièces d'identité (documents chiffrés) */
.docrow { display: flex; align-items: center; gap: 8px; padding: 10px 14px 10px 22px; border-top: 1px solid var(--line); }
.docrow:first-of-type { border-top: 0; }
.docrow__main { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); }
.docrow__main:hover strong { color: var(--gold-hi); }
.docrow__ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--gold-soft); color: var(--gold); }
.docrow__ico .ico { width: 16px; height: 16px; }
.docrow__txt { display: grid; min-width: 0; }
.docrow__txt strong { font-size: 13.5px; font-weight: 600; transition: color .15s; }
.docrow__txt span { font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }
.docform { display: grid; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--line); }
.docform:first-of-type:not(.docrow ~ .docform) { border-top: 0; }

/* matchmaking : contrat signé de chaque coin */
.corner__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 3px; }
.corner--bleu .corner__tags { justify-content: flex-end; }
.corner__tags .medtag { margin-top: 0; }
.ctag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px dashed var(--line-3); background: transparent; color: var(--text-3); font: 600 11.5px/1 var(--font); white-space: nowrap; transition: color .2s, border-color .2s, background .2s; }
.ctag .ico { width: 13px; height: 13px; stroke-width: 2.2; }
button.ctag { cursor: pointer; }
button.ctag:hover, button.ctag:focus-visible { outline: none; color: var(--gold-hi); border-color: var(--gold-line); background: var(--gold-soft); }
.ctag.is-ok { border-style: solid; border-color: rgba(92,196,149,.35); background: var(--ok-soft); color: var(--ok); }
button.ctag.is-ok:hover, button.ctag.is-ok:focus-visible { color: var(--ok); border-color: rgba(92,196,149,.6); background: rgba(92,196,149,.18); }

@media (max-width: 900px) {
  .corner--bleu .corner__tags { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .coachlist--detail .coachlist__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px; }
  .coachlist--detail .coachlist__row input { grid-column: 1 / -1; }
  .sizes { grid-template-columns: 1fr 1fr; }
  .links--2 { grid-template-columns: 1fr; }
  .links--2 .links__row:nth-child(2) { border-top: 1px solid var(--line); }
  .links--2 .links__row:nth-child(odd) { border-right: 0; }
  .music__cover { width: 112px; }
  .story { padding: 20px; }
  .story__text p { font-size: 15.5px; }
}

/* ------------------------------------------------------------ habillage Servette FC (grenat et or de la charte du club)
   Les surfaces sont teintées grenat (variables --bg, --card…), l'or du club porte les accents, le grenat signe le menu. */
:root { --grenat: #7a303f; --grenat-hi: #9b4155; --grenat-lo: #471625; --grenat-soft: rgba(122, 48, 63, .24); }
body::before { background: linear-gradient(90deg, var(--grenat-lo) 0%, var(--grenat) 28%, var(--gold) 62%, var(--gold-hi) 78%, var(--grenat) 100%); }
.side { background: linear-gradient(180deg, #4a1727 0%, #2b0d17 34%, #17080d 100%); border-right-color: rgba(191, 159, 111, .14); }
.side::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(240px 200px at 20% 0%, rgba(191, 159, 111, .16), transparent 70%); }
.side > * { position: relative; }
.side__brand img { width: 38px; height: 38px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5)); }
.mbar__brand img { width: 30px; height: 30px; }
.side__link.is-active { background: linear-gradient(90deg, rgba(191, 159, 111, .16), rgba(191, 159, 111, .03)); }
.mod::before { content: none; }
@media (max-width: 860px) {
  body.bare--auth::after { background-image: none; -webkit-mask-image: none; mask-image: none; background: radial-gradient(120% 46% at 50% 0%, rgba(122, 48, 63, .55), transparent 70%); }
}
