:root {
  --navy: #182656;
  --navy-deep: #0c1638;
  --yellow: #e8b53c;
  --yellow-light: #f6d77f;
  --paper: #f5f4ef;
  --white: #fff;
  --reserve: #f1f1f1;
  --ink: #11182d;
  --muted: #6e7280;
  --line: #dcdedc;
  --green: #2b784f;
  --green-dark: #1d6342;
  --danger: #a53232;
  --shadow: 0 20px 55px rgba(19, 28, 51, .12);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(232,181,60,.55); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.eyebrow { margin: 0 0 7px; color: var(--yellow); font-family: "Oswald", sans-serif; font-size: .72rem; font-weight: 600; letter-spacing: .18em; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Oswald", sans-serif; font-size: .8rem; font-weight: 600; line-height: .92; letter-spacing: .06em; }
.brand-logo { display: block; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 3px 12px rgba(4,10,33,.18); }
.brand-logo--transparent { border-radius: 0; object-fit: contain; box-shadow: none; }
.brand--light { color: white; }
.brand--dark { color: var(--navy); }

.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(420px, .92fr) minmax(480px, 1.08fr); }
.auth-visual { position: relative; display: flex; overflow: hidden; flex-direction: column; padding: 42px clamp(38px, 5vw, 88px); color: white; background: radial-gradient(circle at 18% 86%, rgba(232,181,60,.16), transparent 25%), linear-gradient(145deg, #1b2b5f, #101b43 72%); }
.auth-visual::before { position: absolute; inset: 0; content: ""; opacity: .13; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E"); }
.auth-visual > * { position: relative; z-index: 1; }
.hero-copy { margin: auto 0; max-width: 630px; }
.hero-copy h1 { margin: 0; font-family: "Oswald", sans-serif; font-size: clamp(4.4rem, 8.2vw, 8.5rem); font-weight: 600; line-height: .86; letter-spacing: -.055em; text-transform: uppercase; }
.hero-copy h1 em { color: var(--yellow); font-style: normal; }
.hero-copy > p:last-child { max-width: 520px; margin: 32px 0 0; color: rgba(255,255,255,.72); font-size: clamp(1rem, 1.35vw, 1.23rem); line-height: 1.55; }
.visual-foot { margin: 0; color: rgba(255,255,255,.45); font-size: .77rem; letter-spacing: .08em; text-transform: uppercase; }
.auth-pitch-lines { position: absolute; z-index: 0; right: -110px; bottom: -160px; width: 560px; height: 560px; border: 2px solid rgba(255,255,255,.07); border-radius: 50%; }
.auth-pitch-lines::before { position: absolute; top: 50%; left: -180px; width: 740px; height: 1px; content: ""; background: rgba(255,255,255,.07); }
.auth-pitch-lines span { position: absolute; top: 135px; right: 0; width: 240px; height: 290px; border: 2px solid rgba(255,255,255,.07); }
.auth-pitch-lines i { position: absolute; top: 44%; left: 44%; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.12); }
.auth-panel { display: grid; min-height: 100%; padding: 48px clamp(34px, 7vw, 110px); place-items: center; background: #fafaf7; }
.auth-card { width: min(100%, 460px); }
.auth-brand { display: none; margin-bottom: 38px; }
.auth-tabs { display: grid; margin-bottom: 54px; border-bottom: 1px solid var(--line); grid-template-columns: 1fr 1fr; }
.auth-tab { position: relative; padding: 16px 4px; border: 0; color: #8b8d94; background: transparent; font-size: .84rem; font-weight: 700; cursor: pointer; }
.auth-tab::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; content: ""; background: transparent; }
.auth-tab.is-active { color: var(--navy); }
.auth-tab.is-active::after { background: var(--navy); }
.auth-heading h2 { margin: 0 0 10px; font-family: "Oswald", sans-serif; font-size: clamp(2.2rem, 4vw, 3.35rem); line-height: 1.03; letter-spacing: -.035em; text-transform: uppercase; }
.auth-heading > p:last-child { margin: 0 0 34px; color: var(--muted); line-height: 1.55; }
label { display: block; color: #4f5360; font-size: .78rem; font-weight: 700; }
input { width: 100%; margin: 8px 0 19px; padding: 14px 16px; border: 1px solid #d5d7da; border-radius: 3px; color: var(--ink); background: white; font-size: .96rem; transition: border .2s, box-shadow .2s; }
input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(24,38,86,.08); }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 12px; padding: 0 18px; border: 1px solid transparent; border-radius: 3px; font-size: .78rem; font-weight: 700; cursor: pointer; transition: transform .16s, background .16s, border .16s; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button--primary { color: white; background: var(--navy); }
.button--primary:hover { background: #223574; }
.button--ghost { border-color: #d3d5d9; color: var(--navy); background: transparent; }
.button--ghost:hover { border-color: var(--navy); }
.button--wide { width: 100%; justify-content: space-between; padding-inline: 19px; }
.form-error { min-height: 20px; margin: 10px 0 0; color: var(--danger); font-size: .8rem; }
.auth-note { margin: 28px 0 0; color: #989aa1; font-size: .72rem; text-align: center; }
.auth-note a, .legal-check a, .account-legal a { color: var(--navy); }
.legal-check { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 20px; color: #696c74; font-size: .72rem; font-weight: 500; line-height: 1.45; }
.legal-check input { width: 17px; height: 17px; flex: 0 0 17px; margin: 1px 0 0; accent-color: var(--navy); }

/* Landing CFC */
.auth-shell { grid-template-columns: minmax(570px, 1.25fr) minmax(430px, .75fr); background: var(--navy-deep); }
.auth-visual { isolation: isolate; min-height: 100dvh; padding: 34px clamp(34px, 4vw, 72px); background: radial-gradient(circle at 79% 20%, rgba(232,181,60,.22), transparent 28%), linear-gradient(137deg, #07102f 0%, #101e4e 57%, #182656 100%); }
.auth-visual::after { position: absolute; z-index: -2; right: -9%; bottom: -27%; width: 64%; aspect-ratio: 1; border: 110px solid rgba(232,181,60,.075); border-radius: 50%; content: ""; }
.auth-visual-head { display: flex; align-items: center; justify-content: space-between; }
.auth-visual .brand-logo { width: 58px; height: 58px; }
.club-chip { padding: 8px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: rgba(255,255,255,.7); font-size: .62rem; font-weight: 700; letter-spacing: .14em; }
.auth-crest { position: absolute; z-index: -1; top: 4%; right: -3%; width: min(48vw, 650px); opacity: .055; filter: grayscale(1); transform: rotate(8deg); }
.auth-visual .hero-copy { width: min(64%, 690px); margin: auto 0 16%; }
.auth-visual .hero-copy h1 { font-size: clamp(3.5rem, 5.8vw, 6.7rem); text-wrap: initial; }
.auth-visual .hero-copy h1 span,
.auth-visual .hero-copy h1 em { display: block; white-space: nowrap; }
.auth-visual .hero-copy h1 em { margin-top: .08em; }
.auth-visual .hero-copy > p:last-child { max-width: 580px; margin-top: 24px; }
.auth-kits { position: absolute; z-index: 2; right: clamp(-100px, -5vw, -35px); bottom: -5%; width: min(48%, 560px); height: 72%; pointer-events: none; }
.auth-kit { position: absolute; bottom: 0; width: 68%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 34px 28px rgba(0,0,0,.28)); }
.auth-kit--navy { z-index: 2; right: 29%; transform: rotate(-6deg); }
.auth-kit--yellow { right: -2%; bottom: -7%; opacity: .92; transform: rotate(8deg) scale(.88); }
.auth-visual .auth-pitch-lines { right: -190px; bottom: -245px; width: 720px; height: 720px; }
.auth-panel { position: relative; padding: 54px clamp(34px, 5vw, 82px); background: linear-gradient(145deg, #fff 0%, #f7f5ed 100%); }
.auth-panel::before { position: absolute; top: 0; right: 0; left: 0; height: 7px; content: ""; background: linear-gradient(90deg, var(--yellow) 0 32%, var(--navy) 32% 100%); }
.auth-card { width: min(100%, 430px); }
.auth-tabs { margin-bottom: 42px; }
.auth-heading h2 { color: var(--navy); }

/* Navigation du hub */
.topbar { height: 82px; grid-template-columns: 220px minmax(410px, 1fr) auto; }
.brand-button { padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.brand-button .brand-logo { width: 52px; height: 52px; }
.topbar-nav { display: flex; height: 100%; align-items: stretch; justify-content: center; gap: 2px; }
.nav-tab { position: relative; min-width: 84px; padding: 0 15px; border: 0; color: #757987; background: transparent; font-size: .72rem; font-weight: 700; cursor: pointer; }
.nav-tab::after { position: absolute; right: 14px; bottom: 0; left: 14px; height: 3px; content: ""; background: transparent; }
.nav-tab:hover, .nav-tab.is-active { color: var(--navy); }
.nav-tab.is-active::after { background: var(--yellow); }
.nav-tab small { display: block; margin-top: 3px; color: #a2a4aa; font-size: .48rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* Hub */
.hub-view { padding: 22px; }
.hub-hero { position: relative; display: grid; overflow: hidden; min-height: 520px; border-radius: 8px; color: white; background: radial-gradient(circle at 76% 40%, rgba(232,181,60,.22), transparent 30%), linear-gradient(125deg, #0a1436 0%, #182656 68%, #21336d 100%); grid-template-columns: minmax(430px, .9fr) minmax(420px, 1.1fr); box-shadow: 0 22px 65px rgba(12,22,56,.18); }
.hub-hero::before { position: absolute; top: 0; right: 0; width: 38%; height: 9px; content: ""; background: var(--yellow); }
.hub-hero-copy { z-index: 3; display: flex; max-width: 720px; flex-direction: column; justify-content: center; padding: clamp(48px, 7vw, 105px); padding-right: 20px; }
.hub-hero-copy h1 { margin: 0; font-family: "Oswald", sans-serif; font-size: clamp(3.7rem, 6vw, 6.7rem); font-weight: 600; line-height: .9; letter-spacing: -.045em; text-transform: uppercase; }
.hub-hero-copy h1 em { color: var(--yellow); font-style: normal; }
.hub-hero-copy > p:not(.eyebrow) { max-width: 560px; margin: 26px 0 0; color: rgba(255,255,255,.72); font-size: 1rem; line-height: 1.6; }
.hub-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.button--yellow { min-height: 48px; color: var(--navy-deep); background: var(--yellow); }
.button--yellow:hover { background: #f2c553; }
.button--outline-light { min-height: 48px; border-color: rgba(255,255,255,.4); color: white; background: transparent; }
.button--outline-light:hover { border-color: white; background: rgba(255,255,255,.06); }
.hub-kit-stage { position: relative; overflow: hidden; min-height: 500px; }
.hub-watermark { position: absolute; top: 50%; left: 52%; width: 76%; opacity: .1; transform: translate(-50%,-50%); }
.hub-kit { position: absolute; bottom: -16%; width: min(61%, 440px); max-height: 116%; object-fit: contain; filter: drop-shadow(0 30px 28px rgba(0,0,0,.3)); }
.hub-kit--navy { z-index: 2; left: 1%; transform: rotate(-7deg); }
.hub-kit--yellow { right: -5%; bottom: -25%; opacity: .94; transform: rotate(8deg) scale(.92); }
.hub-destinations { max-width: 1420px; margin: 0 auto; padding: 64px 18px 74px; }
.hub-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.hub-section-heading h2 { margin: 0; color: var(--navy); font-family: "Oswald", sans-serif; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1; text-transform: uppercase; }
.hub-section-heading > p { max-width: 380px; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; text-align: right; }
.hub-card-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.hub-card { position: relative; display: flex; min-height: 310px; flex-direction: column; align-items: flex-start; padding: 26px; overflow: hidden; border: 1px solid #d9dbd9; border-radius: 6px; color: var(--ink); background: rgba(255,255,255,.78); text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.hub-card:hover { border-color: #b8bdc7; box-shadow: 0 15px 35px rgba(18,28,57,.09); transform: translateY(-3px); }
.hub-card--live { color: white; border-color: var(--navy); background: var(--navy); }
.hub-card--live:hover { border-color: #2a3d7a; box-shadow: 0 18px 42px rgba(24,38,86,.2); }
.hub-card-number { color: #a2a5ac; font-family: "Oswald", sans-serif; font-size: .75rem; letter-spacing: .08em; }
.hub-card--live .hub-card-number { color: rgba(255,255,255,.48); }
.hub-card-status { position: absolute; top: 24px; right: 24px; padding: 5px 8px; border-radius: 20px; color: #898c94; background: #eeefed; font-size: .5rem; font-weight: 800; letter-spacing: .1em; }
.hub-card--live .hub-card-status { color: var(--navy); background: var(--yellow); }
.hub-card-icon { display: grid; width: 54px; height: 54px; margin: 42px 0 22px; place-items: center; border: 1px solid #d8dadb; border-radius: 50%; color: var(--navy); background: white; }
.hub-card-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.hub-card strong { display: block; color: var(--navy); font-family: "Oswald", sans-serif; font-size: 1.65rem; text-transform: uppercase; }
.hub-card--live strong { color: white; }
.hub-card > span:not(.hub-card-number):not(.hub-card-status):not(.hub-card-icon) { max-width: 310px; margin-top: 8px; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.hub-card--live > span:not(.hub-card-number):not(.hub-card-status):not(.hub-card-icon) { color: rgba(255,255,255,.64); }
.hub-card i { margin-top: auto; padding-top: 22px; color: var(--navy); font-size: .68rem; font-style: normal; font-weight: 800; }
.hub-card--live i { color: var(--yellow); }

/* Pages en préparation */
.placeholder-view { display: grid; min-height: calc(100vh - 82px); padding: 34px; place-items: center; }
.placeholder-card { display: grid; overflow: hidden; width: min(980px, 100%); min-height: 520px; border-radius: 8px; color: white; background: linear-gradient(130deg, #0a1436, #182656); grid-template-columns: .8fr 1.2fr; box-shadow: var(--shadow); }
.placeholder-card--yellow { color: var(--navy-deep); background: linear-gradient(135deg, #f9e4a6, var(--yellow)); }
.placeholder-card img { align-self: end; width: 100%; max-height: 500px; object-fit: contain; filter: drop-shadow(0 25px 24px rgba(0,0,0,.23)); transform: translateY(8%); }
.placeholder-card > div { display: flex; flex-direction: column; justify-content: center; padding: 55px; }
.placeholder-card h1 { margin: 0; font-family: "Oswald", sans-serif; font-size: clamp(3.5rem, 7vw, 6.5rem); line-height: .9; text-transform: uppercase; }
.placeholder-card p:not(.eyebrow) { max-width: 470px; margin: 24px 0 32px; color: rgba(255,255,255,.68); line-height: 1.6; }
.placeholder-card--yellow p:not(.eyebrow) { color: rgba(12,22,56,.7); }
.placeholder-card .button { align-self: flex-start; }

/* Tchat du club */
.chat-view { display: grid; min-height: calc(100vh - 82px); padding: 22px; place-items: center; background: radial-gradient(circle at 12% 8%, rgba(232,181,60,.12), transparent 24%), #efefeb; }
.chat-shell { display: grid; overflow: hidden; width: min(1040px, 100%); height: calc(100dvh - 126px); min-height: 560px; border: 1px solid #d8dad8; border-radius: 8px; background: #f9f9f6; box-shadow: var(--shadow); grid-template-rows: auto minmax(0,1fr) auto; }
.chat-header { display: grid; align-items: center; padding: 22px 26px; gap: 16px; border-bottom: 1px solid #dedfdb; background: white; grid-template-columns: 58px 1fr auto; }
.chat-header-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; color: var(--yellow); background: var(--navy); }
.chat-header-icon svg { width: 27px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.chat-header .eyebrow { margin-bottom: 3px; }
.chat-header h1 { margin: 0; color: var(--navy); font-family: "Oswald", sans-serif; font-size: 2.25rem; line-height: 1; text-transform: uppercase; }
.chat-header p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: .76rem; }
.chat-live { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 20px; color: #256c48; background: #e5f3ea; font-size: .55rem; font-weight: 800; letter-spacing: .09em; }
.chat-live i { width: 7px; height: 7px; border-radius: 50%; background: #35a46b; box-shadow: 0 0 0 4px rgba(53,164,107,.12); }
.chat-messages { display: flex; min-height: 0; flex-direction: column; overflow-y: auto; padding: 24px 28px; gap: 15px; background: linear-gradient(rgba(255,255,255,.36), rgba(255,255,255,.36)), radial-gradient(circle at 85% 15%, rgba(24,38,86,.055), transparent 28%); scrollbar-width: thin; scrollbar-color: #c7c9c7 transparent; }
.chat-empty { display: grid; min-height: 100%; place-content: center; color: var(--muted); text-align: center; }
.chat-empty strong { color: var(--navy); font-family: "Oswald", sans-serif; font-size: 1.4rem; text-transform: uppercase; }
.chat-empty span { margin-top: 5px; font-size: .75rem; }
.chat-message { display: flex; max-width: min(76%, 720px); align-items: flex-end; align-self: flex-start; gap: 10px; }
.chat-message.is-mine { flex-direction: row-reverse; align-self: flex-end; }
.chat-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; color: var(--yellow); background: var(--navy); font-family: "Oswald", sans-serif; font-size: .95rem; box-shadow: 0 4px 12px rgba(18,28,58,.14); }
.chat-message.is-mine .chat-avatar { color: var(--navy); background: var(--yellow); }
.chat-message-body { min-width: 0; padding: 11px 14px; border: 1px solid #dcddda; border-radius: 12px 12px 12px 3px; background: white; box-shadow: 0 5px 16px rgba(18,26,48,.055); }
.chat-message.is-mine .chat-message-body { border-color: var(--navy); border-radius: 12px 12px 3px 12px; color: white; background: var(--navy); }
.chat-message-meta { display: flex; align-items: baseline; margin-bottom: 4px; gap: 9px; }
.chat-message-meta strong { color: var(--navy); font-size: .72rem; }
.chat-message.is-mine .chat-message-meta strong { color: var(--yellow); }
.chat-message-meta time { color: #999ba1; font-size: .58rem; }
.chat-message.is-mine .chat-message-meta time { color: rgba(255,255,255,.52); }
.chat-message-body p { margin: 0; overflow-wrap: anywhere; font-size: .82rem; line-height: 1.5; white-space: pre-wrap; }
.chat-composer { padding: 15px 18px 12px; border-top: 1px solid #dedfdb; background: white; }
.chat-composer textarea { display: block; width: 100%; min-height: 48px; max-height: 132px; padding: 13px 15px; resize: none; overflow-y: auto; border: 1px solid #d5d7d6; border-radius: 5px; color: var(--ink); background: #fafaf8; line-height: 1.45; }
.chat-composer textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(24,38,86,.08); }
.chat-composer-footer { display: grid; align-items: center; margin-top: 9px; gap: 12px; grid-template-columns: 1fr auto auto; }
.chat-composer-footer > span { color: #989aa0; font-size: .62rem; }
.chat-composer-footer kbd { padding: 2px 5px; border: 1px solid #d8d9d8; border-bottom-width: 2px; border-radius: 3px; color: #696c75; background: #f5f5f2; font-family: inherit; font-size: .58rem; }
.chat-send { min-height: 40px; }
.chat-send svg { width: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.chat-composer .form-error { min-height: 0; margin: 7px 0 0; }

.app-shell { min-height: 100vh; }
.topbar { position: sticky; z-index: 20; top: 0; display: grid; align-items: center; padding: 0 28px; border-bottom: 1px solid #dbddd9; background: rgba(250,250,247,.95); backdrop-filter: blur(14px); }
.topbar-center { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .78rem; }
.topbar-center strong { color: var(--ink); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #3fa76d; box-shadow: 0 0 0 4px rgba(63,167,109,.12); }
.topbar-actions { display: flex; justify-content: flex-end; gap: 8px; }
.icon-button { display: inline-flex; height: 40px; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid #d7d9d9; border-radius: 3px; color: var(--navy); background: white; font-size: .75rem; font-weight: 700; cursor: pointer; }
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.saved-trigger b { display: grid; min-width: 19px; height: 19px; place-items: center; border-radius: 10px; color: white; background: var(--navy); font-size: .65rem; }

.workspace { display: grid; min-height: calc(100vh - 82px); padding: 20px; gap: 20px; grid-template-columns: 310px minmax(560px, 1fr); }
.panel { border: 1px solid #dcddd9; border-radius: 5px; background: rgba(255,255,255,.72); box-shadow: 0 5px 18px rgba(25,33,55,.035); }
.squad-panel { display: flex; max-height: calc(100vh - 114px); flex-direction: column; padding: 22px 16px 15px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; padding: 0 5px; }
.panel-heading h2 { margin: 0; font-family: "Oswald", sans-serif; font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
.player-count { display: grid; min-width: 51px; height: 36px; place-items: center; border: 1px solid #d7d9d8; border-radius: 2px; color: var(--muted); font-family: "Oswald", sans-serif; font-size: .8rem; }
.player-count strong { color: var(--navy); }
.panel-help { margin: 15px 5px 13px; color: #7a7d83; font-size: .7rem; line-height: 1.45; }
.legend { display: flex; flex-wrap: wrap; gap: 7px 11px; margin: 0 5px 14px; color: #797c83; font-size: .64rem; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-dot--starter { background: var(--navy); }.legend-dot--bench { background: var(--yellow); }.legend-dot--reserve { border: 1px solid #b7b9bd; background: var(--reserve); }
.roster { overflow-y: auto; padding-right: 3px; scrollbar-width: thin; scrollbar-color: #c7c8c6 transparent; }
.player-row { display: grid; min-height: 47px; align-items: center; margin-bottom: 6px; padding: 0 8px 0 11px; border: 1px solid rgba(10,20,45,.08); border-radius: 3px; color: var(--ink); background: var(--yellow); cursor: pointer; grid-template-columns: 27px 1fr auto; transition: transform .15s, box-shadow .15s; }
.player-row:hover { transform: translateX(2px); box-shadow: 0 3px 9px rgba(23,30,47,.1); }
.player-row.is-starter { border-color: var(--navy); color: white; background: var(--navy); }
.player-row.is-reserve { order: 2; border-color: #dedede; color: #898b90; background: var(--reserve); }
.player-row.is-selected { outline: 3px solid rgba(232,181,60,.38); outline-offset: 1px; }
.player-index { color: rgba(16,24,45,.52); font-family: "Oswald", sans-serif; font-size: .72rem; }
.is-starter .player-index { color: rgba(255,255,255,.55); }
.player-name { overflow: hidden; font-size: .78rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.player-meta { display: block; margin-top: 2px; color: inherit; font-size: .58rem; font-weight: 500; opacity: .58; }
.reserve-button { display: grid; width: 29px; height: 29px; padding: 0; place-items: center; border: 0; border-radius: 2px; color: inherit; background: rgba(255,255,255,.25); cursor: pointer; opacity: .7; }
.reserve-button:hover { opacity: 1; background: rgba(255,255,255,.45); }
.reserve-button svg { width: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.is-starter .reserve-button { background: rgba(255,255,255,.1); }

.builder { min-width: 0; }
.builder-toolbar { display: grid; min-height: 83px; align-items: center; margin-bottom: 16px; padding: 12px 16px 12px 20px; gap: 18px; grid-template-columns: minmax(190px, 260px) 1px minmax(180px, 1fr) auto; }
.formation-control .eyebrow { margin-bottom: 3px; color: #8c8e93; }
.select-wrap { position: relative; }
.select-wrap select { width: 100%; padding: 5px 28px 5px 0; border: 0; color: var(--navy); background: transparent; font-family: "Oswald", sans-serif; font-size: 1.45rem; font-weight: 600; text-transform: uppercase; appearance: none; cursor: pointer; }
.select-wrap svg { position: absolute; top: 10px; right: 3px; width: 16px; fill: none; stroke: var(--navy); stroke-width: 2; pointer-events: none; }
.toolbar-divider { width: 1px; height: 38px; background: #dddedb; }
.formation-note span { display: inline-block; padding: 3px 6px; color: var(--navy); background: #e8ebf2; font-size: .55rem; font-weight: 800; letter-spacing: .08em; }
.formation-note p { margin: 6px 0 0; color: #74777f; font-size: .68rem; }
.toolbar-actions { display: flex; gap: 8px; }
.pitch-wrap { display: grid; min-height: calc(100vh - 193px); place-items: center; }
.pitch { position: relative; overflow: hidden; width: min(100%, calc((100vh - 210px) * .75)); min-width: 520px; aspect-ratio: 3/4; border: 5px solid #f7f7ef; background: var(--green); box-shadow: var(--shadow); }
.pitch-texture { position: absolute; inset: 0; opacity: .62; background: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 12.5%, rgba(0,0,0,.025) 12.5%, rgba(0,0,0,.025) 25%), radial-gradient(circle at 50% 60%, rgba(255,255,255,.05), transparent 52%); }
.pitch::after { position: absolute; inset: 0; content: ""; pointer-events: none; box-shadow: inset 0 0 55px rgba(5,40,22,.22); }
.pitch-markings { position: absolute; z-index: 1; inset: 4.5%; border: 2px solid rgba(255,255,255,.62); pointer-events: none; }
.pitch-markings .line { position: absolute; right: 0; left: 0; top: 50%; border-top: 2px solid rgba(255,255,255,.62); }
.pitch-markings .circle { position: absolute; top: 50%; left: 50%; width: 23%; aspect-ratio: 1; border: 2px solid rgba(255,255,255,.62); border-radius: 50%; transform: translate(-50%,-50%); }
.pitch-markings .center-dot, .pitch-markings .spot { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.72); }
.pitch-markings .center-dot { top: 50%; left: 50%; transform: translate(-50%,-50%); }
.pitch-markings .box { position: absolute; left: 20%; width: 60%; height: 16%; border: 2px solid rgba(255,255,255,.62); }
.pitch-markings .box--top { top: -2px; border-top: 0; }.pitch-markings .box--bottom { bottom: -2px; border-bottom: 0; }
.pitch-markings .goalbox { position: absolute; left: 36%; width: 28%; height: 6%; border: 2px solid rgba(255,255,255,.62); }
.pitch-markings .goalbox--top { top: -2px; border-top: 0; }.pitch-markings .goalbox--bottom { bottom: -2px; border-bottom: 0; }
.pitch-markings .spot { left: 50%; transform: translateX(-50%); }.pitch-markings .spot--top { top: 11%; }.pitch-markings .spot--bottom { bottom: 11%; }
.pitch-markings .arc { position: absolute; left: 41%; width: 18%; height: 7%; border: 2px solid rgba(255,255,255,.62); border-radius: 0 0 100px 100px; }
.pitch-markings .arc--top { top: 16%; border-top: 0; }.pitch-markings .arc--bottom { bottom: 16%; border-bottom: 0; border-radius: 100px 100px 0 0; }
.slots { position: absolute; z-index: 3; inset: 0; }
.player-slot { position: absolute; display: flex; width: 82px; flex-direction: column; align-items: center; border: 0; color: white; background: transparent; cursor: grab; touch-action: none; user-select: none; transform: translate(-50%,-50%); transition: top .35s ease, left .35s ease, filter .2s, transform .2s; }
.player-slot:hover { z-index: 4; filter: drop-shadow(0 8px 8px rgba(5,25,14,.28)); transform: translate(-50%,-52%) scale(1.04); }
.player-slot:active { cursor: grabbing; }
.player-slot.is-dragging { z-index: 8; opacity: .78; }
.player-slot.is-dragover .jersey-wrap { filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 5px var(--yellow)); transform: scale(1.14); }
.player-slot.is-selected .jersey-wrap { filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 4px var(--yellow)); transform: scale(1.08); }
.jersey-wrap { position: relative; width: 58px; height: 67px; transition: filter .2s, transform .2s; }
.jersey-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 4px rgba(2,23,12,.32)); }
.slot-empty { position: absolute; right: 7px; bottom: 6px; display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; color: var(--navy); background: white; font-size: .8rem; font-weight: 800; box-shadow: 0 2px 5px rgba(0,0,0,.2); }
.slot-name { max-width: 104px; margin-top: 1px; padding: 4px 8px; overflow: hidden; border-radius: 2px; color: white; background: rgba(10,28,21,.78); font-size: .66rem; font-weight: 700; line-height: 1; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(5px); }
.slot-name.is-empty { color: rgba(255,255,255,.78); border: 1px dashed rgba(255,255,255,.45); background: rgba(0,0,0,.18); }
.mobile-tip { display: none; }

.drawer-shell, .modal-shell { position: fixed; z-index: 50; inset: 0; }
.drawer-backdrop, .modal-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(9,14,31,.48); backdrop-filter: blur(3px); }
.drawer { position: absolute; top: 0; right: 0; display: flex; width: min(440px, 92vw); height: 100%; flex-direction: column; padding: 30px 24px; background: #fbfbf8; box-shadow: -20px 0 60px rgba(8,15,35,.18); animation: slideIn .25s ease both; }
.drawer--wide { width: min(590px, 94vw); }
@keyframes slideIn { from { transform: translateX(100%); } }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 0; font-family: "Oswald", sans-serif; font-size: 2rem; text-transform: uppercase; }
.drawer-close, .modal-close { display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid #d5d6d5; border-radius: 50%; color: var(--navy); background: white; font-size: 1.5rem; cursor: pointer; }
.saved-list { overflow-y: auto; padding: 18px 1px; }
.community-intro { margin: 18px 0 5px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.community-list { overflow-y: auto; padding: 14px 2px 30px; }
.locker-group { margin-bottom: 20px; padding: 15px; border: 1px solid #dedfdd; border-radius: 5px; background: #f2f2ee; }
.locker-group > header { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.locker-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; color: var(--yellow); background: var(--navy); font-family: "Oswald", sans-serif; font-size: 1rem; }
.locker-group h3 { margin: 0 0 2px; font-family: "Oswald", sans-serif; font-size: 1rem; text-transform: uppercase; }
.locker-group h3 small { margin-left: 5px; padding: 2px 5px; color: var(--navy); background: #dfe3ee; font-family: "DM Sans", sans-serif; font-size: .52rem; letter-spacing: .05em; vertical-align: 2px; }
.locker-group header p { margin: 0; color: var(--muted); font-size: .63rem; }
.community-card { display: grid; align-items: center; margin-top: 7px; padding: 12px 10px 12px 13px; border: 1px solid #e0e1df; border-radius: 3px; background: white; grid-template-columns: 1fr auto; }
.community-card h4 { margin: 0 0 3px; font-size: .8rem; }
.community-card p { margin: 0; color: var(--muted); font-size: .63rem; }
.community-card button { height: 32px; padding: 0 11px; border: 1px solid var(--navy); border-radius: 2px; color: white; background: var(--navy); font-size: .65rem; font-weight: 700; cursor: pointer; }
.saved-card { display: grid; align-items: center; margin-bottom: 10px; padding: 14px; border: 1px solid #dedfdd; border-radius: 4px; background: white; grid-template-columns: 1fr auto; }
.saved-card h3 { margin: 0 0 4px; font-size: .9rem; }
.saved-card p { margin: 0; color: var(--muted); font-size: .67rem; }
.saved-card-actions { display: flex; gap: 5px; }
.saved-card button { height: 32px; padding: 0 10px; border: 1px solid #d8d9d8; border-radius: 2px; color: var(--navy); background: white; font-size: .65rem; font-weight: 700; cursor: pointer; }
.saved-card button[data-delete] { color: var(--danger); }
.empty-state { padding: 80px 20px; color: var(--muted); text-align: center; }
.empty-state strong { display: block; margin-bottom: 7px; color: var(--navy); font-family: "Oswald", sans-serif; font-size: 1.3rem; text-transform: uppercase; }
.modal { position: absolute; top: 50%; left: 50%; width: min(480px, calc(100vw - 30px)); padding: 34px; border-radius: 5px; background: white; box-shadow: var(--shadow); transform: translate(-50%,-50%); }
.modal-close { position: absolute; top: 17px; right: 17px; }
.modal h2 { margin: 0 45px 9px 0; font-family: "Oswald", sans-serif; font-size: 2rem; text-transform: uppercase; }
.modal > p:not(.eyebrow) { margin: 0 0 25px; color: var(--muted); font-size: .83rem; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.account-content { overflow-y: auto; padding: 22px 2px 40px; }
.account-content section { padding-bottom: 26px; }
.account-content h3 { margin: 0 0 7px; color: var(--navy); font-family: "Oswald", sans-serif; font-size: 1.25rem; text-transform: uppercase; }
.account-content section > p { margin: 0 0 20px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.danger-zone { margin-top: 8px; padding: 22px !important; border: 1px solid #efd1d1; border-radius: 4px; background: #fff7f7; }
.danger-zone h3 { color: var(--danger); }
.button--danger { color: white; background: var(--danger); }
.account-legal { margin: 24px 0 0; font-size: .72rem; text-align: center; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 30px)); padding: 13px 17px; border-radius: 3px; color: white; background: var(--navy-deep); box-shadow: 0 12px 40px rgba(9,17,42,.22); font-size: .78rem; font-weight: 600; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .22s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1020px) {
  .topbar { padding-inline: 18px; grid-template-columns: 175px minmax(360px,1fr) auto; }
  .brand-button .brand-logo { width: 45px; height: 45px; }
  .nav-tab { min-width: 72px; padding-inline: 9px; }
  .topbar-actions .icon-button span { display: none; }
  .hub-hero { grid-template-columns: minmax(380px,.9fr) minmax(330px,1.1fr); }
  .hub-hero-copy { padding: 58px 20px 58px 54px; }
  .hub-card { min-height: 290px; }
  .workspace { grid-template-columns: 270px minmax(500px, 1fr); }
  .builder-toolbar { grid-template-columns: minmax(170px, 220px) 1fr auto; }
  .toolbar-divider, .formation-note { display: none; }
  .pitch { min-width: 480px; }
}

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: flex; min-height: 440px; padding: 24px; }
  .auth-visual .brand-logo { width: 48px; height: 48px; }
  .auth-visual .hero-copy { width: 62%; margin: 72px 0 40px; }
  .auth-visual .hero-copy h1 { font-size: clamp(3.2rem, 10vw, 5rem); }
  .auth-visual .hero-copy > p:last-child { margin-top: 16px; font-size: .88rem; }
  .auth-kits { right: -34px; bottom: -7%; width: 48%; height: 75%; }
  .auth-kit { width: 82%; }
  .auth-kit--navy { right: 18%; }
  .auth-kit--yellow { right: -20%; }
  .auth-crest { width: 65%; }
  .visual-foot { display: none; }
  .auth-panel { padding: 36px 24px; }
  .auth-brand { display: none; }
  .topbar { min-height: 116px; padding: 8px 12px 0; gap: 4px 10px; grid-template-areas: "brand actions" "nav nav"; grid-template-columns: 1fr auto; grid-template-rows: 56px 48px; }
  .topbar .brand-button { grid-area: brand; }
  .topbar-nav { grid-area: nav; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .topbar-nav::-webkit-scrollbar { display: none; }
  .topbar-actions { grid-area: actions; }
  .topbar-center { display: none; }
  .topbar .brand-logo { width: 39px; height: 39px; }
  .nav-tab { min-width: 90px; flex: 1 0 auto; }
  .hub-view { padding: 10px; }
  .hub-hero { min-height: 720px; grid-template-columns: 1fr; grid-template-rows: auto 310px; }
  .hub-hero-copy { padding: 52px 32px 10px; }
  .hub-hero-copy h1 { font-size: clamp(3.4rem, 11vw, 5.4rem); }
  .hub-kit-stage { min-height: 310px; }
  .hub-kit { bottom: -31%; width: min(55%,350px); }
  .hub-kit--navy { left: 10%; }
  .hub-kit--yellow { right: 4%; bottom: -39%; }
  .hub-destinations { padding: 46px 6px 60px; }
  .hub-section-heading { display: block; }
  .hub-section-heading > p { margin-top: 12px; text-align: left; }
  .hub-card-grid { grid-template-columns: 1fr; }
  .hub-card { min-height: 270px; }
  .placeholder-view { min-height: calc(100vh - 116px); padding: 14px; }
  .placeholder-card { min-height: 650px; grid-template-columns: 1fr; grid-template-rows: 280px auto; }
  .placeholder-card img { justify-self: center; width: min(78%,330px); max-height: 340px; }
  .placeholder-card > div { padding: 30px; }
  .chat-view { min-height: calc(100vh - 116px); padding: 10px; }
  .chat-shell { height: calc(100dvh - 136px); min-height: 500px; }
  .chat-header { padding: 17px 18px; gap: 12px; grid-template-columns: 46px 1fr auto; }
  .chat-header-icon { width: 46px; height: 46px; }
  .chat-header-icon svg { width: 22px; }
  .chat-header h1 { font-size: 1.75rem; }
  .chat-header p:not(.eyebrow) { display: none; }
  .chat-messages { padding: 18px; }
  .chat-message { max-width: 88%; }
  .chat-composer-footer > span:first-child { display: none; }
  .workspace { display: flex; min-height: auto; flex-direction: column-reverse; padding: 10px; gap: 10px; }
  .builder-toolbar { position: sticky; z-index: 15; top: 116px; min-height: 70px; margin-bottom: 10px; padding: 8px 10px 8px 14px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); grid-template-columns: minmax(130px,1fr) auto; }
  .formation-control .eyebrow { display: none; }
  .select-wrap select { font-size: 1.2rem; }
  .toolbar-actions .button--ghost { display: none; }
  .toolbar-actions .button { min-height: 40px; padding-inline: 13px; }
  .pitch-wrap { min-height: 0; }
  .pitch { width: 100%; min-width: 0; max-height: none; aspect-ratio: 3/4; }
  .player-slot { width: 70px; }
  .jersey-wrap { width: 49px; height: 57px; }
  .slot-name { max-width: 84px; padding: 3px 6px; font-size: .59rem; }
  .squad-panel { max-height: none; padding: 18px 12px 12px; }
  .roster { display: grid; overflow: visible; gap: 6px; padding: 0; grid-template-columns: 1fr 1fr; }
  .player-row { min-width: 0; margin: 0; }
  .panel-help { margin-bottom: 11px; }
  .mobile-tip { display: block; margin: 9px 3px 0; color: #74777e; font-size: .68rem; text-align: center; }
  .mobile-tip span { color: var(--navy); font-weight: 800; text-transform: uppercase; }
}

/* Les petits écrans d'ordinateur conservent les deux panneaux côte à côte. */
@media (min-width: 681px) and (max-width: 1020px) {
  .auth-shell { height: 100dvh; min-height: 0; overflow: hidden; grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr); }
  .auth-visual { height: 100dvh; min-height: 0; padding: 26px 28px; }
  .auth-visual .brand-logo { width: 48px; height: 48px; }
  .club-chip { display: none; }
  .auth-visual .hero-copy { width: 76%; margin: auto 0 22%; }
  .auth-visual .hero-copy h1 { font-size: clamp(3rem, 5.2vw, 3.6rem); }
  .auth-visual .hero-copy > p:last-child { display: none; }
  .auth-kits { right: -22px; bottom: -5%; width: 38%; height: 58%; }
  .auth-kit { width: 100%; }
  .auth-kit--navy { right: 0; }
  .auth-kit--yellow { display: none; }
  .auth-crest { top: 9%; right: -24%; width: 88%; }
  .visual-foot { display: none; }
  .auth-panel { height: 100dvh; min-height: 0; overflow-y: auto; padding: 30px 24px; }
  .auth-card { width: min(100%, 360px); }
  .auth-tabs { margin-bottom: 30px; }
  .auth-heading h2 { font-size: clamp(1.85rem, 3.8vw, 2.45rem); line-height: 1.02; text-wrap: balance; }
  .auth-heading > p:last-child { margin-bottom: 24px; font-size: .82rem; }
  .auth-note { margin-top: 20px; }
}

@media (max-width: 500px) {
  .auth-visual { min-height: 375px; }
  .auth-visual-head .brand span { font-size: .7rem; }
  .club-chip { display: none; }
  .auth-visual .hero-copy { width: 70%; margin: 54px 0 28px; }
  .auth-visual .hero-copy h1 { font-size: clamp(2.55rem, 11.5vw, 3.75rem); }
  .auth-visual .hero-copy > p:last-child { display: none; }
  .auth-kits { right: -42px; width: 48%; height: 70%; }
  .auth-kit--yellow { display: none; }
  .auth-kit--navy { right: -2%; width: 112%; }
  .auth-panel { padding: 34px 18px; }
  .topbar .brand > span:last-child { display: none; }
  .topbar { padding-inline: 9px; }
  .topbar-actions { gap: 4px; }
  .topbar-actions .icon-button { padding-inline: 8px; }
  .nav-tab { min-width: 78px; padding-inline: 7px; font-size: .68rem; }
  .nav-tab small { font-size: .44rem; }
  .saved-trigger span, .community-trigger span { display: none; }
  #openAccount span { display: none; }
  .hub-hero { min-height: 650px; grid-template-rows: auto 245px; }
  .hub-hero-copy { padding: 42px 22px 4px; }
  .hub-hero-copy h1 { font-size: clamp(3rem, 15vw, 4.25rem); }
  .hub-hero-copy > p:not(.eyebrow) { margin-top: 18px; font-size: .82rem; }
  .hub-hero-actions { display: grid; margin-top: 25px; }
  .hub-kit-stage { min-height: 245px; }
  .hub-kit { width: 62%; }
  .hub-kit--navy { left: 2%; bottom: -36%; }
  .hub-kit--yellow { right: -7%; bottom: -45%; }
  .hub-destinations { padding-top: 38px; }
  .hub-card { min-height: 255px; padding: 22px; }
  .hub-card-icon { margin: 30px 0 18px; }
  .placeholder-card { min-height: 590px; grid-template-rows: 230px auto; }
  .placeholder-card h1 { font-size: 3.5rem; }
  .placeholder-card > div { padding: 24px; }
  .chat-view { padding: 0; }
  .chat-shell { height: calc(100dvh - 116px); min-height: 460px; border-right: 0; border-left: 0; border-radius: 0; }
  .chat-header { padding: 14px; grid-template-columns: 42px 1fr; }
  .chat-header-icon { width: 42px; height: 42px; }
  .chat-header h1 { font-size: 1.5rem; }
  .chat-live { display: none; }
  .chat-messages { padding: 14px 11px; gap: 12px; }
  .chat-message { max-width: 94%; gap: 7px; }
  .chat-avatar { width: 32px; height: 32px; flex-basis: 32px; font-size: .82rem; }
  .chat-message-body { padding: 9px 11px; }
  .chat-composer { padding: 10px; }
  .chat-composer-footer { gap: 8px; }
  .chat-send { min-height: 38px; padding-inline: 13px; }
  .pitch { border-width: 3px; }
  .player-slot { width: 60px; }
  .jersey-wrap { width: 42px; height: 49px; }
  .slot-name { max-width: 70px; font-size: .54rem; }
  .slot-empty { right: 4px; bottom: 4px; width: 15px; height: 15px; }
  .roster { grid-template-columns: 1fr; }
  .player-row { min-height: 44px; }
  .modal { padding: 28px 22px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
