@import './focus.css';
@import './interface/design-system.css';

/* Les pages publiques reprennent les couleurs, polices et boutons du jeu. */
:root { color-scheme: dark; font: 16px/1.75 var(--ui-font-body); color: var(--ui-text); background: var(--ui-canvas); }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--ui-info); text-underline-offset: .22em; overflow-wrap: anywhere; }
a:hover { color: var(--ui-gold); }
p { margin: 0 0 18px; }
svg { flex: none; }
.skip { position: fixed; top: -100px; left: 16px; padding: 12px 18px; background: var(--ui-surface-inset); z-index: 10; }
.skip:focus { top: 12px; }
.site-header, .support-shell, .site-footer { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; border-bottom: 1px solid var(--ui-divider); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ui-text); text-decoration: none; font: 800 30px/1 var(--ui-font-display); white-space: nowrap; }
.brand svg { width: 44px; height: 44px; }
.header-context { margin-right: auto; padding-left: 22px; border-left: 1px solid var(--ui-divider); color: var(--ui-text-muted); font-size: 14px; }
.support-shell { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 64px; align-items: start; padding-block: 44px 72px; }
.support-sidebar { position: sticky; top: 24px; }
.site-nav { display: grid; gap: 6px; }
.site-nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px; border: 1px solid transparent; border-radius: var(--ui-radius-sm); font-size: 14px; font-weight: 650; line-height: 1.5; text-decoration: none; color: var(--ui-text-muted); }
.site-nav svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.site-nav a:hover { background: var(--ui-surface); color: var(--ui-text); }
.site-nav [aria-current="page"] { background: var(--ui-surface-raised); border-color: var(--ui-divider); color: var(--ui-gold); }
.sidebar-note { margin: 26px 12px 0; padding-top: 22px; border-top: 1px solid var(--ui-divider); font-size: 13px; color: var(--ui-text-muted); }
.page { min-width: 0; }
.page-heading { margin-bottom: 30px; }
h1, h2, h3 { color: var(--ui-text); }
h1 { margin: 0; font: 800 clamp(38px, 4.5vw, 58px)/1.06 var(--ui-font-display); letter-spacing: -.015em; text-wrap: balance; }
h2 { margin: 0 0 16px; font: 800 30px/1.2 var(--ui-font-display); }
h3 { margin: 24px 0 10px; font-size: 17px; line-height: 1.45; }
.intro { max-width: 65ch; margin: 18px 0 14px; font-size: 17px; color: var(--ui-text-muted); }
.updated { color: var(--ui-text-muted); font-size: 12px; margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 2px 18px; padding: 18px 0; margin-bottom: 6px; border-block: 1px solid var(--ui-divider); font-size: 13px; }
.toc strong { flex: 0 0 100%; color: var(--ui-text-muted); margin-bottom: 4px; font-weight: 650; }
.toc a { display: inline-flex; align-items: center; min-height: 36px; }
.content section, .help-section { padding-top: 32px; scroll-margin-top: 24px; }
.content section + section { margin-top: 32px; border-top: 1px solid var(--ui-divider); }
.content section > :last-child { margin-bottom: 0; }
.content p, .content li { max-width: 76ch; }
ul, ol { margin: 12px 0 22px; padding-left: 24px; }
li { padding-left: 4px; margin-block: 10px; }
.callout, .quick-read { padding: 22px 24px; border-left: 3px solid var(--ui-gold); border-radius: 0 var(--ui-radius-sm) var(--ui-radius-sm) 0; background: var(--ui-surface-inset); margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout--warning { border-color: var(--ui-danger); }
.quick-read { margin: 0 0 28px; }
.quick-read h2 { font-size: 24px; }
.quick-read ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; margin-bottom: 0; }
.quick-read li { margin: 0; }
.small { font-size: 13px; color: var(--ui-text-muted); }
.button + .small { margin-top: 16px; }
.email { font-weight: 700; }
html:root .page .button.ui-button { max-width: 100%; height: auto; min-height: 48px; padding-block: 12px; }
.help-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; }
.help-action { display: block; padding: 22px; background: var(--ui-surface-raised); border: 1px solid var(--ui-divider); border-radius: var(--ui-radius-control); text-decoration: none; }
.help-action h2 { margin-bottom: 8px; font-size: 26px; }
.help-action p { color: var(--ui-text-muted); font-size: 14px; margin: 0; }
.help-action:hover { border-color: var(--ui-gold); }
.faq { border-top: 1px solid var(--ui-divider); }
.faq details { border-bottom: 1px solid var(--ui-divider); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; list-style: none; padding: 19px 0; cursor: pointer; font-size: 15px; font-weight: 700; line-height: 1.55; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 400; line-height: 1; color: var(--ui-gold); }
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { color: var(--ui-gold); }
.faq details > :not(summary) { color: var(--ui-text-muted); font-size: 15px; margin-right: 24px; }
.faq details p:last-child { margin-bottom: 22px; }
.directory { border-top: 1px solid var(--ui-divider); }
.directory-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--ui-divider); text-decoration: none; }
.directory-row h3 { margin: 0 0 5px; font-size: 16px; }
.directory-row p { margin: 0; font-size: 14px; color: var(--ui-text-muted); }
.directory-row:hover h3 { color: var(--ui-gold); }
.row-open { color: var(--ui-gold); font-size: 24px; }
.parent-note { margin-top: 32px; padding: 24px; background: var(--ui-surface-inset); border-radius: var(--ui-radius-control); }
.parent-note h2 { font-size: 26px; }
.parent-note p { font-size: 14px; color: var(--ui-text-muted); }
.parent-note > :last-child { margin-bottom: 0; }
address { font-style: normal; margin-bottom: 22px; }
.identity { margin: 0 0 22px; }
.identity > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--ui-divider); }
.identity dt { color: var(--ui-text-muted); font-size: 14px; }
.identity dd { margin: 0; overflow-wrap: anywhere; }
.site-footer { padding-block: 28px 34px; border-top: 1px solid var(--ui-divider); color: var(--ui-text-muted); font-size: 12px; }
.footer-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.footer-heading p { margin: 0; }
.footer-brand { color: var(--ui-text); text-decoration: none; font-weight: 750; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer [aria-current="page"] { color: var(--ui-gold); }
@media (max-width: 960px) {
  .site-header, .support-shell, .site-footer { width: calc(100% - 40px); }
  .support-shell { grid-template-columns: 210px minmax(0, 1fr); gap: 32px; }
  .quick-read ul { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-header { min-height: 82px; gap: 12px; }
  .brand { font-size: 26px; gap: 8px; }
  .brand svg { width: 36px; height: 36px; }
  .header-context, .sidebar-note { display: none; }
  .support-shell { display: block; padding-block: 20px 44px; }
  .support-sidebar { position: static; margin-bottom: 30px; }
  .site-nav { grid-template-columns: 1fr 1fr; gap: 4px; padding-bottom: 20px; border-bottom: 1px solid var(--ui-divider); }
  .site-nav a { font-size: 12px; gap: 8px; padding: 10px 8px; }
  .site-nav svg { width: 18px; height: 18px; }
  .intro { font-size: 16px; }
  .page-heading { margin-bottom: 24px; }
  .toc { gap: 4px 16px; }
  .toc a { min-height: 40px; }
  .help-action { padding: 18px; }
  .content { font-size: 15px; }
  .callout, .quick-read { padding: 20px; }
}
@media (max-width: 420px) {
  .site-header, .support-shell, .site-footer { width: calc(100% - 32px); }
  .help-actions { grid-template-columns: 1fr; gap: 10px; }
  .help-action { padding: 18px 20px; }
  .identity > div { grid-template-columns: 1fr; gap: 4px; }
  .site-header .back-game { padding-inline: 10px; font-size: 12px; }
}
@media print {
  :root { color-scheme: light; --ui-text: #000; --ui-text-muted: #333; --ui-canvas: #fff; --ui-surface: #fff; --ui-surface-raised: #fff; --ui-surface-inset: #fff; --ui-info: #000; --ui-gold: #000; --ui-divider: #bbb; font-size: 11pt; }
  .site-header, .support-shell, .site-footer { width: 100%; }
  .support-shell { display: block; padding-block: 24px; }
  .support-sidebar, .skip, .back-game, .toc, .site-footer nav { display: none !important; }
  h1 { font-size: 30pt; }
  h2, h3 { break-after: avoid; }
  .callout, .quick-read, .identity > div { break-inside: avoid; }
  html:root .page .button.ui-button { background: transparent; box-shadow: none; border: 1px solid #999; color: #000; }
}
