/* 43bouteilles — carte de hockey vintage, mobile-first */

/* ----- Tokens ------------------------------------------------------------ */
:root {
  --navy:        #0F2D7D;
  --navy-deep:   #07194A;
  --navy-soft:   #1B4099;
  --gold:        #F5D429;
  --gold-deep:   #C7A511;
  --gold-soft:   #FBE886;
  --red:         #D43A3A;
  --red-deep:    #A12A2A;
  --paper:       #F5F0E1;
  --paper-deep:  #E8DEC0;
  --paper-dark:  #DBCFA9;
  --ink:         #0A0F2A;
  --ink-soft:    #4A4F60;
  --rule:        #B5A989;
  --shadow:      5px 5px 0 var(--ink);
  --shadow-gold: 5px 5px 0 var(--gold), 5px 5px 0 3px var(--ink);
  --content-w:   720px;
}

/* ----- Reset & base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--paper);
  background-image:
    radial-gradient(ellipse at top, rgba(15,45,125,0.06), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.06 0 0 0 0 0.16 0 0 0 0.14 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ----- Typography ------------------------------------------------------- */
h1, h2, h3 {
  font-family: 'Bungee', system-ui;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 0.5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(1.8rem, 6.5vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 5vw, 1.6rem); }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
strong { font-weight: 600; color: var(--navy); }
em { font-style: italic; }
.muted { color: var(--ink-soft); font-style: italic; }
sub, sup { font-size: 0.65em; }

a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--navy); }

::selection { background: var(--gold); color: var(--ink); }

/* Eyebrow */
.eyebrow, .hero-eyebrow {
  font-family: 'Bebas Neue', system-ui;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1rem;
}

/* ----- Topbar — diagonal hazard banner ---------------------------------- */
.topbar {
  background: var(--navy-deep);
  border-bottom: 4px solid var(--gold);
  position: relative;
}
.topbar::before {
  content: '';
  display: block;
  height: 8px;
  background:
    repeating-linear-gradient(135deg,
      var(--gold) 0 12px,
      var(--gold-deep) 12px 24px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  gap: 0.8rem;
  max-width: var(--content-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--paper);
  text-decoration: none;
  min-width: 0;
}
.brand-logo {
  width: 44px;
  height: auto;
  flex: none;
  filter: drop-shadow(2px 2px 0 var(--ink));
}
.brand-text {
  font-family: 'Bungee', system-ui;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  display: block;
  font-family: 'Bebas Neue', system-ui;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--paper);
  margin-top: 0.1em;
}

.topbar-nav {
  display: flex;
  gap: 0.4rem;
  font-family: 'Bebas Neue', system-ui;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.topbar-nav a {
  color: var(--paper);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border: 2px solid transparent;
}
.topbar-nav a:hover { border-color: var(--gold); color: var(--gold); }

/* legacy aliases */
.brand-mark, .brand-seal { display: none; }

/* ----- Container -------------------------------------------------------- */
.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 1.4rem 1.1rem 4rem;
}

/* ----- Card sections (no boxes default — hockey card frame for hero) --- */
.card {
  padding: 1rem 0 1.4rem;
  position: relative;
}
.card + .card {
  margin-top: 0.5rem;
}
.card + .card::before {
  content: '';
  display: block;
  height: 6px;
  margin: 0 0 1.4rem;
  background:
    repeating-linear-gradient(90deg,
      var(--red) 0 14px,
      transparent 14px 22px);
}

/* Card variants */
.card-narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
.card-success {
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow-gold);
  position: relative;
}
.card-success::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 12px, var(--gold-deep) 12px 24px);
}
.card-danger {
  background: var(--paper);
  border: 3px solid var(--red);
  padding: 1.4rem 1.2rem;
  box-shadow: 5px 5px 0 var(--red-deep);
}

/* ----- Hero — TRADING CARD --------------------------------------------- */
.hero {
  text-align: left;
  padding: 0;
  margin: 0 -0.3rem 1.5rem;
}

.trading-card {
  background: var(--navy);
  border: 4px solid var(--gold);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--ink), 8px 12px 0 var(--ink), 8px 12px 0 4px var(--gold-deep);
  position: relative;
}

.tc-banner {
  background:
    repeating-linear-gradient(135deg,
      var(--gold) 0 14px,
      var(--gold-deep) 14px 28px);
  padding: 0.5rem 1rem;
  border-bottom: 3px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Bungee', system-ui;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.tc-banner span:nth-child(2) {
  background: var(--ink);
  color: var(--gold);
  padding: 0.2em 0.5em;
}

.tc-photo {
  background:
    radial-gradient(circle at 50% 30%, var(--navy-soft) 0%, var(--navy) 60%, var(--navy-deep) 100%);
  padding: 1.8rem 1.2rem 1.4rem;
  text-align: center;
  position: relative;
  border-bottom: 3px solid var(--gold);
  overflow: hidden;
}
.tc-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 0.8px, transparent 1.5px);
  background-size: 6px 6px;
  pointer-events: none;
}
.tc-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 35%, rgba(245,212,41,0.18) 50%, transparent 65%);
  pointer-events: none;
}
.tc-photo img {
  position: relative;
  width: clamp(120px, 32vw, 180px);
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.4));
  z-index: 1;
}
.tc-photo .team {
  position: relative;
  font-family: 'Bungee', system-ui;
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-top: 0.6rem;
  text-shadow: 2px 2px 0 var(--ink);
  z-index: 1;
}
.tc-photo .team-sub {
  position: relative;
  font-family: 'Bebas Neue', system-ui;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  color: var(--paper);
  margin-top: 0.2rem;
  z-index: 1;
}

.tc-info {
  background: var(--paper);
  padding: 1.2rem 1.2rem;
  border-bottom: 3px solid var(--ink);
  position: relative;
}
.tc-info::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--red) 0 14px, var(--paper) 14px 22px);
}
.tc-name {
  font-family: 'Bungee', system-ui;
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 1rem 0 0.4rem;
}
.tc-name em { color: var(--red); font-style: normal; }
.tc-position {
  font-family: 'Bebas Neue', system-ui;
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.8;
  margin-bottom: 0.7rem;
}
.tc-tagline {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.5;
  max-width: 50ch;
}

.tc-stats {
  background: var(--navy-deep);
  padding: 1rem 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  border-bottom: 4px solid var(--gold);
}
.tc-stats .stat { text-align: center; padding: 0.2rem 0.2rem; }
.tc-stats .stat-num {
  font-family: 'Bungee', system-ui;
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  color: var(--gold);
  line-height: 1;
}
.tc-stats .stat-label {
  font-family: 'Bebas Neue', system-ui;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--paper);
  margin-top: 0.3rem;
  text-transform: uppercase;
}

.tc-sig {
  background: var(--paper);
  padding: 0.7rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Bebas Neue', system-ui;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tc-sig .auto {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0;
  color: var(--red);
  text-transform: none;
}

.hero .lead, .hero-lead {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 1.05rem;
  margin: 1.5rem auto;
  text-align: center;
  max-width: 38ch;
  color: var(--ink);
}

/* Big callout */
.callout {
  text-align: center;
  margin: 2rem 0 1.2rem;
}
.callout .label {
  font-family: 'Bebas Neue', system-ui;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.callout-title {
  font-family: 'Bungee', system-ui;
  font-size: clamp(2.2rem, 9vw, 3rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-shadow: 4px 4px 0 var(--gold);
  text-transform: uppercase;
}

/* ----- CTA layouts ----------------------------------------------------- */
.cta-stack, .cta-grid, .cta-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1rem 0;
}
.cta-stack .btn, .cta-grid .btn, .cta-bottom .btn { width: 100%; }
@media (min-width: 600px) {
  .cta-stack, .cta-grid, .cta-bottom {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
  .cta-stack .btn, .cta-grid .btn, .cta-bottom .btn { width: auto; min-width: 240px; }
}

/* ----- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 1.05rem 1.4rem;
  min-height: 60px;
  font-family: 'Bungee', system-ui;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: uppercase;
  border: 3px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  text-align: center;
  background: var(--navy);
  color: var(--paper);
  box-shadow: var(--shadow-gold);
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn small {
  display: block;
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0;
  margin-top: 0.4em;
  color: var(--gold);
  text-transform: none;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--gold), 7px 7px 0 3px var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--gold), 2px 2px 0 3px var(--ink); }
.btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.btn-primary { background: var(--red); color: var(--paper); }
.btn-primary small { color: var(--gold); }

.btn-secondary, .btn-outline {
  background: var(--paper);
  color: var(--navy);
}
.btn-secondary small, .btn-outline small { color: var(--red); }
.btn-secondary:hover, .btn-outline:hover { background: var(--paper-deep); color: var(--navy); }

.btn-link {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.4rem 0.5rem;
  min-height: auto;
  font-family: 'Bebas Neue', system-ui;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.btn-link:active { transform: none; box-shadow: none; }
.btn-link:hover { color: var(--navy); transform: none; box-shadow: none; }

.btn-danger {
  background: var(--paper);
  color: var(--red);
  border-color: var(--red);
  box-shadow: 5px 5px 0 var(--red-deep);
}
.btn-danger small { color: var(--red); }
.btn-danger:hover { background: #FBE5E5; box-shadow: 7px 7px 0 var(--red-deep); }
.btn-danger:active { box-shadow: 2px 2px 0 var(--red-deep); }

.btn-lg { font-size: 1.2rem; min-height: 68px; padding: 1.1rem 1.5rem; }
.btn-sm {
  font-size: 0.85rem;
  min-height: 38px;
  padding: 0.5rem 0.8rem;
  box-shadow: 3px 3px 0 var(--gold), 3px 3px 0 2px var(--ink);
}
.btn-sm:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--gold), 1px 1px 0 2px var(--ink); }

/* ----- Sections (locker style) ----------------------------------------- */
section.card > h2 {
  margin-bottom: 0.7rem;
}

/* The eyebrow inside a card-section */
.card .eyebrow {
  font-family: 'Bebas Neue', system-ui;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  color: var(--red);
}

/* When a card uses the locker-bar header style */
.locker {
  background: var(--paper);
  border: 3px solid var(--ink);
  margin: 1.4rem 0;
  position: relative;
  box-shadow: var(--shadow);
}
.locker > h2:first-child,
.locker .head {
  background: var(--navy);
  color: var(--gold);
  padding: 0.6rem 1rem;
  font-family: 'Bungee', system-ui;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--gold);
  margin: 0;
}
.locker > .body {
  padding: 1.2rem 1.2rem 1.4rem;
}

/* ----- Forms ----------------------------------------------------------- */
.form fieldset {
  border: 3px solid var(--ink);
  background: var(--paper);
  padding: 1.1rem 1rem 0.6rem;
  margin: 0 0 1.4rem;
  box-shadow: var(--shadow);
  position: relative;
}
.form legend {
  font-family: 'Bungee', system-ui;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--gold);
  padding: 0.35em 0.7em;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--gold);
}
.form fieldset > p:first-of-type { margin-top: 0.4rem; }

.form label {
  display: block;
  margin-bottom: 1rem;
  font-family: 'Bebas Neue', system-ui;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="number"],
.form input[type="password"],
.form select,
.form textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 0.7rem;
  font-size: 1.05rem;
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--ink);
  background: var(--paper-deep);
  border: 2px solid var(--ink);
  border-radius: 0;
  margin-top: 0.3em;
  -webkit-appearance: none;
  appearance: none;
  text-transform: none;
  letter-spacing: 0;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--red);
  background: #FFF8E0;
}

.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230A0F2A' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 2rem;
}

.grid-2, .grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem 1rem;
}
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ----- Routes — patches d'écusson -------------------------------------- */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 0.5rem;
  margin: 0.8rem 0 1rem;
}
.chk-route {
  display: block;
  margin: 0;
  position: relative;
  cursor: pointer;
}
.chk-route input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chk-route span {
  display: block;
  font-family: 'Bebas Neue', system-ui;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.7rem 0.4rem;
  background: var(--paper);
  color: var(--navy);
  border: 2px solid var(--ink);
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--gold), 3px 3px 0 2px var(--ink);
  transition: transform 60ms, box-shadow 80ms;
}
.chk-route:hover span {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--gold), 4px 4px 0 2px var(--ink);
}
.chk-route input:checked + span {
  background: var(--navy);
  color: var(--gold);
  box-shadow: 3px 3px 0 var(--red), 3px 3px 0 2px var(--ink);
}
.chk-route input:focus-visible + span {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* ----- Consent block --------------------------------------------------- */
.consent {
  background: var(--paper-deep);
  border: 3px solid var(--ink);
  padding: 1rem;
  margin: 1.2rem 0 1.5rem;
  position: relative;
  box-shadow: 4px 4px 0 var(--gold), 4px 4px 0 2px var(--ink);
}
.chk-consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0;
  font-size: 0.95rem;
  font-family: 'Source Serif 4', serif;
  text-transform: none;
  letter-spacing: 0;
}
.chk-consent input {
  margin-top: 0.25em;
  transform: scale(1.25);
  accent-color: var(--red);
  flex: none;
}
.chk-consent span {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Source Serif 4', serif;
  color: var(--ink);
  font-size: 0.93rem;
}

/* ----- Kid rows -------------------------------------------------------- */
.kid-row {
  border-top: 2px dashed var(--ink);
  padding: 1rem 0;
}
.kid-row:first-child {
  border-top: none;
  padding-top: 0;
}
.kid-row .btn-link {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-family: 'Bebas Neue', system-ui;
  color: var(--red);
  padding: 0.2rem 0;
  margin-top: 0.3rem;
}

/* ----- Form actions ---------------------------------------------------- */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: stretch;
  margin-top: 1.5rem;
}
.form-actions .btn { width: 100%; }
@media (min-width: 600px) {
  .form-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .form-actions .btn { width: auto; }
}

/* ----- Alerts ---------------------------------------------------------- */
.alert {
  padding: 1rem 1.05rem;
  margin: 0 0 1.5rem;
  border: 3px solid var(--ink);
  background: var(--paper-deep);
  font-family: 'Source Serif 4', serif;
  position: relative;
  box-shadow: 4px 4px 0 var(--ink);
}
.alert ul { margin: 0.4em 0 0; padding-left: 1.2em; }
.alert-error {
  background: #FBE5E5;
  border-color: var(--red);
  color: var(--red-deep);
  box-shadow: 4px 4px 0 var(--red-deep);
}
.alert-success {
  background: #E1ECC8;
  border-color: var(--navy);
  color: var(--navy-deep);
  box-shadow: 4px 4px 0 var(--gold), 4px 4px 0 2px var(--ink);
}

/* ----- Voiture page (back of card) ------------------------------------- */
.car-head {
  background: var(--navy);
  border: 3px solid var(--ink);
  padding: 2rem 1rem 1.6rem;
  margin: 0 -0.3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--gold), 8px 8px 0 4px var(--ink);
}
.car-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 0.8px, transparent 1.5px);
  background-size: 6px 6px;
  pointer-events: none;
}
.car-head::after {
  content: '★ ★ ★';
  position: absolute;
  top: 0.4rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Bungee', system-ui;
  color: var(--gold);
  letter-spacing: 0.6em;
  font-size: 0.7rem;
  pointer-events: none;
}
.car-head .eyebrow {
  position: relative;
  color: var(--gold);
  font-family: 'Bebas Neue', system-ui;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  margin: 0.5rem 0 0.3rem;
}
.car-num {
  position: relative;
  font-family: 'Bungee', system-ui;
  font-size: clamp(7rem, 36vw, 12rem);
  line-height: 0.85;
  margin: 0.05em 0 0.2em;
  color: var(--gold);
  -webkit-text-stroke: 0;
  letter-spacing: -0.04em;
  text-shadow: 5px 5px 0 var(--red), 10px 10px 0 var(--ink);
}
.car-num::before {
  content: '#';
  font-size: 0.5em;
  vertical-align: top;
  color: var(--paper);
  text-shadow: none;
}
.car-routes-label {
  position: relative;
  font-family: 'Bebas Neue', system-ui;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  color: var(--paper);
  margin: 1.2rem 0 0.3rem;
  text-transform: uppercase;
}
.routes-line {
  position: relative;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0.4rem 0 0;
}
.route-pill {
  font-family: 'Bebas Neue', system-ui;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--paper);
  padding: 0.3em 0.8em;
  border: 2px solid var(--gold);
  border-radius: 0;
}

/* ----- Link copy ------------------------------------------------------- */
.link-copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.6rem 0 1.2rem;
}
.link-copy input {
  flex: 1;
  padding: 0.7rem 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  background: var(--paper-deep);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.link-copy .btn { width: 100%; }
@media (min-width: 600px) {
  .link-copy { flex-direction: row; align-items: stretch; }
  .link-copy .btn { width: auto; }
}

/* ----- Tables ---------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1.2rem;
  font-family: 'Source Serif 4', serif;
}
table th, table td {
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: middle;
}
table th {
  font-family: 'Bebas Neue', system-ui;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--navy);
  border-bottom: 3px solid var(--ink);
  background: transparent;
}
.ta-right { text-align: right; }
table tfoot td { border-top: 3px solid var(--ink); border-bottom: none; padding-top: 0.8rem; }

.amount-input {
  width: 100px;
  text-align: right;
  padding: 0.4rem 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  border: none;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-deep);
  border-radius: 0;
}
.amount-input:focus {
  outline: none;
  border-bottom-color: var(--red);
  background: #FFF8E0;
}

/* ----- Saisie montants par route ---------------------------------------- */
/* MOBILE FIRST : carte par participant + bloc résumé en bas               */

.amounts {
  width: 100%;
  border-collapse: collapse;
  margin: 0.6rem 0 0;
  font-family: 'Source Serif 4', serif;
  display: block;
}
.amounts thead { display: none; }
.amounts tbody { display: block; }
.amounts tbody tr {
  display: block;
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: 0.95rem 1rem;
  margin: 0 0 0.8rem;
  box-shadow: 4px 4px 0 var(--gold), 4px 4px 0 2px var(--ink);
}

.amounts tbody th[scope="row"] {
  display: block;
  text-align: left;
  padding: 0 0 0.7rem;
  margin-bottom: 0.7rem;
  border: none;
  border-bottom: 2px dashed var(--ink);
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--navy);
  background: transparent;
}
.amounts .p-name { display: block; line-height: 1.2; }
.amounts .p-meta { display: block; margin-top: 0.2em; }
.amounts .p-meta .tag {
  margin: 0 0.3em 0 0;
  font-size: 0.65rem;
  padding: 0.1em 0.5em;
  letter-spacing: 0.12em;
}

/* Each amount cell on mobile : grid label + input */
.amounts tbody td {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0;
  border: none;
  text-align: right;
}
.amounts tbody td::before {
  content: attr(data-label);
  font-family: 'Bebas Neue', system-ui;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: left;
}
.amounts tbody td .amount-input {
  width: 110px;
  max-width: 100%;
  text-align: right;
  padding: 0.55rem 0.6rem;
  font-size: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--paper-deep);
  border: none;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  justify-self: end;
}
.amounts tbody td .amount-input:focus {
  outline: none;
  border-bottom-color: var(--red);
  background: #FFF8E0;
}

/* Participant total = bottom band of the card */
.amounts tbody td.participant-total {
  margin-top: 0.6rem;
  padding: 0.7rem 0 0;
  border-top: 2px solid var(--ink);
  font-family: 'Bebas Neue', system-ui;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: transparent;
}
.amounts tbody td.participant-total::before {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
}
.amounts tbody td.participant-total:empty::before { content: ''; }

/* Totals tfoot = navy résumé block at bottom */
.amounts tfoot {
  display: block;
  margin-top: 1.2rem;
  background: var(--navy);
  color: var(--gold);
  border: 3px solid var(--ink);
  padding: 1.1rem 1.1rem 1.2rem;
  box-shadow: 4px 4px 0 var(--gold), 4px 4px 0 2px var(--ink);
}
.amounts tfoot tr { display: block; }
.amounts tfoot th[scope="row"] {
  display: block;
  font-family: 'Bebas Neue', system-ui;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: none;
  text-align: left;
  padding: 0 0 0.6rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(245,212,41,0.4);
}
.amounts tfoot td {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.45rem 0;
  border: none;
  border-bottom: 1px dashed rgba(245,212,41,0.25);
  font-family: 'Bebas Neue', system-ui;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: transparent;
  text-align: right;
}
.amounts tfoot td:last-child { border-bottom: none; }
.amounts tfoot td::before {
  content: attr(data-label);
  font-family: 'Bebas Neue', system-ui;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-align: left;
}
.amounts tfoot td.grand-total {
  margin-top: 0.6rem;
  padding-top: 0.85rem;
  border-top: 2px solid var(--gold);
  border-bottom: none;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: transparent;
}
.amounts tfoot td.grand-total::before {
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  color: var(--gold);
}

/* ===== ≥ 700 px : retour au tableau classique ============================= */
@media (min-width: 700px) {
  .amounts {
    display: table;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid var(--ink);
    background: var(--paper);
    box-shadow: 4px 4px 0 var(--gold), 4px 4px 0 2px var(--ink);
  }
  .amounts thead { display: table-header-group; }
  .amounts tbody { display: table-row-group; }
  .amounts tfoot {
    display: table-footer-group;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    color: inherit;
  }
  .amounts tr,
  .amounts tbody tr,
  .amounts tfoot tr { display: table-row; }
  .amounts thead th,
  .amounts tbody td,
  .amounts tbody th,
  .amounts tfoot th,
  .amounts tfoot td {
    display: table-cell;
    padding: 0.6rem 0.6rem;
    border-bottom: 1px solid var(--rule);
    border-top: none;
    margin: 0;
    background: var(--paper);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
  }
  .amounts tbody tr {
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
  }
  .amounts thead th {
    font-family: 'Bebas Neue', system-ui;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    color: var(--navy);
    text-transform: uppercase;
    border-bottom: 3px solid var(--ink);
    padding: 0.75rem 0.6rem;
  }
  .amounts thead th.col-total { background: var(--navy); color: var(--gold); }
  .amounts thead th.col-route { text-align: right; }

  .amounts tbody td::before,
  .amounts tfoot td::before { content: none; display: none; }

  .amounts tbody th[scope="row"] {
    background: var(--paper);
    border: none;
    border-bottom: 1px solid var(--rule);
    padding: 0.6rem 0.6rem;
    margin: 0;
    font-family: 'Source Serif 4', serif;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink);
    min-width: 140px;
  }

  .amounts tbody td {
    text-align: right;
    padding: 0.5rem 0.5rem;
    grid-template-columns: none;
  }
  .amounts tbody td .amount-input {
    width: 90px;
    justify-self: auto;
  }
  .amounts tbody td.participant-total {
    background: var(--paper-deep);
    border-left: 2px solid var(--ink);
    padding: 0.6rem 0.6rem;
    margin: 0;
    font-family: 'Bebas Neue', system-ui;
    font-size: 0.95rem;
    color: var(--navy);
    border-top: none;
    text-align: right;
  }

  .amounts tfoot tr { background: transparent; }
  .amounts tfoot th[scope="row"] {
    background: var(--paper-deep);
    color: var(--navy);
    font-family: 'Bebas Neue', system-ui;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 0.85rem 0.6rem;
    border-top: 3px solid var(--ink);
    border-bottom: none;
    margin: 0;
  }
  .amounts tfoot td {
    background: var(--paper-deep);
    color: var(--navy);
    font-family: 'Bebas Neue', system-ui;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    padding: 0.85rem 0.6rem;
    text-align: right;
    border-top: 3px solid var(--ink);
    border-bottom: none;
    margin: 0;
  }
  .amounts tfoot td.grand-total {
    background: var(--navy);
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    padding: 0.85rem 0.6rem;
    border: none;
    border-top: 3px solid var(--ink);
    border-left: 2px solid var(--ink);
    margin: 0;
  }

  .amounts .ta-right { text-align: right; }
}

/* ----- Tags ------------------------------------------------------------ */
.tag {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-family: 'Bebas Neue', system-ui;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.15em 0.6em;
  margin-left: 0.4em;
  border: 1px solid var(--ink);
  vertical-align: middle;
}
.tag-unit { background: var(--navy); color: var(--gold); border-color: var(--gold); }

/* ----- Lists ----------------------------------------------------------- */
.schedule, .bring, .how {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0;
}
.schedule li, .bring li, .how li {
  padding: 0.7rem 0 0.7rem 2.2rem;
  position: relative;
  border-bottom: 1px dashed var(--rule);
}
.schedule li:last-child, .bring li:last-child, .how li:last-child { border-bottom: none; }
.schedule li::before {
  content: '★';
  color: var(--red);
  position: absolute;
  left: 0;
  top: 0.7rem;
  font-size: 1rem;
  font-family: 'Bungee', system-ui;
}
.bring li::before {
  content: '✓';
  color: var(--navy);
  font-family: 'Bungee', system-ui;
  position: absolute;
  left: 0;
  top: 0.65rem;
  font-size: 1.1rem;
}
.schedule li strong, .how li strong { color: var(--red); font-family: 'Bebas Neue', system-ui; font-weight: 400; letter-spacing: 0.06em; font-size: 1rem; }
.how {
  counter-reset: how;
  padding-left: 0;
}
.how li {
  counter-increment: how;
  padding-left: 3rem;
  min-height: 2rem;
}
.how li::before {
  content: counter(how, decimal-leading-zero);
  font-family: 'Bungee', system-ui;
  font-size: 1.2rem;
  color: var(--gold);
  position: absolute;
  left: 0;
  top: 0.55rem;
  letter-spacing: -0.02em;
  background: var(--navy);
  width: 2.2rem;
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
}

/* ----- Admin KPI ------------------------------------------------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 1rem 0;
}
@media (min-width: 600px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi {
  background: var(--navy-deep);
  border: 3px solid var(--ink);
  padding: 0.9rem 0.6rem;
  text-align: center;
  box-shadow: 3px 3px 0 var(--gold), 3px 3px 0 2px var(--ink);
}
.kpi-num {
  font-family: 'Bungee', system-ui;
  font-size: clamp(1.4rem, 5vw, 1.7rem);
  color: var(--gold);
  line-height: 1;
}
.kpi-label {
  font-family: 'Bebas Neue', system-ui;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--paper);
  margin-top: 0.4em;
  text-transform: uppercase;
}

.action-grid {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.action-grid .btn { width: 100%; }
@media (min-width: 600px) {
  .action-grid { flex-direction: row; flex-wrap: wrap; }
  .action-grid .btn { width: auto; }
}

/* ----- Cars list (admin) ----------------------------------------------- */
.cars-list { font-size: 0.92rem; }
.cars-list .actions { white-space: nowrap; font-size: 0.85rem; }

/* ----- Participant edit ------------------------------------------------ */
.part-edit {
  border: 3px solid var(--ink);
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.6rem;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--gold), 3px 3px 0 2px var(--ink);
}
.part-edit > summary {
  cursor: pointer;
  font-family: 'Bebas Neue', system-ui;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0;
  list-style: revert;
}
.part-edit[open] { background: var(--paper-deep); }
.part-edit .form { margin-top: 0.7rem; padding-top: 0.7rem; border-top: 2px dashed var(--ink); }
.part-edit .form fieldset { box-shadow: none; border: none; padding: 0; margin: 0 0 1rem; }
.part-edit .form legend { display: none; }

/* ----- Footer --------------------------------------------------------- */
.footer {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  margin-top: 2rem;
  border-top: 3px solid var(--navy);
  font-family: 'Bebas Neue', system-ui;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer::before {
  content: '★  ★  ★';
  display: block;
  font-family: 'Bungee', system-ui;
  color: var(--red);
  letter-spacing: 0.4em;
  font-size: 1rem;
  margin-bottom: 0.7rem;
}
.footer p { margin: 0.2em 0; letter-spacing: 0.18em; }
.footer-sub { font-family: 'Source Serif 4', serif; font-style: italic; font-size: 0.85rem; letter-spacing: 0; text-transform: none; }
.footer-sub em {
  font-family: 'Caveat', cursive;
  font-style: normal;
  color: var(--red);
  font-size: 1.2rem;
}

/* ----- Animations ------------------------------------------------------ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.container > * {
  animation: fadeUp 0.45s ease-out backwards;
}
.container > *:nth-child(1) { animation-delay: 0.04s; }
.container > *:nth-child(2) { animation-delay: 0.10s; }
.container > *:nth-child(3) { animation-delay: 0.16s; }
.container > *:nth-child(4) { animation-delay: 0.22s; }
.container > *:nth-child(5) { animation-delay: 0.28s; }
.container > *:nth-child(6) { animation-delay: 0.34s; }
.container > *:nth-child(n+7) { animation-delay: 0.4s; }

/* Foil shimmer on the hero card */
@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

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

/* ----- Utility -------------------------------------------------------- */
.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;
}
