:root,
html[data-theme="dark"] {
  --bg: #0c0b09;
  --bg-alt: #14110c;
  --surface: #18140e;
  --ink: #f3ead9;
  --muted: #b09c7c;
  --gold: #d4b24a;
  --gold-soft: #e8d48b;
  --red: #b42318;
  --line: rgba(212, 178, 74, 0.28);
  --header: #090807;
  --rail: #160f0a;
  --input: #1c1812;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --ok: #7dba6a;
  --warn: #e0b34a;
  --danger: #d45b52;
  --hero-wash: radial-gradient(900px 420px at 85% 0%, rgba(212, 178, 74, 0.2), transparent 60%);
  --kanji: rgba(212, 178, 74, 0.07);
  --theme-color: #0c0b09;
}

html[data-theme="light"] {
  --bg: #f3ead8;
  --bg-alt: #e7dcc4;
  --surface: #fffdf7;
  --ink: #1c140c;
  --muted: #6a5840;
  --gold: #8b6914;
  --gold-soft: #b3861c;
  --red: #9b1c14;
  --line: rgba(28, 20, 12, 0.16);
  --header: #f7f0e0;
  --rail: #1c140c;
  --input: #fffdf7;
  --shadow: 0 20px 50px rgba(80, 50, 10, 0.12);
  --ok: #2f7a3e;
  --warn: #9a6b00;
  --danger: #b42318;
  --hero-wash: radial-gradient(900px 420px at 85% 0%, rgba(155, 28, 20, 0.08), transparent 60%);
  --kanji: rgba(28, 20, 12, 0.05);
  --theme-color: #f3ead8;
}

:root {
  --font-display: "Cinzel", "Palatino Linotype", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-jp: "Noto Sans JP", sans-serif;
  --radius-card: 16px;
  --radius-box: 12px;
  --lift: 0 14px 30px color-mix(in srgb, var(--gold) 16%, transparent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--hero-wash), var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold-soft);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  z-index: 20;
  background: var(--gold);
  color: #111;
  padding: 0.4rem 0.7rem;
}

.wrap {
  width: min(1180px, calc(100% - max(2rem, env(safe-area-inset-left) + env(safe-area-inset-right) + 1.25rem)));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(720px, calc(100% - 2rem));
}

.wrap.wide {
  width: min(1280px, calc(100% - 2rem));
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--header);
  padding-top: env(safe-area-inset-top);
}

.mast-rail {
  background: var(--rail);
  color: #f3ead9;
  min-height: 38px;
}

html[data-theme="light"] .mast-rail {
  background: #1c140c;
}

.mast-rail-inner,
.mast-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mast-rail-inner {
  min-height: 38px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mast-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0;
}

.theme-switch {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(232, 212, 139, 0.35);
  border-radius: var(--radius-box);
}

.theme-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #e8d48b;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.theme-btn[aria-pressed="true"] {
  background: #d4b24a;
  color: #1a1408;
}

.mast-main {
  min-height: 128px;
}

.mast-main-inner {
  min-height: 128px;
  padding: 1.1rem 0;
  align-items: stretch;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-jp);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--gold);
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: 0.18em;
  line-height: 1;
}

.brand-copy em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
}

.brand-copy small {
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1.15rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-box);
  padding: 0.35rem 0.45rem;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav a:hover {
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, transparent);
}

.nav-cta {
  border: 1px solid var(--gold);
  padding: 0.45rem 0.8rem;
  color: var(--gold);
}

.nav-cta:hover {
  background: var(--gold);
  color: #1a1408;
}

.nav-toggle {
  display: none;
  appearance: none;
  position: relative;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  border-radius: var(--radius-box);
}

.nav-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle.is-open .nav-toggle-bars {
  background: transparent;
}

.nav-toggle.is-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.2rem 0 4.6rem;
}

.hero-kanji {
  position: absolute;
  right: -4vw;
  top: -2rem;
  font-family: var(--font-jp);
  font-size: clamp(8rem, 28vw, 22rem);
  font-weight: 900;
  color: var(--kanji);
  line-height: 0.8;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.8rem;
  align-items: center;
  position: relative;
}

.stamp {
  display: inline-block;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  transform: rotate(-6deg);
  margin: 0 0 1rem;
  border-radius: 8px;
}

.eyebrow,
.kicker {
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0.3rem 0 0.8rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 4.1rem);
  font-weight: 900;
}

.hero-line,
.hero-stik {
  display: block;
}

.hero-stik {
  color: var(--gold);
}

.subtitle {
  font-size: 1.08rem;
  color: var(--gold-soft);
}

.hero-quote {
  margin: 1.2rem 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--gold);
  font-size: 1.2rem;
}

.lead {
  font-size: 1.12rem;
}

.lead.muted,
.muted {
  color: var(--muted);
}

.hero-actions,
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-poster {
  margin: 0;
  border: 1px solid var(--line);
  padding: 0.7rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hero-poster:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--lift);
}

.hero-poster img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.hero-poster figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-facts {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  position: relative;
}

.hero-facts li {
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.hero-facts span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.hero-facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

.is-home .hero-grid {
  grid-template-columns: 1fr 1.15fr;
}

.is-home .hero-poster {
  max-width: 640px;
  width: 100%;
  justify-self: end;
}

.is-home .hero-poster img {
  height: auto;
}

.is-home .contact-tile {
  min-height: 64px;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding: 0.7rem 0;
}

.ticker p {
  margin: 0;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--gold);
  padding: 0.75rem 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  border-radius: var(--radius-box);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--lift);
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #1a1408;
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  color: var(--gold);
}

.btn-ghost {
  background: transparent;
}

.btn-danger {
  border-color: var(--danger);
  color: var(--danger);
}

.btn-small {
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.suivi-table-wrap {
  margin-top: 1.6rem;
  overflow-x: auto;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.6rem;
}

.section-head.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: end;
}

.section-lead {
  color: var(--muted);
  margin: 0;
}

.org-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.org-card,
.program-card,
.vaccine-card {
  position: relative;
  border: 1px solid var(--line);
  padding: 1.25rem 1.2rem 1.2rem;
  background: var(--surface);
  border-radius: var(--radius-card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.org-card:hover,
.program-card:hover,
.vaccine-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--lift);
}

.card-index {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.org-code {
  font-family: var(--font-display);
  color: var(--gold);
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.program-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.program-card {
  margin: 0;
}

.program-card h3 {
  margin: 0.35rem 0 0.45rem;
}

.program-card.is-main {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  background:
    linear-gradient(90deg, var(--gold), var(--gold)) 0 0 / 4px 100% no-repeat,
    var(--surface);
}

.program-card.is-main h3 {
  color: var(--gold);
}

.program-dates {
  color: var(--gold);
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.program-place {
  color: var(--muted);
  margin: 0;
}

.nation-cloud {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 0 0 1rem;
}

.nation-cloud li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  padding: 0.42rem 0.8rem 0.42rem 0.5rem;
  background: var(--surface);
  font-size: 0.92rem;
  border-radius: var(--radius-box);
}

.nation-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent);
}

.nation-flag-emoji {
  font-size: 1.05rem;
  line-height: 1;
}

.nation-cloud li:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: var(--lift);
}

.vaccine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.vaccine-mark {
  color: var(--red);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.notice,
.vaccine-banner,
.form-errors,
.flash {
  border: 1px solid var(--line);
  padding: 1rem 1.2rem;
  background: color-mix(in srgb, var(--red) 14%, var(--surface));
  border-radius: var(--radius-card);
}

.notice {
  margin-top: 1.5rem;
  background: color-mix(in srgb, var(--gold) 12%, var(--surface));
}

.vaccine-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.contact-tiles {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.contact-tile {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-tile span {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.contact-tile strong {
  font-size: 1.02rem;
  color: var(--ink);
}

.contact-tile:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--lift);
}

.contact-tile:hover strong {
  color: var(--gold);
}

.motto {
  margin: 0;
  border: 1px solid var(--gold);
  padding: 1.5rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  background: var(--surface);
  border-radius: var(--radius-card);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  background: var(--header);
}

.footer-main {
  padding: 1.5rem 0 1.35rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr) minmax(0, 1.1fr);
  gap: 1.4rem 2rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.footer-seal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-jp);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--gold);
}

.footer-brand-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  line-height: 1.1;
  color: var(--ink);
}

.footer-brand-row em {
  display: block;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--gold);
}

.footer-motto {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.35;
  max-width: 22rem;
}

.footer-meta {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-col h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.footer-nav,
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer-nav a,
.footer-contacts a {
  display: flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink);
  text-decoration: none;
}

.footer-contacts a {
  color: var(--gold-soft);
  word-break: break-word;
}

.footer-nav a:hover,
.footer-contacts a:hover {
  color: var(--gold);
}

.footer-bar {
  background: var(--rail);
  color: #f3ead9;
  padding-bottom: env(safe-area-inset-bottom);
}

html[data-theme="light"] .footer-bar {
  background: #1c140c;
}

.footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1rem;
  min-height: 48px;
  padding: 0.5rem 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.footer-orgs {
  color: #e8d48b;
}

.footer-org {
  margin: 0;
  flex-shrink: 0;
}

.footer-org a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(232, 212, 139, 0.4);
  color: #e8d48b;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-box);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-span {
  grid-column: 1 / -1;
}

.field-input,
.field-file,
select,
textarea,
input[type="date"],
input[type="search"],
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  background: var(--input);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.78rem 0.85rem;
  font: inherit;
  border-radius: var(--radius-box);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field-input:hover,
select:hover,
textarea:hover,
input[type="date"]:hover {
  border-color: var(--gold);
}

.field-input:focus,
select:focus,
textarea:focus,
input[type="date"]:focus,
input[type="search"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 28%, transparent);
}

.field-input.is-locked {
  opacity: 0.78;
  cursor: not-allowed;
  background: color-mix(in srgb, var(--gold) 8%, var(--input));
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 3px),
    calc(100% - 10px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

html[data-theme="dark"] input[type="date"] {
  color-scheme: dark;
}

html[data-theme="light"] input[type="date"] {
  color-scheme: light;
}

.errorlist {
  color: var(--danger);
  padding-left: 1.1rem;
  margin: 0.2rem 0 0;
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.75rem 0.4rem;
  vertical-align: middle;
}

.bracket {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 1.2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.bracket-round h2 {
  font-size: 1rem;
  color: var(--gold);
}

.bracket-col {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-height: calc(var(--slots, 2) * 92px);
  gap: 0.8rem;
}

.bout {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.55rem 0.7rem;
}

.bout.is-bye {
  opacity: 0.75;
}

.fighter {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0.25rem 0;
}

.fighter span {
  color: var(--gold);
  font-size: 0.85rem;
}

.flash-list {
  list-style: none;
  padding: 1rem 0 0;
}

.login-stage {
  min-height: 52vh;
  display: grid;
  place-items: center;
  padding: 3rem 0;
}

.login-card {
  width: min(440px, 100%);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow);
  border-radius: var(--radius-card);
}

.login-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.staff-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 70vh;
  border-top: 1px solid var(--line);
}

.staff-side {
  background: var(--bg-alt);
  border-right: 1px solid var(--line);
  padding: 1.6rem 1.2rem;
}

.staff-side-kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
}

.staff-nav {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0 1.4rem;
}

.staff-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.45rem 0.5rem;
}

.staff-nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--gold);
  border-left: 3px solid var(--gold);
}

.staff-note {
  margin-top: 1.2rem;
  font-size: 0.82rem;
}

.staff-main {
  padding: 2rem 1.6rem 3rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  margin: 0;
}

.panel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.panel-link {
  border: 1px solid var(--gold);
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.subhead {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
}

.pill-pending { color: var(--warn); border-color: var(--warn); }
.pill-validated { color: var(--ok); border-color: var(--ok); }
.pill-rejected { color: var(--danger); border-color: var(--danger); }

.invite-create,
.filter-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.8rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.filter-bar {
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
}

.url-chip {
  display: block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.facts {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.facts div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
}

.facts dt {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0.15rem 0 0;
}

.doc-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.status-form {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.6rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .org-grid,
  .program-grid,
  .contact-grid,
  .field-grid,
  .section-head.split,
  .staff-shell,
  .stat-grid,
  .vaccine-grid,
  .detail-grid,
  .invite-create,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 1.2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .footer-nav a {
    min-height: 38px;
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.86rem;
  }

  .footer-main {
    padding: 1.15rem 0 1.05rem;
  }

  .mast-rail-inner {
    min-height: 32px;
    gap: 0.5rem;
  }

  .mast-meta {
    flex: 1;
    min-width: 0;
  }

  .theme-btn {
    padding: 0.28rem 0.55rem;
  }

  .mast-main,
  .mast-main-inner {
    min-height: 0;
  }

  .mast-main-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 0.7rem;
    padding: 0.4rem 0;
  }

  .brand {
    gap: 0.6rem;
    min-width: 0;
    flex: 1;
  }

  .brand-copy strong {
    font-size: 1.12rem;
    letter-spacing: 0.08em;
  }

  .brand-copy em {
    font-size: 0.7rem;
    white-space: normal;
    overflow: hidden;
    max-width: 14rem;
    line-height: 1.2;
  }

  .brand-copy small {
    display: none;
  }

  .brand-seal {
    width: 40px;
    height: 40px;
    font-size: 0.92rem;
    border-width: 1.5px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    flex-shrink: 0;
  }

  .nav {
    display: none;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav.is-open {
    display: flex;
    border-top: 1px solid var(--line);
    margin-top: 0.2rem;
    padding-top: 0.25rem;
  }

  .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    justify-content: center;
    margin-top: 0.5rem;
  }

  .hero {
    padding: 2.2rem 0 2.6rem;
  }

  .hero-kanji {
    font-size: 7rem;
    right: -2rem;
    top: 0;
  }

  .section {
    padding: 2.4rem 0;
  }

  .staff-side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1rem;
  }

  .staff-nav {
    display: flex;
    overflow-x: auto;
    gap: 0.45rem;
    margin: 0.6rem 0 0.8rem;
    -webkit-overflow-scrolling: touch;
  }

  .staff-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
  }

  .staff-main {
    padding: 1.2rem 1rem 2rem;
    overflow-x: auto;
  }

  .data-table {
    min-width: 640px;
  }

  .reg-submit {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-xl,
  .reg-submit .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: min(calc(100% - 1.2rem), 1120px);
  }

  .mast-meta {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    gap: 0.25rem 0.65rem;
  }

  .mast-meta span:nth-child(-n+2) {
    display: none;
  }

  .pass {
    border-radius: 18px;
  }

  .footer-main {
    padding: 1rem 0 0.9rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .footer-motto {
    font-size: 0.9rem;
  }

  .footer-contacts a {
    min-height: 40px;
  }

  .footer-bar-inner {
    min-height: 0;
    padding: 0.55rem 0;
    flex-wrap: wrap;
  }

  .footer-legal {
    flex: 1;
    min-width: 0;
    font-size: 0.7rem;
  }

  .footer-orgs {
    display: none;
  }
}

@media (max-width: 1100px) {
  .is-home .org-grid {
    grid-template-columns: 1fr 1fr;
  }

  .is-home .hero-facts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .is-home .hero {
    padding: 1.8rem 0 2rem;
  }

  .is-home .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .is-home .hero-copy {
    order: 1;
  }

  .is-home .hero-poster {
    order: 2;
    max-width: min(100%, 28rem);
    justify-self: center;
    margin-inline: auto;
  }

  .is-home .hero-facts {
    margin-top: 1.4rem;
  }

  .is-home .org-grid,
  .is-home .vaccine-grid {
    grid-template-columns: 1fr 1fr;
  }

  .is-home .program-grid {
    grid-template-columns: 1fr;
  }

  .is-home .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .is-home .hero-actions .btn {
    text-align: center;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .is-home .hero h1 {
    font-size: clamp(1.85rem, 7.4vw, 2.55rem);
    overflow-wrap: anywhere;
  }

  .is-home .hero-quote {
    font-size: 1.05rem;
  }

  .is-home .motto {
    font-size: 1.2rem;
    padding: 1.15rem 1.1rem;
  }

  .is-home .section-head.split {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .is-home .hero {
    padding: 1.35rem 0 1.5rem;
  }

  .is-home .hero-kanji {
    font-size: clamp(4.4rem, 42vw, 7rem);
    right: -8vw;
    top: -0.4rem;
    opacity: 0.7;
  }

  .is-home .hero-poster {
    max-width: none;
    width: 100%;
    padding: 0.55rem;
  }

  .is-home .hero-actions {
    grid-template-columns: 1fr;
  }

  .is-home .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .is-home .hero-facts {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .is-home .hero-facts li {
    display: grid;
    grid-template-columns: 7.2rem 1fr;
    gap: 0.6rem;
    align-items: center;
    padding: 0.75rem 0.9rem;
  }

  .is-home .hero-facts span {
    margin: 0;
  }

  .is-home .org-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .is-home .program-grid,
  .is-home .vaccine-grid,
  .is-home .contact-grid {
    grid-template-columns: 1fr;
  }

  .is-home .org-card,
  .is-home .program-card,
  .is-home .vaccine-card {
    padding: 0.95rem 0.9rem;
  }

  .is-home .org-code {
    font-size: 1rem;
  }

  .is-home .org-card p:last-child {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .is-home .section-head {
    margin-bottom: 1.1rem;
  }

  .is-home .section-head h2 {
    font-size: 1.45rem;
  }

  .is-home .nation-cloud {
    gap: 0.4rem;
  }

  .is-home .nation-cloud li {
    padding: 0.4rem 0.65rem 0.4rem 0.4rem;
    font-size: 0.84rem;
    min-height: 40px;
  }

  .is-home .contact-tile {
    min-height: 52px;
  }

  .is-home .contact-tile strong {
    overflow-wrap: anywhere;
    font-size: 0.95rem;
  }

  .is-home .notice,
  .is-home .vaccine-banner {
    padding: 0.85rem 0.95rem;
    font-size: 0.92rem;
  }

  .is-home .ticker p {
    letter-spacing: 0.14em;
    font-size: 0.7rem;
  }
}

@media (max-width: 420px) {
  .is-home .org-grid {
    grid-template-columns: 1fr;
  }

  .is-home .stamp {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .is-home .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .is-home .hero-facts li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (hover: none) {
  .is-home .org-card:hover,
  .is-home .program-card:hover,
  .is-home .vaccine-card:hover,
  .is-home .contact-tile:hover,
  .is-home .hero-poster:hover,
  .is-home .nation-cloud li:hover,
  .is-home .btn:hover {
    transform: none;
    box-shadow: none;
  }
}

@media print {
  .masthead,
  .site-footer,
  .staff-side,
  .hero-actions,
  .btn {
    display: none !important;
  }

  body,
  .staff-main {
    background: #fff;
    color: #111;
  }

  .bout,
  .org-card {
    break-inside: avoid;
  }
}

/* --- Formulaire d'inscription --- */
.reg-page {
  padding: 2.4rem 0 5rem;
}

.reg-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.6rem;
  animation: rise 0.55s ease both;
}

.reg-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.reg-lock {
  min-width: 160px;
  border: 1px solid var(--gold);
  padding: 0.9rem 1rem;
  text-align: right;
  background: var(--surface);
  animation: rise 0.55s ease 0.08s both;
}

.reg-lock-code {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: 0.12em;
}

.reg-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1.4rem;
}

.reg-steps li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.65rem;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.reg-steps li span {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.78rem;
}

.reg-steps li.is-current,
.reg-steps li.is-done {
  border-bottom-color: var(--gold);
  color: var(--ink);
}

.reg-alert,
.reg-errors {
  margin-bottom: 1.2rem;
  animation: rise 0.45s ease both;
}

.reg-panel {
  border: 1px solid var(--line);
  margin: 0 0 1.15rem;
  padding: 1.35rem 1.25rem 1.3rem;
  background: var(--surface);
  box-shadow: 0 10px 30px color-mix(in srgb, #000 12%, transparent);
  animation: rise 0.55s ease both;
}

.reg-panel:nth-of-type(2) { animation-delay: 0.05s; }
.reg-panel:nth-of-type(3) { animation-delay: 0.1s; }
.reg-panel:nth-of-type(4) { animation-delay: 0.15s; }
.reg-panel:nth-of-type(5) { animation-delay: 0.2s; }

.reg-panel legend {
  font-family: var(--font-display);
  color: var(--gold);
  padding: 0 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.reg-num {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--gold);
  font-size: 0.7rem;
}

.type-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 0.4rem 0 1rem;
  padding: 0;
}

.type-choice > div,
.type-choice > label {
  margin: 0;
}

.type-choice label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 92px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--input);
  cursor: pointer;
  font-weight: 700;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.type-choice label:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.type-choice label.is-picked {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, var(--input));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--gold) 18%, transparent);
}

.type-choice input {
  accent-color: var(--gold);
  width: 1.1rem;
  height: 1.1rem;
}

.age-chip {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dropzone {
  position: relative;
  min-height: 112px;
  border: 1px dashed var(--line);
  background: color-mix(in srgb, var(--gold) 6%, var(--input));
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dropzone:hover,
.dropzone.is-over,
.dropzone.has-file {
  border-color: var(--gold);
  border-style: solid;
}

.dropzone.is-over {
  transform: scale(1.01);
  background: color-mix(in srgb, var(--gold) 16%, var(--input));
}

.dropzone .field-file {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
}

.dropzone-face {
  pointer-events: none;
  display: grid;
  place-content: center;
  gap: 0.25rem;
  min-height: 112px;
  padding: 1rem;
  text-align: center;
}

.dropzone-face strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.dropzone-name {
  color: var(--muted);
  font-size: 0.82rem;
  word-break: break-all;
}

.dropzone-preview {
  position: absolute;
  right: 0.6rem;
  top: 0.6rem;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--gold);
}

.reg-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: sticky;
  bottom: 0;
  padding: 1rem 0 0.2rem;
  background: linear-gradient(180deg, transparent, var(--bg) 28%);
  z-index: 4;
}

.btn-xl {
  padding: 0.95rem 1.5rem;
  font-size: 1.02rem;
}

.btn-gold {
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--gold) 35%, transparent);
}

.reveal.is-entering {
  animation: rise 0.35s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .reg-hero,
  .reg-submit,
  .type-choice {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .reg-page {
    padding: 1.1rem 0 3.2rem;
  }

  .reg-lock {
    text-align: left;
  }

  .reg-steps {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
  }

  .reg-steps li {
    flex: 0 0 auto;
    min-width: 5.6rem;
    padding: 0.45rem 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reg-hero,
  .reg-lock,
  .reg-panel,
  .reveal.is-entering,
  .ticker p,
  .nation-cloud li {
    animation: none !important;
  }

  .type-choice label:hover,
  .btn-gold:hover,
  .btn:hover,
  .org-card:hover,
  .program-card:hover,
  .vaccine-card:hover,
  .contact-tile:hover,
  .hero-poster:hover,
  .nation-cloud li:hover,
  .dropzone.is-over {
    transform: none;
  }
}
