/* CAN Toulouse 2027 — one page. Thème sombre unique (charte du site d'origine). */
:root {
  --bg: #111512;
  --bg-2: #18201a;
  --panel: #1b241e;
  --panel-2: #212c24;
  --line: rgba(232, 226, 205, .12);
  --line-2: rgba(232, 226, 205, .2);
  --text: #f4f0e4;
  --muted: #b3b6a8;
  --muted-2: #8d9184;
  --gold: #d8bb82;
  --gold-2: #e6cd98;
  --gold-ink: #a8843f;
  --cream: #faf8f1;
  --cream-2: #f1ecdd;
  --ink: #171b18;
  --ink-2: #4f5249;
  --ink-3: #686b60;
  --field: #fffefa;
  --field-line: #d6cfbd;
  --danger: #a5322a;
  --danger-bg: #f8e7e3;
  --ok: #2f6b45;
  --green: #1f7a45;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --r: 14px;
  --wrap: 1400px;
  --gouttiere: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
html:has(.menu.open) { overflow: hidden; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gouttiere)); margin: 0 auto; padding-inline: var(--gouttiere); }

.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.i-lg { width: 20px; height: 20px; }
.i-xl { width: 28px; height: 28px; }
.gold { color: var(--gold); }

/* ------------------------------------------------------------- En-tête */
.top { position: sticky; top: 0; z-index: 40; }
/* Le flou vit sur un pseudo-élément : un backdrop-filter sur .top piégerait le panneau mobile (position fixe) dans l'en-tête. */
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(17, 21, 18, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 84px; background: linear-gradient(var(--line), var(--line)) content-box bottom / 100% 1px no-repeat; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 52px; height: 52px; border-radius: 10px; background: var(--cream); display: grid; place-items: center; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset; }
.brand-mark img { width: 42px; height: 42px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt strong { font-weight: 800; font-size: 18px; letter-spacing: .06em; }
.brand-txt small { color: var(--gold); font-size: 12px; letter-spacing: .28em; margin-top: 3px; }
.menu { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 15px; }
.menu a { text-decoration: none; color: #e8e4d8; transition: color .15s; }
.menu a:hover { color: var(--gold-2); }
.menu .menu-ext { color: var(--gold-2); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-tete, .menu-voile { display: none; }

/* ------------------------------------------------------------- Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .1s, color .15s; }
.btn:active { transform: translateY(1px); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; font-weight: 600; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.menu .btn-ghost { color: var(--gold-2); border-color: rgba(216, 187, 130, .45); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-gold { background: var(--gold); color: var(--ink); border-color: #c8a868; }
.btn-gold:hover { background: var(--gold-2); }
.btn-gold[disabled] { opacity: .65; cursor: progress; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26302a; }
.btn-block { width: 100%; min-height: 56px; font-size: 17px; }
.btn-pay { background: #49d290; color: #0d2a1b; min-height: 60px; font-size: 18px; box-shadow: 0 10px 30px -10px rgba(73, 210, 144, .55); }
.btn-pay:hover { background: #63dea2; }
.btn-danger { background: transparent; border-color: rgba(165,50,42,.5); color: #f0a49c; }
.btn-danger:hover { background: rgba(165,50,42,.15); }
.link-btn { background: none; border: 0; padding: 12px 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.link-btn.center { display: block; margin: 16px auto 0; }
.link-gold { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-2); text-decoration: none; border-bottom: 1px solid rgba(216,187,130,.5); padding-bottom: 6px; font-size: 15px; }
.link-gold:hover { color: #fff; border-color: #fff; }

/* ------------------------------------------------------------- Titres communs */
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.rule { width: 30px; height: 1px; background: var(--gold); }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a6f3d; }
.kicker.gold { color: var(--gold); }
.h2 { font-size: clamp(32px, 4vw, 42px); font-weight: 800; margin-top: 18px; }
.h3 { font-size: 24px; font-weight: 800; line-height: 1.3; margin-top: 18px; }
.display { font-size: clamp(44px, 6.4vw, 66px); font-weight: 800; line-height: 1.02; margin-top: 20px; letter-spacing: -.035em; }
.display em, .hero-title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold); letter-spacing: -.01em; }
.lead { color: #d8d6cc; font-size: 17px; line-height: 1.7; max-width: 470px; margin-top: 22px; }

/* ------------------------------------------------------------- Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); padding-top: 56px; padding-bottom: 64px; align-items: start; }
.hero-l { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-l .eyebrow { align-self: flex-start; }
.hero-title { align-self: flex-start; text-align: left; white-space: nowrap; font-size: clamp(44px, 3.9vw, 60px); font-weight: 900; letter-spacing: -.035em; margin: 20px 0 32px; }
.hero-title em { font-style: normal; font-size: 1.04em; }
.logo-card { margin: 0; width: min(470px, 100%); background: var(--cream); border-radius: 22px; padding: 10px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.logo-card img { border-radius: 14px; border: 1px solid #e5dfcd; }
.motto { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-family: var(--serif); font-size: 22px; color: var(--gold-2); margin-top: 28px; }
.motto i { font-style: normal; color: var(--gold-ink); }
.motto.sm { font-family: var(--sans); font-size: 14px; color: var(--muted); margin: 0; gap: 10px; }
.hero-lead { font-size: 19px; line-height: 1.65; color: #d9d7cc; max-width: 460px; margin-top: 18px; }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips li { border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 12px; font-size: 14px; color: #e5e1d5; }
.already { display: flex; align-items: center; gap: 14px; text-align: left; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); width: min(470px, 100%); justify-content: center; color: var(--gold); }
.already span { display: block; font-size: 13px; color: var(--muted); }
.already a { display: inline-flex; padding: 8px 0; gap: 6px; align-items: center; color: var(--gold-2); font-size: 15px; text-decoration: none; }
.already a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------- Carte formulaire */
.card { background: var(--cream); color: var(--ink); border-radius: 18px; border-top: 3px solid var(--gold); padding: 40px 36px 30px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pill-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #2c3a2f; }
.pill-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.card-title { font-size: clamp(28px, 2.4vw, 38px); font-weight: 900; margin-top: 18px; letter-spacing: -.03em; color: var(--ink); }
.card-title.sm { font-size: 28px; margin-top: 4px; }
.card-sub { color: var(--ink-2); font-size: 17px; margin-top: 12px; }
.price { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--cream-2); border: 1px solid #e0d6bd; border-radius: 10px; padding: 18px 20px; margin-top: 22px; }
.price p { font-weight: 600; color: var(--ink-2); }
.price strong { font-size: 28px; font-weight: 800; color: var(--ink); margin-right: 6px; letter-spacing: -.02em; }
.price span { color: var(--ink-2); font-size: 15px; }
.price-note { display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.price-note .i { color: var(--gold-ink); margin-top: 2px; }
.req-note { font-size: 14px; color: var(--ink-3); margin: 22px 0 6px; }
fieldset { border: 0; padding: 0; margin: 0; }
fieldset + fieldset { border-top: 1px solid #e3dccb; margin-top: 22px; padding-top: 4px; }
legend { padding: 18px 0 10px; font-weight: 700; font-size: 16px; float: left; width: 100%; }
legend span { color: var(--ink-3); font-weight: 400; font-size: 13px; margin-right: 8px; }
legend + * { clear: both; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-top: 10px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
input:not([type="checkbox"]), select, textarea { width: 100%; min-height: 50px; background: var(--field); border: 1px solid var(--field-line); border-radius: 8px; padding: 12px 14px; font-size: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #9c8550; box-shadow: 0 0 0 3px rgba(216, 187, 130, .35); }
input::placeholder, textarea::placeholder { color: #8a887b; }
.select { position: relative; }
.select select { appearance: none; padding-right: 40px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.hint { font-size: 14px; color: var(--ink-3); margin-top: 10px; line-height: 1.55; }
.err { display: none; color: var(--danger); font-size: 13px; margin-top: 6px; }
.invalid .err, .err.show { display: block; }
.invalid input, .invalid select { border-color: var(--danger); }
.more { border-top: 1px solid #e3dccb; border-bottom: 1px solid #e3dccb; margin-top: 18px; }
.more summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 14px 0; cursor: pointer; color: var(--ink-2); }
.more summary::-webkit-details-marker { display: none; }
.more summary small { color: var(--ink-3); font-size: 13px; }
.more summary .i { margin-left: auto; transition: transform .2s; }
.more[open] summary .i { transform: rotate(180deg); }
.more .field { margin: 0 0 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; cursor: pointer; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.check .box { flex: none; width: 22px; height: 22px; border-radius: 5px; border: 1.5px solid var(--field-line); background: var(--field); display: grid; place-items: center; margin-top: 1px; transition: background .15s, border-color .15s; }
.check .box .i { width: 15px; height: 15px; color: #fff; opacity: 0; stroke-width: 2.6; }
.check input:checked + .box { background: #23362a; border-color: #23362a; }
.check input:checked + .box .i { opacity: 1; }
.check input:focus-visible + .box { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.alert { margin-top: 20px; padding: 14px 16px; border-radius: 8px; background: var(--danger-bg); border: 1px solid #efc6be; color: var(--danger); font-size: 15px; }
.alert.info { background: #eef4ec; border-color: #c9dcc6; color: var(--ok); }
#f-submit { margin-top: 20px; }
.form-foot { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 14px; }
.form-foot.small { font-size: 13px; margin-top: 8px; }
.form-foot.small .i { margin-right: 6px; }
.contact-line { display: flex; gap: 14px; margin-top: 26px; padding-top: 24px; border-top: 1px solid #e3dccb; color: var(--gold-ink); }
.contact-line span { display: block; color: var(--ink-2); font-size: 15px; }
.contact-line a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }

/* Confirmation après envoi */
#ok-zone:focus { outline: none; }
.ok-head { display: flex; gap: 16px; align-items: center; }
.ok-badge { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #23362a; color: #fff; display: grid; place-items: center; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.ok-badge .i { width: 26px; height: 26px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.ref-box { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding: 14px 18px; border: 1px dashed #c9bd9c; border-radius: 10px; }
.ref-box span { color: var(--ink-3); font-size: 14px; }
.ref-box strong { font-size: 22px; letter-spacing: .08em; }
.ref-box .link-btn { margin-left: auto; }
.pay { margin-top: 20px; background: var(--ink); color: #fff; border-radius: 14px; padding: 26px 24px 20px; position: relative; overflow: hidden; }
.pay::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #1f7a45 0 33%, #e8bc26 33% 66%, #c8302b 66%); }
.pay-step { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; background: var(--gold); color: var(--ink); padding: 4px 10px; border-radius: 4px; }
.pay h3 { font-size: 26px; font-weight: 800; margin-top: 14px; }
.pay p { color: #d4d6cc; font-size: 15px; line-height: 1.6; margin: 10px 0 18px; }
.pay b { color: var(--gold-2); letter-spacing: .04em; }
.pay-secure { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px !important; color: #a8ab9f !important; margin: 12px 0 0 !important; }
.ok-mail { font-size: 14px; color: var(--ink-2); margin: 18px 0 14px; line-height: 1.55; }
.ok-mail.warn { color: var(--danger); }


/* ------------------------------------------------------------- Bande « la suite » */
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-in { display: grid; grid-template-columns: .9fr 2.2fr; gap: 40px; padding-top: 48px; padding-bottom: 50px; }
.band .h3 { margin-top: 18px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps .num { font-family: var(--serif); font-size: 30px; color: var(--gold); line-height: 1; font-variant-numeric: oldstyle-nums; }
.steps h3 { font-size: 17px; font-weight: 700; margin-top: 14px; letter-spacing: -.01em; }
.steps p { color: var(--muted); font-size: 15px; margin-top: 10px; line-height: 1.6; }

/* ------------------------------------------------------------- Sections */
.section { padding-top: clamp(60px, 7vw, 104px); padding-bottom: clamp(60px, 7vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 40px; align-items: end; margin-bottom: 44px; }
.sec-aside { padding-bottom: 10px; }
.tag { display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.sec-aside p { color: #d4d2c7; font-size: 17px; line-height: 1.65; }

/* Équipes */
.empty { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); padding: 32px 36px; }
.empty-ic { width: 120px; color: var(--gold); }
.empty h3 { font-size: 22px; font-weight: 800; margin-top: 8px; }
.empty p { color: var(--muted); margin-top: 10px; max-width: 560px; }
.empty .link-gold { align-self: start; }
.teams { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.team { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px; }
.team-code { flex: none; width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; letter-spacing: .06em; color: var(--ink); background: var(--gold); font-size: 15px; }
.team strong { display: block; font-size: 17px; line-height: 1.25; }
.team div span { color: var(--muted); font-size: 14px; }
.teams-count { color: var(--muted); font-size: 15px; margin-bottom: 18px; }

/* Guide */
.guide { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.card-dark { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); padding: 34px; }
.bases h3 { font-size: 22px; font-weight: 800; margin-top: 26px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.ticks li::before { content: ""; width: 12px; height: 7px; border-left: 1.8px solid var(--gold); border-bottom: 1.8px solid var(--gold); transform: rotate(-45deg) translateY(-3px); flex: none; margin: 0 4px 0 2px; }
.meta { list-style: none; padding: 22px 0; margin: 24px 0 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: grid; gap: 12px; color: #d9d6ca; font-size: 15px; }
.meta li { display: flex; gap: 10px; align-items: center; }
.meta .i { color: var(--gold); }
.note { display: flex; gap: 10px; color: var(--muted); font-size: 14px; line-height: 1.6; margin: 22px 0 26px; }
.note .i { color: var(--gold); margin-top: 3px; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; font-size: 18px; transition: color .15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-2); }
.faq summary > span { flex: none; font-family: var(--serif); color: var(--gold); font-size: 19px; width: 22px; font-variant-numeric: oldstyle-nums; }
.faq summary .i { margin-left: auto; color: var(--gold); transition: transform .2s; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { color: #cfcdc2; padding: 0 30px 26px 42px; line-height: 1.7; }
.faq details a { color: var(--gold-2); }

/* ------------------------------------------------------------- Pied de page */
.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 34px; padding-bottom: 34px; }
.foot-brand { font-weight: 800; letter-spacing: .04em; font-size: 16px; }
.foot-brand span { color: var(--gold); }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav a { display: inline-block; padding: 9px 0; color: #e1ddd1; text-underline-offset: 5px; font-size: 16px; }
.foot nav a:hover { color: var(--gold-2); }

/* ------------------------------------------------------------- Pages dédiées (capitaine, organisation) */
.page { padding-top: 48px; padding-bottom: 90px; min-height: 70vh; }
.page:focus { outline: none; }
.page-head { margin-bottom: 30px; }
.page-title { font-size: clamp(34px, 5vw, 52px); font-weight: 900; letter-spacing: -.03em; margin-top: 16px; }
.org-head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.panel-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.page .field label { color: var(--text); }
.page input:not([type="checkbox"]), .page select, .page textarea { background: #0c0f0d; border-color: var(--line-2); color: var(--text); color-scheme: dark; }
.page input::placeholder, .page textarea::placeholder { color: #7d8176; }
.page .hint { color: var(--muted); }
.alert.dark { background: rgba(165, 50, 42, .15); border-color: rgba(165, 50, 42, .45); color: #f3b0a8; margin: 0; }
.alert.dark.info { background: rgba(73, 210, 144, .1); border-color: rgba(73, 210, 144, .35); color: #b5ecd0; }
.alert.big { display: flex; gap: 10px; align-items: center; font-size: 16px; margin-bottom: 22px; padding: 16px 18px; }
.alert.big .i { width: 22px; height: 22px; flex: none; }
.page .btn-block { min-height: 52px; font-size: 16px; }
.h4 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.h4 .i { width: 22px; height: 22px; color: var(--gold); }
.h4.ok-t .i { color: #6fdca5; }
.h5 { font-size: 17px; font-weight: 700; }
.p-lead { color: #d6d3c8; line-height: 1.65; margin-top: 10px; }
.p-sep { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.p-h { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.p-form { display: grid; gap: 14px; margin-top: 18px; }
.p-form .grid2 { gap: 14px 16px; }
.p-form .field { margin: 0; }
.loading { color: var(--muted); padding: 30px 0; text-align: center; }
.link-btn.light { color: var(--gold-2); padding: 6px 0; font-size: 14px; }

/* Drapeaux (flag-icons, 4:3) */
.flag { width: 32px; height: 24px; flex: none; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); background: #ddd; }
.flag-lg { width: 76px; height: 57px; border-radius: 6px; }
.team-flag { width: 56px; height: 42px; border-radius: 5px; }

/* Sélecteur de pays (formulaire) */
.pays { position: relative; }
.pays-btn { width: 100%; min-height: 50px; display: flex; align-items: center; gap: 10px; background: var(--field); border: 1px solid var(--field-line); border-radius: 8px; padding: 0 14px; font-size: 16px; color: var(--ink); cursor: pointer; text-align: left; }
.pays-btn:focus-visible, .pays.open .pays-btn { outline: none; border-color: #9c8550; box-shadow: 0 0 0 3px rgba(216, 187, 130, .35); }
.pays-val { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.pays-val span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pays-ph { color: var(--ink-3); }
.pays-btn > .i { color: var(--ink-2); transition: transform .2s; }
.pays.open .pays-btn > .i { transform: rotate(180deg); }
.invalid .pays-btn { border-color: var(--danger); }
.pays-pop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); min-width: 260px; background: #fff; border: 1px solid var(--field-line); border-radius: 12px; box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .45); padding: 8px; }
.pays-q { min-height: 44px !important; margin-bottom: 6px; }
.pays-list { list-style: none; margin: 0; padding: 0; max-height: 290px; overflow-y: auto; overscroll-behavior: contain; }
.pays-list li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; min-height: 44px; border-radius: 8px; cursor: pointer; color: var(--ink); font-size: 15px; }
.pays-list li.actif { background: var(--cream-2); }
.pays-list li[aria-selected="true"] { font-weight: 700; }
.pays-list li[aria-selected="true"]::after { content: ""; margin-left: auto; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg) translateY(-2px); }
.pays-vide { color: var(--ink-3); font-size: 14px; padding: 10px; }

/* Parcours (étapes) */
.parcours { list-style: none; margin: 18px 0 0; padding: 0; display: grid; }
.parcours li { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.parcours li:last-child { padding-bottom: 0; }
.parcours li:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 2px; background: var(--line-2); }
.parcours .pt { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg); margin-top: 1px; display: grid; place-items: center; position: relative; z-index: 1; }
.parcours b { display: block; font-weight: 700; font-size: 15px; }
.parcours small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.parcours li.fait .pt { background: #2f8a57; border-color: #2f8a57; }
.parcours li.fait .pt::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.parcours li.fait:not(:last-child)::before { background: #2f8a57; }
.parcours li.encours .pt { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(216, 187, 130, .2); }
.parcours li.encours .pt::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.parcours li.encours b { color: var(--gold-2); }
.parcours li.attente .pt { border-color: #9fb4e8; border-style: dashed; }
.parcours li.ko .pt { border-color: #f09a90; background: rgba(240, 154, 144, .15); }
.parcours.compact { margin: 22px 0; padding: 18px; border-radius: 12px; background: var(--cream-2); }
.parcours.compact b { color: var(--ink); }
.parcours.compact small { color: var(--ink-2); }
.parcours.compact .pt { background: var(--cream-2); border-color: #cfc5a9; }
.parcours.compact li:not(:last-child)::before { background: #d9cfb4; }
.parcours.compact li.encours b { color: var(--ink); }
.parcours.compact li.encours .pt { border-color: var(--gold-ink); box-shadow: 0 0 0 4px rgba(168, 132, 63, .18); }
.parcours.compact li.encours .pt::after { background: var(--gold-ink); }

/* Après envoi du formulaire */
.ok-badge.mail { background: var(--gold); color: var(--ink); }
.ok-lead { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 18px 0; }
.ok-lead b { color: var(--ink); word-break: break-word; }
.ok-aide { border-top: 1px solid #e3dccb; padding-top: 18px; display: grid; gap: 10px; justify-items: start; }
.ok-aide p { font-size: 15px; color: var(--ink-2); }
.ok-aide a { color: var(--ink); }
.btn-ghost-dark { border-color: #cdbf9c; color: var(--ink); background: transparent; }
.btn-ghost-dark:hover { border-color: var(--ink); }
.btn-ghost-dark[disabled] { opacity: .6; cursor: default; }

/* Espace capitaine */
.cap-login { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.cap-login .card-dark > .alert { margin-bottom: 18px; }
.cap-help { padding: 8px 6px; }
.cap-help .link-gold { margin-top: 26px; }
.cap-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cap-main, .cap-side { display: grid; gap: 20px; }
.cap-bloc { padding: 26px; }
.cap-bloc .timeline { margin-top: 16px; }
.cap-id { display: flex; gap: 20px; align-items: center; padding: 22px 26px; }
.cap-pays { font-size: 20px; font-weight: 700; }
.cap-pays small { font-weight: 400; color: var(--muted); font-size: 14px; }
.cap-ref { color: var(--muted); margin-top: 4px; }
.cap-ref strong { color: var(--text); letter-spacing: .06em; margin: 0 6px; }
.cap-pay { margin: 0; padding: 28px 26px 22px; }
.cap-pay .h4 { margin-top: 14px; color: #fff; font-size: 24px; }
.pay-steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 22px; }
.pay-steps li { display: flex; gap: 14px; }
.pay-steps .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.pay-steps li > div { flex: 1; min-width: 0; display: grid; gap: 8px; }
.pay-steps b { font-size: 16px; color: #fff; }
.pay-steps small { color: #c9cbc0; font-size: 14px; line-height: 1.55; }
.ref-chip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: rgba(255, 255, 255, .06); border: 1px dashed rgba(216, 187, 130, .5); border-radius: 10px; padding: 8px 8px 8px 16px; }
.ref-chip strong { font-size: 22px; letter-spacing: .08em; color: var(--gold-2); margin-right: auto; }
.declaration { margin-top: 22px; padding: 20px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); }
.cap-side .kv { grid-template-columns: 90px 1fr; margin-top: 14px; }
.cap-side .hint { margin-top: 16px; }
.cap-side .badge { margin: 0; font-size: 14px; }

.badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-weight: 700; font-size: 15px; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.b-preinscrite { color: #e6cd98; } .b-validee, .b-recu { color: #6fdca5; } .b-attente { color: #9fb4e8; } .b-refusee { color: #f09a90; } .b-a_payer { color: #f0c068; } .b-declare { color: #8fd3ff; }
.cap-pay { margin-top: 14px; }
.timeline { display: grid; gap: 10px; }
.msg { padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.msg.orga { border-left: 3px solid var(--gold); }
.msg.capitaine { background: transparent; }
.msg header { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted-2); margin-bottom: 6px; }
.msg header b { color: var(--text); font-weight: 600; }
.msg p { white-space: pre-wrap; line-height: 1.6; color: #e1ded3; }
.empty-msg { color: var(--muted); font-size: 15px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: 15px; }
.kv dt { color: var(--muted-2); }
.kv dd { margin: 0; word-break: break-word; }

/* Organisation */
.org-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.org-stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.org-stats strong { display: block; font-size: 26px; font-weight: 800; }
.org-stats .hl { border-color: rgba(143, 211, 255, .5); }
.org-stats .hl strong { color: #8fd3ff; }
.org-login { max-width: 460px; }
.org-stats span { color: var(--muted); font-size: 13px; }
.org-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 12px 14px; cursor: pointer; font-size: 14px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--ink); font-weight: 700; }
.org-tools input { max-width: 300px; min-height: 40px !important; padding: 8px 12px !important; font-size: 14px !important; margin-left: auto; }
.org-list { display: grid; gap: 10px; }
.org-item { border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); }
.org-item > summary { list-style: none; display: grid; grid-template-columns: 34px 1.6fr 1fr auto 20px; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; }
.org-item > summary::-webkit-details-marker { display: none; }
.org-item > summary .badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.decl { background: rgba(143, 211, 255, .06); border: 1px solid rgba(143, 211, 255, .25); border-radius: 10px; padding: 14px; margin: 6px 0 12px; }
.decl .kv { grid-template-columns: 130px 1fr; font-size: 14px; margin: 8px 0; }
.org-ctrls .lbl + p { margin: 0 0 8px; }
.org-item > summary strong { display: block; }
.org-item > summary small { color: var(--muted); font-size: 13px; }
.org-item > summary .badge { margin: 0; font-size: 13px; white-space: nowrap; }
.org-item > summary .i { color: var(--gold); transition: transform .2s; }
.org-item[open] > summary .i { transform: rotate(180deg); }
.org-detail { border-top: 1px solid var(--line); padding: 20px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.org-ctrls { display: grid; gap: 14px; align-content: start; }
.org-ctrls .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.org-ctrls .lbl { font-size: 13px; color: var(--muted-2); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.toggle { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 15px; }
.toggle input { flex: none; width: 20px; height: 20px; accent-color: var(--gold); }
.toggle small { color: var(--muted); }
.decision { display: grid; gap: 10px; padding: 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
.decision .lbl { margin: 0 !important; }
.decision-etat { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.decision-etat .badge { margin: 0; font-size: 15px; }
.btn-valider { width: 100%; min-height: 50px; font-size: 16px; }
.decision-autres:empty { display: none; }
.org-apply { display: none; }
.org-apply.show { display: inline-flex; }
.org-detail textarea { min-height: 90px; }
.org-empty { text-align: center; color: var(--muted); padding: 50px 20px; border: 1px dashed var(--line-2); border-radius: 12px; }

/* ------------------------------------------------------------- Terrain et maillots (composition) */
.terrain { position: relative; container-type: inline-size; width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 68 / 105; border-radius: 14px; overflow: hidden;
  background: repeating-linear-gradient(180deg, #2f7d3f 0 10%, #2a7239 10% 20%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 20px 40px -20px rgba(0,0,0,.7); }
.terrain::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,.08), transparent 65%); pointer-events: none; }
.terrain-lignes { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255,255,255,.6); stroke-width: 1.4px; vector-effect: non-scaling-stroke; }
.terrain-lignes * { vector-effect: non-scaling-stroke; }
.terrain-lignes .pt { fill: rgba(255,255,255,.7); }
.joueur { position: absolute; z-index: 1; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0; border: 0; background: none; color: #fff; font: inherit; cursor: default; }
.terrain.editable .joueur { cursor: pointer; }
.terrain.editable .joueur:hover .maillot, .terrain.editable .joueur:focus-visible .maillot { transform: scale(1.08); }
.joueur-nom { max-width: 26cqw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(8, 10, 9, .85); color: #fff; font-weight: 800; font-size: clamp(8px, 2.7cqw, 12px); letter-spacing: .05em; padding: 2px 6px; border-radius: 4px; line-height: 1.35; }
.maillot { width: 15.5cqw; height: auto; display: block; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .45)); transition: transform .15s; overflow: visible; }
.joueur.vide .joueur-nom { background: rgba(8, 10, 9, .55); font-weight: 600; letter-spacing: 0; }
.maillot-vide { width: 11cqw; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .7); display: grid; place-items: center; font-size: 5cqw; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .15); }
.banc { margin-top: 16px; }
.banc-t { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.banc ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.banc li { display: flex; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.banc .maillot { width: 34px; filter: none; }
.banc b { display: block; font-size: 14px; line-height: 1.25; }
.banc small { color: var(--muted); font-size: 12px; }

/* Effectif (éditeur) */
.bloc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.compteur { font-weight: 800; font-size: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(240, 192, 104, .15); color: #f0c068; }
.compteur.ok { background: rgba(111, 220, 165, .14); color: #6fdca5; }
.roster { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.roster-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 160px 44px; gap: 10px; align-items: end; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.roster-row .field { margin: 0; }
.roster-row label { font-size: 12px !important; font-weight: 600 !important; color: var(--muted) !important; margin-bottom: 4px !important; }
.roster-row input, .roster-row select { min-height: 44px !important; padding: 8px 10px !important; }
.roster-row .num input { text-align: center; font-weight: 800; }
.x-row { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.x-row:hover { border-color: #f09a90; color: #f09a90; }
.btn-add { margin-top: 12px; width: 100%; border-style: dashed; }
.btn-add[disabled] { opacity: .45; cursor: default; }
.bloc-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.bloc-actions .hint { margin: 0; }
#f-effectif > .alert, #f-compo > .alert { margin-top: 14px; }

/* Composition (éditeur) */
.formations { margin: 16px 0 18px; }
.compo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.compo-postes { display: grid; gap: 10px; }
.compo-postes .field { margin: 0; }
.compo-ligne label { font-size: 13px !important; color: var(--muted) !important; margin-bottom: 4px !important; }
.compo-ligne select { min-height: 44px !important; padding: 8px 36px 8px 10px !important; font-size: 15px !important; }
.compo-postes .toggle { margin-top: 6px; align-items: flex-start; }

/* Paiement automatique */
.pay-attente[hidden] { display: none; }
.pay-attente { display: flex; gap: 8px; align-items: center; color: var(--gold-2); font-size: 14px; }
.pay-attente .i { animation: tourne 2s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.pay-secours { margin-top: 18px; font-size: 14px; color: #c9cbc0; }

/* Fenêtre composition (site public) */
.voir-compo { display: inline-flex; gap: 6px; align-items: center; padding: 6px 0 0; }
.dlg-compo { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg); color: var(--text); box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }
.dlg-compo::backdrop { background: rgba(5, 8, 6, .75); backdrop-filter: blur(3px); }
.dlg-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--bg-2); position: sticky; top: 0; z-index: 2; }
.dlg-id { display: flex; gap: 12px; align-items: center; }
.dlg-id h2 { font-size: 20px; font-weight: 800; }
.dlg-id small { color: var(--muted); }
.dlg-body { padding: 18px; }
.x { margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; display: grid; place-items: center; flex: none; color: var(--text); }
.x:hover { border-color: var(--gold); color: var(--gold-2); }
html:has(dialog[open]) { overflow: hidden; }

/* ------------------------------------------------------------- Espace client (capitaine) */
.top-cap .top-in { gap: 18px; }
.cap-site { margin-left: auto; color: var(--muted); text-decoration: none; font-size: 15px; padding: 10px 0; }
.cap-site:hover { color: var(--gold-2); }
.compte { position: relative; }
.compte-btn { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px 6px 8px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); color: var(--text); cursor: pointer; max-width: 280px; }
.compte-btn:hover, .compte-btn[aria-expanded="true"] { border-color: var(--gold); }
.compte-btn > .i { color: var(--gold); transition: transform .2s; }
.compte-btn[aria-expanded="true"] > .i { transform: rotate(180deg); }
.compte-flag .flag { width: 30px; height: 22px; }
.compte-txt { display: flex; flex-direction: column; text-align: left; line-height: 1.2; min-width: 0; }
.compte-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compte-txt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compte-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 270px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 24px 50px -10px rgba(0, 0, 0, .6); padding: 8px; display: grid; }
.compte-id { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; gap: 2px; }
.compte-id b { font-size: 15px; }
.compte-id small { color: var(--muted); font-size: 13px; word-break: break-all; }
.compte-menu [role="menuitem"] { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 15px; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.compte-menu [role="menuitem"] .i { color: var(--gold); }
.compte-menu [role="menuitem"]:hover, .compte-menu [role="menuitem"]:focus-visible { background: rgba(255, 255, 255, .06); outline: none; }
.compte-menu .danger { color: #f3a49a; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 6px; }
.compte-menu .danger .i { color: #f3a49a; }

.espace { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; align-items: start; }
.espace:has(.espace-nav[hidden]) { grid-template-columns: 1fr; }
.espace-nav { position: sticky; top: 108px; display: grid; gap: 4px; }
.espace-nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 10px; color: #dedbd0; text-decoration: none; font-size: 15px; border: 1px solid transparent; }
.espace-nav a .i { width: 19px; height: 19px; color: var(--muted); }
.espace-nav a:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.espace-nav a[aria-current="page"] { background: var(--panel); border-color: var(--line-2); color: #fff; font-weight: 700; }
.espace-nav a[aria-current="page"] .i { color: var(--gold); }
.nav-badge { margin-left: auto; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--muted); }
.nav-badge.ok { background: rgba(111, 220, 165, .14); color: #6fdca5; }
.nav-badge.alerte { background: var(--gold); color: var(--ink); }
.vue-head { margin-bottom: 26px; }
.vue-head .page-title { margin-top: 14px; }
.vue-head .page-title:focus { outline: none; }
.espace-vue { display: grid; gap: 20px; align-content: start; min-width: 0; }
.espace-vue > .vue-head, .espace-vue > .alert { margin-bottom: 0; }
.cap-statut { margin: 0 0 0 auto; font-size: 14px; }
.tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tuile { position: relative; display: grid; gap: 4px; padding: 20px 20px 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line-2); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.tuile:hover { border-color: var(--gold); transform: translateY(-2px); }
.tuile > .i { width: 22px; height: 22px; color: var(--gold); margin-bottom: 6px; }
.tuile-t { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.tuile b { font-size: 21px; font-weight: 800; }
.tuile small { color: var(--muted); font-size: 14px; }
.tuile-go { position: absolute; right: 18px; top: 20px; color: var(--muted); }
.tuile.alerte { border-color: rgba(216, 187, 130, .55); }
.tuile.alerte b { color: var(--gold-2); }
.tuile.ok b { color: #9ee6c0; }
.tuile.attente b { color: #8fd3ff; }
.compte-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.compte-col { display: grid; gap: 20px; }
.compte-grid .kv { grid-template-columns: 100px 1fr; margin-top: 14px; }
.compte-grid .hint { margin-top: 14px; }
.deco { margin-top: 16px; color: #f3a49a; border-color: rgba(243, 164, 154, .4); }
.deco:hover { color: #fff; border-color: #f3a49a; background: rgba(165, 50, 42, .2); }

/* Champs mot de passe et écrans d'accès */
.mdp-wrap { position: relative; }
.mdp-wrap input { padding-right: 96px !important; }
.mdp-voir { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .07); color: var(--gold-2); font-size: 13px; font-weight: 700; cursor: pointer; }
.mdp-voir:hover { background: rgba(255, 255, 255, .12); }
.mdp-aide { display: grid; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.mdp-barre { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.mdp-barre i { display: block; height: 100%; width: 0; background: #f09a90; transition: width .2s, background .2s; }
.mdp-aide[data-niveau="0"] .mdp-barre i { width: 15%; }
.mdp-aide[data-niveau="1"] .mdp-barre i { width: 40%; background: #f0c068; }
.mdp-aide[data-niveau="2"] .mdp-barre i { width: 72%; background: #9ee6c0; }
.mdp-aide[data-niveau="3"] .mdp-barre i { width: 100%; background: #49d290; }
.auth-liens { margin-top: 14px; }
.auth-equipe { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); margin-bottom: 6px; }
.auth-equipe b { display: block; }
.auth-equipe small { color: var(--muted); }
.cap-login .card-dark .hint { margin-top: 12px; }
.org-moi { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin-right: 6px; }
.org-moi .i { color: var(--gold); }

/* Mon équipe : effectif + composition */
.equipe-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.roster-entete { display: grid; grid-template-columns: 58px minmax(0, 1fr) 132px 40px; gap: 10px; padding: 14px 12px 0; font-size: 12px; font-weight: 700; color: var(--muted); }
@media (min-width: 641px) {
  .eq-effectif .roster { margin-top: 6px; gap: 6px; }
  .eq-effectif .roster-row { grid-template-columns: 58px minmax(0, 1fr) 132px 40px; padding: 8px 12px; align-items: center; }
  .eq-effectif .roster-row label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .eq-effectif .roster-row .x-row { width: 40px; height: 40px; }
}
.eq-compo { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 18px; }
.eq-compo-terrain .terrain { max-width: 560px; margin: 0; }
.eq-compo-cote { display: grid; gap: 16px; align-content: start; }
.eq-compo-cote .p-h { margin: 0; }
.eq-compo-cote .banc { margin-top: 4px; }
.eq-compo-cote .eq-aide { text-align: left; margin: 0; }
.eq-effectif .roster-row, .roster-entete { max-width: 980px; }
.eq-terrain .formations { margin: 0; display: flex; flex-wrap: nowrap; width: 100%; max-width: 460px; }
.eq-terrain .formations button { flex: 1; padding: 11px 4px; white-space: nowrap; }
#eq-auto { white-space: nowrap; }
.eq-aide { text-align: center; margin: 12px 0 6px; }
.eq-terrain .toggle { margin-top: 10px; align-items: flex-start; }
.eq-effectif .roster { margin-top: 14px; }
.eq-effectif .roster-row { grid-template-columns: 64px minmax(0, 1fr) 140px 44px; row-gap: 6px; }
.statut-j { grid-column: 2 / 4; grid-row: 2; font-size: 12px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.statut-j::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.statut-j.titulaire { color: var(--gold-2); }
.statut-j.titulaire::before { background: var(--gold); }
.roster-row.a-corriger { border-color: rgba(240, 154, 144, .55); }
.page input[aria-invalid="true"], .page select[aria-invalid="true"] { border-color: #f09a90 !important; }
.eq-barre { position: sticky; bottom: 14px; z-index: 30; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px 10px 18px; border-radius: 14px; background: var(--cream); color: var(--ink); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.eq-barre p { flex: 1; font-weight: 700; font-size: 15px; min-width: 160px; }
.eq-barre .btn-ghost { color: var(--ink); border-color: #cdbf9c; }
body:has(.eq-barre:not([hidden])) .toasts { bottom: 96px; }
.choix-joueurs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.choix-joueurs button { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.choix-joueurs button:hover, .choix-joueurs button:focus-visible { border-color: var(--gold); outline: none; }
.choix-joueurs button[aria-current="true"] { border-color: var(--gold); background: rgba(216, 187, 130, .1); }
.choix-joueurs .maillot { width: 38px; flex: none; filter: none; }
.choix-joueurs span { flex: 1; min-width: 0; }
.choix-joueurs b { display: block; }
.choix-joueurs small { color: var(--muted); font-size: 13px; }
.choix-joueurs em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--ink); background: var(--gold); padding: 3px 8px; border-radius: 999px; }
.choix-joueurs .vider { border-style: dashed; color: #f3a49a; }
.choix-joueurs .vider .i { width: 22px; height: 22px; margin: 0 8px; }
.dlg-poste { width: min(460px, calc(100% - 24px)); }

/* ------------------------------------------------------------- Guide (logo incrusté) et FAQ */
.guide-sec { border-top: 1px solid var(--line); }
.medaillon { margin: 0; display: grid; justify-items: center; gap: 26px; }
.med-zone { position: relative; width: min(560px, 100%); }
.med-scene { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 50%; }
.med-halo { position: absolute; inset: 8%; border-radius: 50%; background:
  radial-gradient(circle at 50% 45%, rgba(216, 187, 130, .22), transparent 58%),
  conic-gradient(from 200deg, rgba(31, 122, 69, .35), rgba(232, 188, 38, .25), rgba(200, 48, 43, .3), rgba(31, 122, 69, .35));
  filter: blur(38px); opacity: .55; }
.med-anneau, .med-texte { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.med-trait { fill: none; stroke: rgba(232, 226, 205, .14); stroke-width: .6; stroke-dasharray: 1 3; }
.med-arc { fill: none; stroke-width: 3.2; stroke-linecap: round; transform-origin: 100px 100px; }
.med-arc.vert { stroke: #1f9a52; stroke-dasharray: 92 208; stroke-dashoffset: 0; }
.med-arc.jaune { stroke: #f2c230; stroke-dasharray: 92 208; stroke-dashoffset: -100; }
.med-arc.rouge { stroke: #d6362f; stroke-dasharray: 92 208; stroke-dashoffset: -200; }
.med-anneau { animation: med-tourne 48s linear infinite; }
.med-texte { animation: med-tourne 70s linear infinite reverse; }
.med-texte text { font-family: var(--sans); font-size: 9.4px; font-weight: 800; letter-spacing: .32em; fill: var(--gold-2); }
.med-logo { position: relative; z-index: 1; width: 49%; height: auto; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .55)); animation: med-flotte 7s ease-in-out infinite; }
.med-reperes { list-style: none; margin: 0; padding: 0; }
.med-reperes li { position: absolute; z-index: 2; display: grid; gap: 1px; padding: 10px 14px; border-radius: 14px; background: rgba(21, 28, 23, .78); border: 1px solid rgba(232, 226, 205, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); animation: med-flotte 8s ease-in-out infinite; }
.med-reperes b { font-size: 20px; font-weight: 900; line-height: 1.1; color: #fff; letter-spacing: -.01em; }
.med-reperes span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.med-reperes .r1 { top: 4%; left: -6%; border-left: 3px solid #1f9a52; animation-delay: -1s; }
.med-reperes .r2 { top: 12%; right: -8%; border-left: 3px solid #f2c230; animation-delay: -3s; }
.med-reperes .r3 { bottom: 9%; left: -9%; border-left: 3px solid #d6362f; animation-delay: -5s; }
.med-reperes .r4 { bottom: 2%; right: -4%; border-left: 3px solid var(--gold); animation-delay: -2s; }
.medaillon .motto { margin: 0; }
@keyframes med-tourne { to { transform: rotate(360deg); } }
@keyframes med-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .med-anneau, .med-texte, .med-logo, .med-reperes li { animation: none; } }
.faq-large { max-width: none; }
.faq summary a, .faq details a { color: var(--gold-2); }
.sec-aside .link-gold { padding-bottom: 2px; }

/* ------------------------------------------------------------- Règlement */
.regl-alerte { padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(216, 187, 130, .45); background: rgba(216, 187, 130, .08); color: #e9e2cf; font-size: 15px; line-height: 1.6; margin-bottom: 30px; }
.regl-alerte b { color: var(--gold-2); }
mark.a-confirmer { background: rgba(216, 187, 130, .2); color: var(--gold-2); padding: 0 4px; border-radius: 4px; }
.regl-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.regl-sommaire { position: sticky; top: 108px; }
.regl-sommaire ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted-2); font-size: 14px; }
.regl-sommaire a { color: #d9d6ca; text-decoration: none; display: inline-block; padding: 3px 0; }
.regl-sommaire a:hover { color: var(--gold-2); }
.regl-corps { max-width: 760px; display: grid; gap: 34px; }
.art { scroll-margin-top: 104px; }
.art h2 { font-size: 23px; font-weight: 800; display: grid; gap: 6px; margin-bottom: 12px; }
.art h2 span { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.art p, .art li { color: #d6d3c8; line-height: 1.75; font-size: 16px; }
.art ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.art a { color: var(--gold-2); }

/* ------------------------------------------------------------- Fenêtres de l'espace organisation */
.page-dlg .field label { color: var(--text); }
.page-dlg input:not([type="checkbox"]), .page-dlg select, .page-dlg textarea { background: #0c0f0d; border-color: var(--line-2); color: var(--text); color-scheme: dark; }
.page-dlg .hint { color: var(--muted); }
.dlg-large { width: min(640px, calc(100% - 24px)); }
.dlg-compo { overflow-y: auto; overscroll-behavior: contain; }
.ha-off .i { vertical-align: -3px; margin-right: 6px; }
.dlg-xl { width: min(1080px, calc(100% - 24px)); }
.ed-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 28px; align-items: start; }
.ed-grid .formations { margin-bottom: 14px; display: flex; flex-wrap: nowrap; width: 100%; }
.ed-grid .formations button { flex: 1; padding: 10px 4px; }
@media (min-width: 901px) { .ed-grid > div:first-child { position: sticky; top: 96px; } }
.ed-postes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ed-postes label { font-size: 13px !important; color: var(--muted) !important; margin-bottom: 4px !important; }
.ed-roster .roster-row { grid-template-columns: 64px minmax(0, 1fr) 140px 44px; padding: 8px 10px; align-items: end; }
.flag.flag-sm { width: 20px; height: 15px; vertical-align: -2px; margin-right: 4px; }
.fiche-form .row { display: flex; gap: 10px; flex-wrap: wrap; }
.bloc-head .p-h { margin: 0; }
.org-detail .bloc-head { margin-bottom: 12px; }

/* ------------------------------------------------------------- Pages de connexion (moitié formulaire, moitié visuel) */
body.mode-auth main.page { max-width: none; padding: 0; min-height: 0; }
body.mode-auth .foot, body.mode-auth .page-head { display: none; }
body.mode-auth .espace { display: block; }
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100dvh - 84px); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: clamp(36px, 6vw, 88px) var(--gouttiere); }
.auth-in { width: min(440px, 100%); }
.auth-titre { font-size: clamp(36px, 4vw, 52px); font-weight: 900; letter-spacing: -.035em; margin-top: 18px; }
.auth-titre:focus { outline: none; }
.auth-intro { color: var(--muted); font-size: 16px; line-height: 1.6; margin-top: 12px; }
.auth-in .p-form { margin-top: 30px; gap: 16px; }
.auth-in input:not([type="checkbox"]) { min-height: 54px; font-size: 16px; }
.auth-in .btn-block { min-height: 56px; font-size: 17px; margin-top: 6px; }
.auth-in > #auth-corps > .alert { margin-top: 22px; }
.auth-oubli { display: flex; justify-content: flex-end; margin: -6px 0 0; }
.auth-oubli .link-btn { padding: 4px 0; }
.auth-note { display: flex; gap: 10px; margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.55; }
.auth-note .i { flex: none; color: var(--gold); margin-top: 2px; }
.auth-retour { margin-top: 18px; }
.auth-pied { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.auth-pied .i { color: var(--gold); }
.auth-equipe { margin-top: 24px; }

.auth-visuel { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: clamp(36px, 5vw, 72px); border-left: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 70% 15%, rgba(216, 187, 130, .16), transparent 55%),
    radial-gradient(ellipse at 15% 90%, rgba(31, 122, 69, .32), transparent 60%),
    linear-gradient(160deg, #18231b 0%, #101611 100%); }
.auth-visuel::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 60px, transparent 60px 120px); }
.auth-visuel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, #1f7a45 0 33.3%, #e8bc26 33.3% 66.6%, #c8302b 66.6%); }
.av-in { position: relative; z-index: 1; width: min(520px, 100%); display: grid; gap: 16px; justify-items: start; }
.av-titre { font-size: clamp(36px, 3.8vw, 54px); font-weight: 900; line-height: 1.02; letter-spacing: -.035em; }
.av-titre em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold); }
.av-terrain { width: min(290px, 100%); justify-self: center; transition: opacity .26s ease, transform .26s ease; transform: perspective(900px) rotateX(10deg); }
.av-terrain.change { opacity: 0; }
.av-terrain .terrain { max-width: none; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8); }
.av-pays { justify-self: center; display: flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); font-size: 14px; color: #e9e4d4; }
.av-points, .av-fonctions { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.av-points li { display: flex; gap: 10px; align-items: center; color: #d9d6ca; font-size: 15px; }
.av-points .i { color: #6fdca5; }
.av-embleme { position: relative; width: min(260px, 70%); aspect-ratio: 1; justify-self: center; display: grid; place-items: center; margin: 6px 0; }
.av-embleme .med-anneau { position: absolute; inset: 0; width: 100%; height: 100%; animation: med-tourne 48s linear infinite; }
.av-embleme img { position: relative; width: 58%; height: auto; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .55)); animation: med-flotte 7s ease-in-out infinite; }
.av-fonctions li { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.av-fonctions li > span { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(216, 187, 130, .12); color: var(--gold); }
.av-fonctions b { display: block; font-size: 15px; }
.av-fonctions small { color: var(--muted); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .av-embleme .med-anneau, .av-embleme img { animation: none; } }
@media (max-height: 980px) and (min-width: 1081px) { .cap-visuel .av-points { display: none; } .av-terrain { width: min(260px, 100%); } .orga-visuel .av-embleme { width: min(220px, 60%); } }

/* Organisation : HelloAsso, effectif */
.top-orga .top-in { gap: 16px; }
.orga-badge { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: 4px 10px; border-radius: 999px; }
.orga-site { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; color: var(--gold-2); text-decoration: none; font-size: 15px; padding: 10px 0; }
@media (max-width: 640px) { .orga-badge { display: none; } .orga-site { font-size: 14px; } }
.ha-off { display: block; line-height: 1.6; color: var(--muted); font-size: 14px; padding: 12px 16px; border: 1px dashed var(--line-2); border-radius: 12px; margin-bottom: 16px; }
.ha-panel { border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); padding: 14px 16px; margin-bottom: 16px; display: grid; gap: 12px; }
.ha-panel.hl { border-color: rgba(143, 211, 255, .5); }
.ha-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ha-head p { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.ha-cmd { display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.ha-cmd small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.ha-cmd .row { display: flex; gap: 8px; align-items: center; }
.ha-cmd select { min-height: 40px !important; padding: 6px 34px 6px 10px !important; font-size: 14px !important; }
.org-roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; font-size: 14px; }
.org-roster b { display: inline-block; min-width: 24px; color: var(--gold-2); }
.org-roster small { color: var(--muted); }
.org-compo { margin-top: 14px; }
.org-compo summary { cursor: pointer; color: var(--gold-2); font-size: 14px; margin-bottom: 12px; }
.org-compo .terrain { max-width: 320px; }

.toasts { position: fixed; z-index: 200; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(440px, calc(100% - 32px)); display: grid; gap: 8px; pointer-events: none; }
.toast-item { pointer-events: auto; display: flex; gap: 12px; align-items: center; background: var(--cream); color: var(--ink); padding: 10px 8px 10px 12px; border-radius: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, .45); border-left: 4px solid #2f8a57; opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s; }
.toast-item.show { opacity: 1; transform: none; }
.toast-item p { flex: 1; font-weight: 600; font-size: 15px; line-height: 1.4; }
.toast-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #2f8a57; color: #fff; }
.toast-ic .i { width: 15px; height: 15px; stroke-width: 2.6; }
.toast-item.erreur { border-left-color: var(--danger); }
.toast-item.erreur .toast-ic { background: var(--danger); }
.toast-item.info { border-left-color: var(--gold-ink); }
.toast-item.info .toast-ic { background: var(--gold-ink); }
.toast-x { flex: none; width: 36px; height: 36px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.toast-x:hover { background: rgba(0, 0, 0, .06); }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero-l { max-width: 640px; margin: 0 auto; }
  .hero-r { max-width: 680px; margin: 0 auto; width: 100%; }
  .band-in { grid-template-columns: 1fr; }
  .guide { grid-template-columns: 1fr; gap: 40px; }
  .sec-head { grid-template-columns: 1fr; gap: 20px; }
  .org-detail { grid-template-columns: 1fr; }
  .cap-grid, .cap-login { grid-template-columns: 1fr; }
  .espace { grid-template-columns: 1fr; gap: 20px; }
  .espace-nav { position: sticky; top: 70px; z-index: 20; display: flex; gap: 6px; overflow-x: auto; margin: 0 -24px; padding: 10px 24px; background: rgba(17, 21, 18, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .espace-nav::-webkit-scrollbar { display: none; }
  .espace-nav a { flex: none; min-height: 42px; padding: 0 12px; font-size: 14px; }
  .compte-grid { grid-template-columns: 1fr; }
  .compo-grid { grid-template-columns: 1fr; }
  .auth-split { grid-template-columns: 1fr; min-height: 0; }
  .auth-visuel { order: -1; border-left: 0; border-bottom: 1px solid var(--line); padding: 28px var(--gouttiere) 32px; }
  .av-in { width: 100%; max-width: 640px; }
  .av-terrain, .av-pays, .av-points, .av-embleme, .av-fonctions { display: none; }
  .av-titre { font-size: clamp(30px, 7vw, 44px); }
  .auth-form { padding-top: 36px; padding-bottom: 56px; }
  .equipe-grid { grid-template-columns: 1fr; }
  .regl-grid { grid-template-columns: 1fr; gap: 24px; }
  .regl-sommaire { position: static; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; }
  .eq-compo { grid-template-columns: 1fr; }
  .eq-compo-terrain .terrain { margin: 0 auto; }
}
/* Organisation : onglets et statistiques */
.org-onglets { display: flex; gap: 4px; margin: -8px 0 22px; border-bottom: 1px solid var(--line); }
.org-onglets button { position: relative; border: 0; background: none; padding: 12px 16px 14px; font: 600 15px var(--sans); color: var(--muted); cursor: pointer; }
.org-onglets button:hover { color: var(--text); }
.org-onglets button[aria-current="page"] { color: var(--text); }
.org-onglets button[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--gold); }
.st-maj { color: var(--muted-2); font-size: 13px; margin: 0 0 18px; }
.st-bloc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 2.4vw, 28px); margin-bottom: 18px; }
.st-h { font-size: 20px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.01em; }
.st-h3 { font-size: 14px; font-weight: 700; color: var(--gold); margin: 22px 0 8px; letter-spacing: .02em; }
.st-sous { color: var(--muted); font-size: 14px; margin: 0 0 14px; max-width: 70ch; }
.st-sous b { color: var(--text); }
.st-tuiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.st-tuiles-3 { grid-template-columns: repeat(3, 1fr); }
.st-tuile { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: grid; gap: 2px; align-content: start; }
.st-tuile strong { font-size: clamp(30px, 3.2vw, 42px); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.st-tuile strong em { font-style: normal; font-size: .5em; color: var(--muted-2); font-weight: 700; margin-left: 2px; }
.st-tuile span { font-weight: 600; }
.st-tuile small { color: var(--muted); font-size: 13px; }
.st-entonnoir { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.st-entonnoir li { display: grid; grid-template-columns: 150px 1fr 110px 170px; gap: 14px; align-items: center; font-size: 14px; }
.st-e-nom { font-weight: 600; }
.st-e-barre, .st-p-barre { height: 12px; background: rgba(232, 226, 205, .06); border-radius: 4px; overflow: hidden; }
.st-e-barre i, .st-p-barre i { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.st-e-val { color: var(--muted); font-variant-numeric: tabular-nums; }
.st-e-val b { color: var(--text); font-size: 16px; }
.st-e-perte { font-size: 13px; color: var(--muted-2); }
.st-e-perte .lien, .st-bloc .lien { border: 0; background: none; padding: 0; font: inherit; color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.st-delais { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.st-delais p { margin: 0; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--muted); }
.st-delais b { color: var(--text); font-size: 18px; white-space: nowrap; }
.st-graphe { position: relative; margin: 12px 0 0; }
.st-graphe figcaption { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.st-svg { display: block; width: 100%; height: auto; overflow: visible; }
.st-svg text { fill: var(--muted-2); font: 500 11px var(--sans); }
.st-courbe text { font-size: 12px; }
.st-base { stroke: var(--line-2); }
.st-grille { stroke: var(--line); stroke-dasharray: 2 4; }
.st-col path { fill: var(--gold); opacity: .78; transition: opacity .15s; }
.st-col.fort path, .st-col.actif path { opacity: 1; }
.st-col.actif path { fill: var(--gold-2); }
.st-zero { fill: var(--line-2); }
.st-hit { fill: transparent; cursor: crosshair; }
.st-ligne { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.st-aire { fill: rgba(216, 187, 130, .1); }
.st-point { fill: var(--gold-2); stroke: var(--panel); stroke-width: 2; }
.st-curseur { stroke: var(--gold-2); stroke-width: 1; opacity: 0; pointer-events: none; }
.st-curseur.vu { opacity: .6; }
.st-bulle { position: absolute; top: -6px; transform: translate(-50%, -100%); background: var(--cream); color: var(--ink); font-size: 13px; font-weight: 600; padding: 7px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6); z-index: 2; }
.st-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.st-pastille { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-2); flex: none; }
.st-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.st-table { margin-top: 16px; font-size: 14px; }
.st-table summary { cursor: pointer; color: var(--gold-2); }
.st-table table { width: 100%; max-width: 560px; border-collapse: collapse; margin-top: 10px; font-variant-numeric: tabular-nums; }
.st-table th, .st-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.st-table th { color: var(--muted); font-weight: 600; }
.st-pays, .st-regions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-pays li { display: grid; grid-template-columns: 24px minmax(110px, 1fr) 1.2fr 28px; gap: 10px; align-items: center; font-size: 14px; }
.st-pays li .flag { width: 24px; height: 18px; border-radius: 3px; }
.st-pays .st-tag { font-style: normal; font-size: 12px; color: var(--gold-2); margin-left: 6px; white-space: nowrap; }
.st-pays b, .st-regions b { text-align: right; font-variant-numeric: tabular-nums; }
.st-regions li { display: grid; grid-template-columns: minmax(130px, 1fr) 1.2fr 56px; gap: 10px; align-items: center; font-size: 14px; }
.st-numeros { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.st-numeros li { display: grid; justify-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.st-numeros svg { width: 64px; height: auto; }
.st-partage { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; margin-top: 10px; }
.st-reglages { display: grid; gap: 16px; justify-items: start; }
.st-reglages .field { display: grid; gap: 6px; margin: 0; }
.st-lab { font-size: 13px; color: var(--muted); }
.st-apercu { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; place-items: center; }
.st-apercu canvas { display: block; width: 100%; max-width: 440px; height: auto; max-height: 70vh; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8); }
@media (max-width: 900px) {
  .st-tuiles { grid-template-columns: 1fr 1fr; }
  .st-tuiles-3, .st-duo, .st-delais, .st-partage { grid-template-columns: 1fr; }
  .st-entonnoir li { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .st-e-barre { grid-column: 1 / -1; grid-row: 2; }
  .st-e-perte { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .burger { display: flex; position: relative; z-index: 3; }   /* reste au-dessus du panneau : le même bouton ouvre et ferme */
  .ed-grid { grid-template-columns: 1fr; }
  /* Menu mobile : panneau qui glisse depuis la droite, sur un voile. */
  .menu { position: fixed; z-index: 2; top: 0; right: 0; bottom: 0; width: min(360px, 86vw); flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0 24px max(24px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; background: var(--bg-2); border-left: 1px solid var(--line-2); box-shadow: -30px 0 60px -20px rgba(0, 0, 0, .7); transform: translateX(105%); visibility: hidden; transition: transform .38s cubic-bezier(.32, .72, 0, 1), visibility 0s linear .38s; }
  .menu.open { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.32, .72, 0, 1), visibility 0s; }
  .menu-tete { display: flex; align-items: center; min-height: 84px; margin-bottom: 8px; border-bottom: 1px solid var(--line-2); color: var(--gold); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; }
  .menu a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; opacity: 0; transform: translateX(16px); transition: opacity .3s, transform .3s, color .15s; }
  .menu.open a { opacity: 1; transform: none; }
  .menu.open a:nth-of-type(2) { transition-delay: .04s; } .menu.open a:nth-of-type(3) { transition-delay: .08s; } .menu.open a:nth-of-type(4) { transition-delay: .12s; } .menu.open a:nth-of-type(5) { transition-delay: .16s; } .menu.open a:nth-of-type(6) { transition-delay: .2s; }
  .menu .btn { margin-top: 18px; border-bottom: 1px solid rgba(216,187,130,.45); }
  .menu-voile { display: block; position: fixed; z-index: 1; inset: 0; background: rgba(6, 9, 7, .62); opacity: 0; pointer-events: none; transition: opacity .38s; }
  .menu.open + .menu-voile { opacity: 1; pointer-events: auto; }
  .empty { grid-template-columns: 1fr; text-align: left; }
  .empty-ic { width: 90px; }
  .org-stats { grid-template-columns: 1fr 1fr; }
  .org-item > summary { grid-template-columns: 34px 1fr auto 20px; }
  .org-item > summary .hide-sm { display: none; }
}
@media (max-width: 640px) {
  .top-in { min-height: 70px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-mark img { width: 36px; height: 36px; }
  .brand-txt strong { font-size: 16px; }
  .menu { padding-left: 20px; padding-right: 20px; }
  .menu-tete { min-height: 70px; }
  .hero { padding-top: 36px; padding-bottom: 48px; }
  .hero-title { font-size: 42px; margin-bottom: 26px; white-space: normal; }
  .motto { font-size: 19px; gap: 10px; }
  .hero-lead { font-size: 17px; }
  .card { padding: 28px 20px 24px; border-radius: 16px; }
  .card-head { flex-wrap: wrap; }
  .grid2 { grid-template-columns: 1fr; }
  .price { flex-direction: column; align-items: flex-start; gap: 4px; }
  .logo-card { width: min(240px, 66%); padding: 7px; border-radius: 18px; }
  .motto { margin-top: 20px; }
  .ref-box { flex-wrap: nowrap; padding: 6px 14px; gap: 10px; }
  .ref-box span { font-size: 13px; }
  .ref-box strong { font-size: 18px; }
  .ref-box .link-btn { margin-left: auto; }
  .ok-badge { width: 40px; height: 40px; }
  .card-title.sm { font-size: 24px; }
  .pay { padding: 22px 18px 16px; }
  .pay h3 { font-size: 22px; }
  .btn-pay { font-size: 16px; padding: 0 14px; gap: 8px; }
  .pay-secure { text-align: left; }
  .btn.sm { min-height: 44px; }
  .org-tools input { font-size: 16px !important; min-height: 44px !important; }
  .panel-actions { margin: 0; }
  .page { padding-top: 32px; }
  .cap-bloc, .cap-pay { padding: 22px 18px; }
  .cap-id { padding: 18px; gap: 14px; }
  .flag-lg { width: 60px; height: 45px; }
  .ref-chip strong { font-size: 19px; }
  .pay-steps li { gap: 10px; }
  .declaration { padding: 16px 14px; }
  .decl .kv { grid-template-columns: 1fr; }
  .espace-nav { margin: 0 -16px; padding: 10px 16px; top: 70px; }
  .espace-nav a span { display: none; }
  .espace-nav a[aria-current="page"] span { display: inline; }
  .cap-site { display: none; }
  .compte { margin-left: auto; }
  .compte-txt small { display: none; }
  .top-cap .brand-txt strong, .top-orga .brand-txt strong { font-size: 14px; white-space: nowrap; letter-spacing: .04em; }
  .top-cap .brand-txt small, .top-orga .brand-txt small { letter-spacing: .1em; font-size: 10px; white-space: nowrap; }
  .top-cap .brand { gap: 10px; min-width: 0; }
  .compte-btn { max-width: 170px; padding-right: 8px; }
  .toasts { bottom: 12px; }
  .compte-btn { max-width: 190px; }
  .tuiles { grid-template-columns: 1fr; }
  .cap-id { flex-wrap: wrap; }
  .cap-statut { margin-left: 0; }
  .roster-row { grid-template-columns: 64px minmax(0, 1fr) 44px; }
  .roster-row .poste { grid-column: 1 / 3; }
  .roster-row .x-row { grid-row: 1; grid-column: 3; }
  .eq-effectif .roster-row { grid-template-columns: 60px minmax(0, 1fr) 44px; }
  .roster-entete { display: none; }
  .eq-effectif .roster-row { row-gap: 8px; padding: 10px; }
  .eq-effectif .roster-row label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .eq-effectif .roster-row .poste { grid-column: 1 / 3; }
  .statut-j { grid-row: 3; padding-left: 2px; }
  .eq-effectif .roster-row .poste { grid-column: 1 / 3; grid-row: 2; }
  .statut-j { grid-column: 1 / -1; grid-row: 3; }
  .eq-barre { bottom: 10px; padding: 10px 12px; }
  .eq-barre p { min-width: 100%; font-size: 14px; }
  .eq-barre .btn { flex: 1; }
  .med-reperes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
  .med-reperes li { position: static; animation: none; }
  .med-reperes span { white-space: normal; }
  .ed-postes { grid-template-columns: 1fr; }
  .ed-roster .roster-row { grid-template-columns: 60px minmax(0, 1fr) 44px; }
  .ed-roster .roster-row .poste { grid-column: 1 / 3; }
  .art h2 { font-size: 20px; }
  .art p, .art li { font-size: 15px; }
  .dlg-compo { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  .ha-cmd .row { width: 100%; }
  .ha-cmd .select { flex: 1; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .section { padding-top: 60px; padding-bottom: 60px; }
  .empty { padding: 26px 22px; }
  .card-dark { padding: 26px 22px; }
  .faq summary { font-size: 16px; gap: 14px; padding: 20px 0; }
  .faq details p { padding: 0 0 22px 36px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .org-tools input { max-width: none; margin-left: 0; }
}
