/* ==========================================================================
   D20 Convention 2027 - static holding site
   Design tokens and components extracted from the live site, per
   ia-tasks-todo/design-system-brief.md. No framework, no third-party CSS.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts - self-hosted (SIL Open Font License). No font CDN at runtime.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/poppins-900-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/poppins-900-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  --brand: #9D1C1A;
  --brand-dark: #6E1010;
  --gold: #D09E47;
  --ink: #212121;
  --ink-body: #4A4A4A;
  --surface: #FFFFFF;
  --surface-muted: #F4F4F4;
  --surface-dark: #1A1A1A;
  --surface-black: #000000;
  --rule: #E2E2E2;

  --font-display: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Lato', ui-sans-serif, system-ui, sans-serif;

  --radius-pill: 9999px;
  --container: 1100px;
  --gutter: 24px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 600; text-transform: uppercase; }
h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 600; text-transform: uppercase; }
h3 { font-size: 22px; font-weight: 600; color: var(--brand); }
h4 { font-size: 18px; font-weight: 600; }

p { margin: 0 0 1.2em; }

a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

/* Every interactive element gets a visible focus ring. The live site has none. */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

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

/* --------------------------------------------------------------------------
   Layout: full-bleed bands, constrained content
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(48px, 7vw, 84px); }
.band-dark  { background: var(--surface-dark); color: #EDEDED; }
.band-black { background: var(--surface-black); color: #EDEDED; }
.band-brand { background: var(--brand); color: #FFFFFF; }
.band-light { background: var(--surface); color: var(--ink-body); }
.band-muted { background: var(--surface-muted); color: var(--ink-body); }

.band-dark h1, .band-dark h2, .band-dark h4,
.band-black h1, .band-black h2, .band-black h4,
.band-brand h1, .band-brand h2, .band-brand h4 { color: #FFFFFF; }

.band-dark h3, .band-black h3 { color: var(--gold); }
.band-brand h3 { color: #FFFFFF; }

.band-dark a, .band-black a { color: var(--gold); }
.band-dark a:hover, .band-black a:hover { color: #E9BE76; }
.band-brand a { color: #FFFFFF; }

.band-title { text-align: center; margin-bottom: 2rem; }

/* --------------------------------------------------------------------------
   Utility bar
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--surface-black);
  color: #FFFFFF;
  font-size: 12px;
  letter-spacing: 1px;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding-block: 8px;
}
.topbar-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.4;
}
.social {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.social a {
  color: #FFFFFF;
  display: inline-flex;
  text-decoration: none;
}
.social a:hover { color: var(--gold); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.brand-lockup { display: inline-flex; align-items: center; text-decoration: none; }
.brand-lockup img { height: 50px; width: auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; fill: currentColor; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  /* A nav item must never break across two lines. If a label is added and the
     row stops fitting, collapse to the menu earlier rather than letting it wrap. */
  white-space: nowrap;
}
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current='page'] {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    z-index: 20;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 16px;
  }
  .site-nav li + li { border-top: 1px solid var(--rule); }
  .site-nav a { display: block; padding: 14px 0; border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

/* hero-hex-texture.webp is a clean crop of the brand hero. Do not swap in
   brand/hero-hex-field.webp: that file is the full 2026 banner and has the logo,
   the JDR Ninja badge and "16-17 MAI 2026 / POLYVALENTE DE L'ANCIENNE-LORETTE"
   baked into it, which would print last year's dates behind this year's badge. */
.hero {
  position: relative;
  background-color: var(--surface-dark);
  background-image: url('../img/hero-hex-texture.webp');
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  text-align: center;
  padding-block: clamp(40px, 7vw, 76px);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
/* The mark is the page heading, so it lives inside the h1 and its alt text is
   what the heading reads as. The h1 itself is only a stack here. */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin: 0;
  font-size: inherit;
  text-transform: none;
  color: inherit;
}
.hero-logo {
  width: min(440px, 78vw);
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.6));
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(15px, 2.1vw, 19px);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

/* Edition badge. In state 1 the dates are unknown, so this carries the year
   and "dates à venir" rather than a date. Red disc, white condensed caps. */
.edition-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  color: #FFFFFF;
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.15;
  padding: 12px;
}
.edition-badge .badge-year {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 1px;
}
.edition-badge .badge-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
}

/* Compact hero for the inner pages */
.page-hero {
  background-color: var(--surface-dark);
  background-image: linear-gradient(rgba(26, 26, 26, 0.82), rgba(26, 26, 26, 0.82)), url('../img/hero-hex-texture.webp');
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  padding-block: clamp(40px, 6vw, 64px);
  text-align: center;
}
.page-hero h1 { color: #FFFFFF; margin-bottom: 0; }
.page-hero .page-hero-kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

/* --------------------------------------------------------------------------
   Pill CTA
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--brand);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--brand);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #FFFFFF;
}
.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: #FFFFFF;
}
.btn-ghost:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--brand);
}
.btn-sm { font-size: 13px; padding: 11px 22px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn-row.is-centered { justify-content: center; }

/* --------------------------------------------------------------------------
   Stat row
   -------------------------------------------------------------------------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 20px;
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 50px);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 10px;
}
.stat-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #FFFFFF;
  margin: 0;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   Editorial columns
   -------------------------------------------------------------------------- */

.col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.col-grid h3 { margin-bottom: 0.5em; text-transform: uppercase; }
.col-grid p { margin-bottom: 1em; }
.more-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand);
}
@media (max-width: 860px) {
  .col-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Call-to-action rows (black band, headline left, pills right)
   -------------------------------------------------------------------------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}
.cta-row h2 {
  font-size: clamp(21px, 2.6vw, 27px);
  text-transform: none;
  margin: 0;
  flex: 1 1 320px;
}
.cta-row .btn-row { flex: 0 1 auto; }
.cta-divider {
  border: 0;
  border-top: 1px solid var(--gold);
  max-width: 560px;
  margin: 40px auto;
}

/* --------------------------------------------------------------------------
   Split row: image one side, dark panel the other
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.split-media {
  background: var(--surface-dark) center / cover no-repeat;
  min-height: 320px;
}
.split-panel {
  background: #2B2B2B;
  color: #EDEDED;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: clamp(36px, 5vw, 64px) var(--gutter);
}
.split-panel h2 { font-size: 22px; margin-bottom: 0.4em; }
.split-panel p { margin-bottom: 1.4em; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Partner logos

   These are other companies' trademarks and they do not share a polarity: some
   are dark artwork meant for a light surface, and Totalement Geek's wordmark is
   white on transparent, which disappears entirely on white. So the presenting
   partner sits on a black band (as it does on the live site) and the rest sit on
   white cards. Do not "simplify" this into one background.
   -------------------------------------------------------------------------- */

.partner-presenter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.partner-presenter img {
  width: min(420px, 80vw);
  height: auto;
}
.partner-presenter h2 {
  font-size: 15px;
  letter-spacing: 2px;
  margin: 0;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 28px 24px;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.partner-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}
.partner-card img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 860px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .partner-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Prose - the content pages
   -------------------------------------------------------------------------- */

.prose { max-width: 780px; margin-inline: auto; }
.prose h2 {
  font-size: clamp(21px, 2.6vw, 26px);
  color: var(--brand);
  margin-top: 2em;
  text-transform: none;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; text-transform: none; }
.prose ul { padding-left: 1.3em; margin: 0 0 1.4em; }
.prose li { margin-bottom: 0.5em; }
.prose .lead {
  font-size: 18px;
  color: var(--ink);
}
.prose .updated {
  font-size: 14px;
  color: var(--ink-body);
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  margin-bottom: 2em;
}

.callout {
  background: var(--surface-muted);
  border-left: 4px solid var(--brand);
  padding: 20px 24px;
  margin: 2em 0 0;
}
.callout h2 { margin-top: 0; }
.callout :last-child { margin-bottom: 0; }

.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 2em 0;
  padding: 0;
  list-style: none;
}
.contact-card li {
  background: var(--surface-muted);
  border-top: 3px solid var(--brand);
  padding: 20px 22px;
  margin: 0;
}
.contact-card h2 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 8px;
}
.contact-card p { margin: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--gold);
  padding-block: clamp(40px, 5vw, 60px);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr 1fr;
  gap: 32px 40px;
  align-items: start;
}
.footer-logo img { width: 150px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a {
  color: var(--ink-body);
  text-decoration: none;
}
.footer-grid a:hover { color: var(--brand); text-decoration: underline; }

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-body);
  text-decoration: none;
  font-weight: 700;
}
.footer-social a:hover { color: var(--brand); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-legal {
  text-align: center;
  margin: 28px 0 0;
  font-size: 13px;
  color: var(--ink-body);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-logo img { margin-inline: auto; }
  .footer-grid { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
