/* ==========================================================
   La Tournée des Dés — feuille de style du site
   Palette et typographies issues du logo et de la maquette
   ========================================================== */

/* Polices hébergées sur le site (pas d'appel à Google Fonts : aucune adresse IP transmise à un tiers) */
@font-face{font-family:'Alfa Slab One';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/alfa-slab-one-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/barlow-condensed-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:800;font-display:swap;src:url(../fonts/barlow-condensed-latin-800-normal.woff2) format('woff2')}
@font-face{font-family:'Barlow';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/barlow-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Barlow';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/barlow-latin-600-normal.woff2) format('woff2')}


:root {
  color-scheme: dark;
  --night: #1A110B;
  --wood: #22160D;
  --wood-2: #2E1F14;
  --line: #3A2A1C;
  --cream: #F4EAD5;
  --cream-2: #E8DCC4;
  --muted: #D2C3A6;
  --ink: #1A110B;
  --ink-soft: #3A2A1C;
  --amber: #F2B33D;
  --amber-hi: #FFD27A;
  --orange: #FF6B2C;
  --magenta: #E23A8C;
  --magenta-dark: #B4235F;
  --violet: #6C3FB0;
  --violet-hi: #8A5BD6;
  --teal: #19B3A6;
  --relief-1: #8A5A26;
  --relief-2: #7A4E20;
  --relief-3: #6A431B;

  --font-display: 'Alfa Slab One', 'Rockwell', Georgia, serif;
  --font-label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Segoe UI', system-ui, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --gutter: 20px;
  --container: 1200px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--amber); }
a:hover { color: var(--amber-hi); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { text-wrap: balance; margin: 0; }

p { margin: 0; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-label);
  font-weight: 800;
  text-decoration: none;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Typographie ---------- */

.kicker {
  font-family: var(--font-label);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}

.title-xl, .title-lg, .title-md {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.title-xl { font-size: clamp(40px, 6vw, 72px); }
.title-lg { font-size: clamp(34px, 4.6vw, 56px); }
.title-md { font-size: clamp(26px, 3vw, 36px); }

.relief {
  text-shadow: 2px 2px 0 var(--relief-1), 4px 4px 0 var(--relief-2), 6px 6px 0 var(--relief-3);
}
.relief-amber {
  color: var(--amber);
  text-shadow: 2px 2px 0 #B07A1E, 4px 4px 0 #9A6818, 6px 6px 0 #7E5413;
}
.relief-on-cream { text-shadow: 3px 3px 0 var(--amber), 5px 5px 0 #E0A33A; }
.relief-ink { text-shadow: 3px 3px 0 var(--ink), 5px 5px 0 var(--ink); }

.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--cream-2);
  max-width: 60ch;
}

.label {
  font-family: var(--font-label);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-label);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-hi); color: var(--ink); }
.btn-outline { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn-outline:hover { background: var(--cream); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #000; color: var(--amber); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--night);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
}
.brand img { width: 58px; height: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
.brand-name span { color: var(--amber); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a:not(.btn) {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
}
.main-nav a:not(.btn):hover,
.main-nav a[aria-current="page"] { color: var(--amber); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border-radius: 12px;
  border: 2px solid var(--cream);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 16px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--night);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px;
  }
  .main-nav[hidden] { display: none !important; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a:not(.btn) { display: block; padding: 12px 0; font-size: 19px; }
  .main-nav .btn { margin-top: 10px; width: 100%; }
}
@media (min-width: 1081px) {
  .main-nav[hidden] { display: block !important; }
}

/* ---------- Guirlande ---------- */

.garland {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: max(110px, 8.4vw); /* garde les ampoules entières sur les grands écrans */
  pointer-events: none;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 7vw, 96px); position: relative; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.section-head.center { align-items: center; text-align: center; }
.section-head.split {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.bg-night { background: var(--night); }
.bg-wood { background: var(--wood); }
.bg-cream { background: var(--cream); color: var(--ink); }
.bg-cream .kicker { color: var(--magenta-dark); }
.bg-magenta { background: var(--magenta); color: var(--ink); }
.bg-magenta .kicker { color: var(--ink); }
.bg-orange { background: var(--orange); color: var(--ink); }

.wave { display: block; width: 100%; height: clamp(40px, 5vw, 80px); }

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--wood);
  padding-block: clamp(96px, 10vw, 140px) clamp(56px, 6vw, 88px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0; padding: 0;
  list-style: none;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-points li { display: flex; align-items: center; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.dot-magenta { background: var(--magenta); }
.dot-teal { background: var(--teal); }
.dot-amber { background: var(--amber); }
.hero-visual { justify-self: center; width: min(560px, 100%); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: min(340px, 90%); }
  .hero-copy { align-items: center; text-align: center; }
  .hero-actions, .hero-points { justify-content: center; }
}

/* ---------- Page header (pages intérieures) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--wood);
  padding-block: clamp(90px, 9vw, 130px) clamp(40px, 5vw, 64px);
}
.page-hero .container { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Étapes ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0; padding: 0;
  list-style: none;
}
.steps::before {
  content: "";
  position: absolute;
  top: 48px; left: 16%; right: 16%;
  border-top: 6px dotted var(--ink);
}
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.step h3 { font-family: var(--font-label); font-weight: 800; font-size: 28px; letter-spacing: 0.04em; text-transform: uppercase; }
.step p { color: var(--ink-soft); max-width: 34ch; }

.die {
  position: relative;
  width: 96px; height: 96px;
  border-radius: 22px;
  border: 5px solid var(--ink);
  flex-shrink: 0;
}
.die i {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ink);
}
.die-1 { background: var(--amber); transform: rotate(-8deg); }
.die-1 i { left: 36px; top: 36px; }
.die-2 { background: var(--teal); transform: rotate(6deg); }
.die-2 i:nth-child(1) { left: 16px; top: 16px; }
.die-2 i:nth-child(2) { right: 16px; bottom: 16px; }
.die-3 { background: var(--magenta); transform: rotate(-4deg); }
.die-3 i:nth-child(1) { left: 14px; top: 14px; }
.die-3 i:nth-child(2) { left: 36px; top: 36px; }
.die-3 i:nth-child(3) { right: 14px; bottom: 14px; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
}

/* ---------- Cartes formules ---------- */

.formula-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.formula {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
}
.formula-art { display: block; width: 100%; height: 130px; }
.formula-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 28px 28px; flex-grow: 1; }
.formula-for { font-family: var(--font-label); font-weight: 800; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; }
.formula h3 { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.05; }
.formula ul { margin: 0; padding-left: 20px; font-size: 17px; line-height: 1.7; }
.formula-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price { font-family: var(--font-display); font-size: 30px; line-height: 1; }
.price small { display: block; font-family: var(--font-label); font-weight: 600; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.f-orange { background: var(--orange); }
.f-teal { background: var(--teal); }
.f-amber { background: var(--amber); }

@media (max-width: 960px) { .formula-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- Ludothèque ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-label);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.chips-dark .chip { border-color: var(--cream); color: var(--cream); }
.chips-dark .chip[aria-pressed="true"] { background: var(--cream); color: var(--ink); }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin: 0; padding: 0;
  list-style: none;
}
.game {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 270px;
  padding: 20px;
  border-radius: 18px;
  border: 4px solid var(--ink);
  color: var(--ink);
}
.game:nth-child(4n+1) { transform: rotate(-2deg); }
.game:nth-child(4n+2) { transform: rotate(1.5deg); }
.game:nth-child(4n+3) { transform: rotate(-1deg); }
.game:nth-child(4n+4) { transform: rotate(2deg); }
.game-tags { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-label);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tag-sale { background: var(--amber); color: var(--ink); }
.game h3 { font-family: var(--font-display); font-weight: 400; font-size: 27px; line-height: 1.05; }
.game-meta { font-family: var(--font-label); font-weight: 600; font-size: 16px; }
.c-amber { background: var(--amber); }
.c-teal { background: var(--teal); }
.c-violet { background: var(--violet); color: var(--cream); }
.c-violet .tag { background: var(--cream); color: var(--ink); }
.c-orange { background: var(--orange); }
.c-cream { background: var(--cream); }
.c-magenta { background: var(--magenta); }
.empty-note { font-size: 18px; padding: 24px 0; }

/* ---------- Galerie / photos ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 190px;
  gap: 18px;
}
.gallery .big { grid-column: span 2; grid-row: span 2; }
.ph {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-label);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-1 { background: #3A1830; }
.ph-2 { background: #0F2E2B; }
.ph-3 { background: #3A2410; }
.ph-4 { background: #251B3F; }
.ph-5 { background: #2E1F14; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; }
}

/* ---------- Références ---------- */

.refs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 36px;
  margin: 0; padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  text-align: center;
}

/* ---------- Produits ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 28px;
  margin: 0; padding: 0;
  list-style: none;
}
.product { display: flex; flex-direction: column; gap: 12px; }
.product-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  border-radius: 18px;
  font-family: var(--font-label);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--ink);
  text-align: center;
  padding: 16px;
}
.product h3 { font-family: var(--font-label); font-weight: 800; font-size: 24px; letter-spacing: 0.04em; text-transform: uppercase; }
.product-desc { font-size: 16px; color: var(--muted); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.product-price { font-family: var(--font-display); font-size: 22px; color: var(--amber); }

/* ---------- Panier ---------- */

.cart-bar {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
}
.cart-panel {
  margin-top: 40px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--wood);
  border: 1px solid var(--line);
}
.cart-list { margin: 16px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cart-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  background: transparent;
  color: var(--cream);
  font-size: 18px;
  cursor: pointer;
}

/* ---------- Bandeau final ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--orange);
  color: var(--ink);
  text-align: center;
  padding-block: clamp(64px, 8vw, 110px);
}
.cta-band .rays { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-band .container { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta-band .title-xl { color: var(--cream); }
.cta-band p { font-size: 21px; font-weight: 600; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; }
.phone { font-family: var(--font-label); font-weight: 800; font-size: 24px; letter-spacing: 0.04em; color: var(--ink); }

/* ---------- Contenu éditorial ---------- */

.prose { display: flex; flex-direction: column; gap: 18px; max-width: 70ch; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; margin-top: 18px; }
.prose h3 { font-family: var(--font-label); font-weight: 800; font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 8px; }
.prose ul { margin: 0; padding-left: 22px; }
.prose li + li { margin-top: 6px; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.detail:first-of-type { border-top: 0; }
.detail-card { border-radius: var(--radius); padding: 28px; color: var(--ink); display: flex; flex-direction: column; gap: 14px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.facts dt { font-family: var(--font-label); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 15px; padding-top: 3px; }
.facts dd { margin: 0; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }

.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.options li { padding: 20px; border-radius: var(--radius-sm); background: var(--wood); border: 1px solid var(--line); }
.options strong { display: block; font-family: var(--font-label); font-weight: 800; font-size: 19px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); }

/* ---------- FAQ ---------- */

.faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq details { border-radius: var(--radius-sm); background: var(--wood); border: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-family: var(--font-label);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 20px; color: var(--cream-2); }

/* ---------- Formulaires ---------- */

.form { display: flex; flex-direction: column; gap: 20px; }
.form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--wood); border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-family: var(--font-label); font-weight: 800; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid var(--line);
  background: var(--night);
  color: var(--cream);
  font: inherit;
  font-size: 17px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); }
.field .hint { font-size: 15px; color: var(--muted); }
.field .error { font-size: 15px; color: #FF9B9B; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 80px;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--night);
  cursor: pointer;
}
.choice span strong { font-family: var(--font-label); font-weight: 800; font-size: 19px; letter-spacing: 0.04em; text-transform: uppercase; }
.choice span small { color: var(--muted); font-size: 15px; }
.choice input:checked + span { border-color: var(--amber); background: #2E2110; }
.choice input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.checks { display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.check input { width: 22px; height: 22px; accent-color: var(--amber); }

.progress { display: flex; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.progress li {
  flex: 1;
  padding-top: 10px;
  border-top: 5px solid var(--line);
  font-family: var(--font-label);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.progress li[aria-current="step"], .progress li.done { border-top-color: var(--amber); color: var(--cream); }
.form-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.notice {
  padding: 18px 20px;
  border-radius: 12px;
  background: #2E2110;
  border: 2px solid var(--amber);
  color: var(--cream);
}
.summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; }

/* ---------- Pied de page ---------- */

.site-footer { background: var(--night); padding-block: 56px 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h2 { font-family: var(--font-label); font-weight: 800; font-size: 16px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.footer-grid a { color: var(--cream); text-decoration: none; }
.footer-grid a:hover { color: var(--amber); }
.footer-brand p { font-size: 16px; color: var(--muted); margin-top: 14px; max-width: 34ch; }
.footer-logo { width: 190px; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer-legal a { color: var(--muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Divers ---------- */

.center-row { display: flex; justify-content: center; margin-top: 40px; }
.link-arrow { font-family: var(--font-label); font-weight: 800; font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.mt-lg { margin-top: 40px; }

/* ---------- Correctifs ---------- */
[hidden] { display: none !important; }

/* ==========================================================
   Animations : caravane, parallaxe, carrousel
   ========================================================== */

/* ---- Caravane qui roule dans le soleil ---- */
.hero-anim { overflow: visible; }
.hero-anim .sun-rays { transform-origin: 310px 310px; animation: spin 60s linear infinite; }
.hero-anim .truck-drive { animation: drive-in 1.8s cubic-bezier(.2,.7,.2,1) both; }
.hero-anim .truck-bob { animation: bob 0.4s infinite; }
.hero-anim .wheel { transform-box: fill-box; transform-origin: center; animation: roll 1.6s linear infinite; }
.hero-anim .glow { animation: glow 2.4s ease-in-out infinite alternate; }
.hero-anim .road-dash { animation: road 0.32s linear infinite; }
.hero-anim .hills-near { animation: hills-near 1.8s linear infinite; }
.hero-anim .hills-far { animation: hills-far 6s linear infinite; }
.hero-anim .cloud { animation: cloud 16s linear infinite; }
.hero-anim .cloud-2 { animation-duration: 22s; animation-delay: -9s; }
.hero-anim .speed path { opacity: 0; animation: speed 0.9s ease-out infinite; }
.hero-anim .speed-2 { animation-delay: -0.3s !important; }
.hero-anim .speed-3 { animation-delay: -0.6s !important; }
.hero-anim .puff { opacity: 0; transform-box: fill-box; transform-origin: center; animation: puff 1.2s ease-out infinite; }
.hero-anim .puff-2 { animation-delay: -0.4s; }
.hero-anim .puff-3 { animation-delay: -0.8s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drive-in { from { transform: translateX(340px); } to { transform: none; } }
@keyframes roll { to { transform: rotate(-360deg); } }
@keyframes bob {
  0% { transform: translateY(0); animation-timing-function: cubic-bezier(.3,.6,.6,1); }
  50% { transform: translateY(-8px); animation-timing-function: cubic-bezier(.4,0,.7,.4); }
  100% { transform: translateY(0); }
}
@keyframes glow { from { opacity: 0.14; } to { opacity: 0.4; } }
@keyframes road { to { stroke-dashoffset: -48; } }
@keyframes hills-near { from { transform: translateX(-160px); } to { transform: none; } }
@keyframes hills-far { from { transform: translateX(-220px); } to { transform: none; } }
@keyframes cloud { from { transform: translateX(-240px); } to { transform: translateX(260px); } }
@keyframes speed { 0% { opacity: 0; transform: translateX(-12px); } 30% { opacity: 0.6; } 100% { opacity: 0; transform: translateX(36px); } }
@keyframes puff { 0% { opacity: 0.55; transform: translate(0, 0) scale(0.6); } 100% { opacity: 0; transform: translate(46px, -18px) scale(2); } }

/* ---- Parallaxe ---- */
[data-parallax] { will-change: transform; }
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }
.page-hero { overflow: hidden; }
.deco-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.deco { position: absolute; display: block; }
.deco-a { width: 54px; top: 22%; left: 47%; transform: rotate(-12deg); opacity: 0.85; }
.deco-b { width: 90px; top: 64%; left: 3%; opacity: 0.55; }
.deco-c { width: 42px; bottom: 12%; left: 41%; opacity: 0.8; }
.deco-d { width: 22px; top: 16%; right: 6%; }
.deco-e { width: 70px; bottom: 8%; right: 36%; opacity: 0.6; }
.page-hero .deco-a { left: auto; right: 22%; top: 30%; }
.page-hero .deco-c { left: auto; right: 8%; bottom: 22%; }
.page-hero .deco-e { right: 42%; bottom: 14%; }
.page-hero .deco-b { top: auto; bottom: 10%; left: auto; right: 2%; }
.cta-band .rays { top: -25%; height: 150%; }
@media (max-width: 960px) {
  .deco-a, .deco-e { display: none; }
  .deco-c { left: auto; right: 6%; bottom: 6%; }
}

/* ---- Carrousel boutique ---- */
.carousel { position: relative; }
.carousel-controls { display: flex; gap: 10px; }
.carousel-btn {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid var(--cream);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); transform: translateY(-2px); }
.carousel-btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.carousel .i-play { display: none; }
.carousel.is-paused .i-play { display: inline; }
.carousel.is-paused .i-pause { display: none; }

.carousel-viewport {
  position: relative;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius);
  padding-bottom: 4px;
}
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-viewport:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }

.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night);
  border: 1px solid var(--line);
}
.slide-art { position: relative; min-height: 340px; background: #22160D; overflow: hidden; }
.slide-art svg, .slide-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-note {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--font-label); font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream); opacity: 0.6;
}
.slide-body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(24px, 4vw, 48px); }
.slide-body h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.slide-desc { font-size: 19px; color: var(--cream-2); max-width: 36ch; }
.slide-body .btn { align-self: flex-start; }
.slide-body > * { transition: opacity .5s ease, transform .5s ease; }
.slide:not(.is-active) .slide-body > * { opacity: 0; transform: translateY(14px); }
.slide.is-active .slide-body > :nth-child(2) { transition-delay: .08s; }
.slide.is-active .slide-body > :nth-child(3) { transition-delay: .16s; }
.slide.is-active .slide-body > :nth-child(4) { transition-delay: .24s; }
.slide.is-active .slide-body > :nth-child(5) { transition-delay: .32s; }
.box-float { transform-box: fill-box; transform-origin: center; animation: float 4s ease-in-out infinite alternate; }
@keyframes float { from { transform: translateY(6px) rotate(-1deg); } to { transform: translateY(-8px) rotate(1.5deg); } }

.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.carousel-dot {
  width: 12px; height: 12px; padding: 0;
  border-radius: 999px;
  border: 2px solid var(--cream);
  background: transparent;
  cursor: pointer;
  transition: width .3s, background .3s;
}
.carousel-dot[aria-current="true"] { width: 36px; background: var(--amber); border-color: var(--amber); }
.carousel-dot:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

@media (max-width: 760px) {
  .slide { grid-template-columns: 1fr; }
  .slide-art { min-height: 240px; }
  .carousel-btn { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide:not(.is-active) .slide-body > * { opacity: 1; transform: none; }
}

/* ---- Menu : une seule ligne sur ordinateur ---- */
@media (min-width: 1081px) {
  .main-nav { flex-shrink: 0; }
  .main-nav ul { gap: clamp(10px, 1.2vw, 22px); }
  .main-nav a:not(.btn), .main-nav .btn { white-space: nowrap; }
  .main-nav a:not(.btn) { font-size: 16px; letter-spacing: 0.08em; }
}
@media (min-width: 1081px) and (max-width: 1260px) {
  .main-nav ul { gap: 16px; }
  .main-nav a:not(.btn) { font-size: 15px; letter-spacing: 0.05em; }
  .brand-name { font-size: 18px; }
}

/* ---- Pièces de jeu en arrière-plan (parallaxe) ---- */
.hero, .page-hero, main > .section, .cta-band { overflow: hidden; }
main > .section > .container, .cta-band > .container { position: relative; z-index: 1; }
.piece-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.piece { position: absolute; margin: -32px 0 0 -32px; will-change: transform; }
.piece svg { display: block; width: 100%; height: auto; overflow: visible; fill: currentColor; animation: piece-float 7s ease-in-out infinite alternate; }
.piece.is-outline svg { fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linejoin: round; --pip: currentColor; }
.piece-far svg { filter: blur(0.6px); }
@keyframes piece-float { from { transform: translateY(-6px) rotate(-4deg); } to { transform: translateY(8px) rotate(5deg); } }
@media (max-width: 760px) { .piece-near { opacity: 0.4 !important; } }

/* ---- Jeux express ---- */
.tag-express { background: var(--teal); color: var(--ink); }
.product-meta { font-family: var(--font-label); font-weight: 600; font-size: 16px; color: var(--amber); letter-spacing: .04em; }
.product .game-tags { justify-content: flex-start; }
.product-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.product-img { overflow: hidden; }
.express-band { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.express-band .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.express-clock { font-family: var(--font-display); font-size: clamp(64px, 8vw, 110px); line-height: .9; color: var(--amber); }
@media (max-width: 960px) { .express-band { grid-template-columns: 1fr; } .express-band .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.game-tags { justify-content: flex-start; }
.game .tag-sale, .game .tag-express { box-shadow: 0 0 0 2px var(--ink); }

/* ---- Galerie photos ---- */
.gallery { grid-auto-flow: dense; }
.ph.photo { margin: 0; background: #22160D; }
.ph.photo img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; }
.ph.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,17,11,.78), rgba(26,17,11,0) 55%); pointer-events: none; }
.ph.photo figcaption { position: relative; z-index: 1; }
.ph.photo:hover img { filter: saturate(1.15); }
.about-photo { aspect-ratio: 4 / 3; }

/* ---- Fiches des jeux ---- */
.game { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.game:hover { transform: rotate(0deg) translateY(-4px) !important; box-shadow: 0 12px 0 rgba(0,0,0,.25); }
.game-open { all: unset; cursor: pointer; }
.game-open:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.game-more { margin-top: auto; font-family: var(--font-label); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.game-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: rgba(255,255,255,.35); border-radius: 10px; padding: 6px; }
.product-img img, .slide-art img, .fiche-visual img { object-fit: contain !important; padding: 7%; }
.product-img.is-art svg { width: 100%; height: 100%; display: block; }
.rules-link { all: unset; cursor: pointer; font-family: var(--font-label); font-weight: 800; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.rules-link:hover { text-decoration: underline; }
.rules-link:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.fiche-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }

dialog.fiche {
  width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  padding: 0; border: 0; border-radius: var(--radius);
  background: var(--wood); color: var(--cream);
  box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: auto;
}
dialog.fiche::backdrop { background: rgba(26,17,11,.78); backdrop-filter: blur(3px); }
dialog.fiche[open] { animation: fiche-in .28s cubic-bezier(.2,.8,.2,1); }
@keyframes fiche-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.fiche-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 2px solid var(--cream); background: var(--night); color: var(--cream); cursor: pointer;
}
.fiche-close svg { width: 18px; height: 18px; }
.fiche-close:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.fiche-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); }
.fiche-visual { position: relative; min-height: 320px; background: #22160D; }
.fiche-visual img, .fiche-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fiche-body { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 4vw, 40px); }
.fiche-body h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
.fiche-body h3 { font-family: var(--font-label); font-weight: 800; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-top: 6px; }
.fiche-body p { color: var(--cream-2); }
.fiche-specs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 4px 0 6px; padding: 14px 16px; border-radius: 12px; background: var(--night); }
.fiche-specs dt { font-family: var(--font-label); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.fiche-specs dd { margin: 0; }
.fiche-note { font-size: 14px; color: var(--muted) !important; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
@media (max-width: 760px) { .fiche-grid { grid-template-columns: 1fr; } .fiche-visual { min-height: 220px; } }
.fiche-visual { align-self: start; aspect-ratio: 4 / 3; min-height: 0; }

/* ==========================================================
   E-commerce : panier, commande, paiement
   ========================================================== */
.nav-cart { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.nav-cart svg { width: 24px; height: 24px; }
.cart-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--amber); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: 0;
}
@media (min-width: 1081px) { .nav-cart-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.cart-bar { position: sticky; bottom: 16px; z-index: 40; display: flex; justify-content: center; margin-top: 32px; }
.cart-bar .btn { box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.shop-note { color: var(--muted); font-size: 15px; margin-top: 18px; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 20px;
  background: var(--night); color: var(--cream); border: 2px solid var(--amber); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  transform: translate(-50%, 140%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  max-width: calc(100vw - 32px);
}
.toast.is-on { transform: translate(-50%, 0); }

.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } }
.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.line {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto; gap: 16px; align-items: center;
  padding: 14px; border-radius: var(--radius-sm); background: var(--wood); border: 1px solid var(--line);
}
.line-img { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; }
.line-img img, .line-img svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.line-img img { padding: 4px; }
.line-info { display: flex; flex-direction: column; gap: 4px; }
.line-info strong { font-family: var(--font-label); font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.line-info span { color: var(--muted); font-size: 15px; }
.line-del { all: unset; cursor: pointer; font-size: 14px; color: var(--amber); text-decoration: underline; align-self: flex-start; }
.line-del:focus-visible { outline: 2px solid var(--amber); }
.line-total { font-family: var(--font-display); font-weight: 400; font-size: 20px; min-width: 88px; text-align: right; }
@media (max-width: 560px) {
  .line { grid-template-columns: 64px minmax(0, 1fr); }
  .line-img { width: 64px; height: 64px; }
  .line .qty, .line-total { grid-column: 2; justify-self: start; text-align: left; }
}
.summary-card {
  position: sticky; top: calc(var(--header-h) + 20px);
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border-radius: var(--radius); background: var(--wood); border: 1px solid var(--line);
}
.summary-card .btn { width: 100%; }
.summary-card .summary { grid-template-columns: 1fr auto; }
.summary-card .summary dd { text-align: right; }
.summary .sum-total { font-family: var(--font-display); font-size: 22px; color: var(--cream); padding-top: 8px; border-top: 1px solid var(--line); }
.free-hint { font-size: 15px; color: var(--amber); }
.free-track { height: 6px; border-radius: 999px; background: var(--night); overflow: hidden; }
.free-track span { display: block; height: 100%; width: 0; background: var(--amber); transition: width .4s ease; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.confirm { display: flex; flex-direction: column; gap: 28px; }
.confirm-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 760px) { .confirm-grid { grid-template-columns: 1fr; } }
.qr-box { background: #fff; border-radius: var(--radius); padding: 14px; aspect-ratio: 1; display: grid; place-items: center; }
.qr-box svg { width: 100%; height: auto; display: block; }
.qr-box.is-empty { background: var(--wood); border: 2px dashed var(--line); color: var(--muted); text-align: center; padding: 24px; font-size: 15px; }
.pay-details { display: flex; flex-direction: column; gap: 12px; }
.pay-details h3 { font-family: var(--font-label); font-weight: 800; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-top: 8px; }
.pay-details .summary { font-size: 18px; }
@media (min-width: 1081px) and (max-width: 1480px) {
  .main-nav ul { gap: 14px; }
  .main-nav a:not(.btn) { font-size: 15px; letter-spacing: .04em; }
  .main-nav .btn-sm { padding-inline: 16px; }
  .brand img { width: 48px; }
  .brand-name { font-size: 18px; }
}
@media (min-width: 1081px) and (max-width: 1240px) {
  .main-nav ul { gap: 10px; }
  .main-nav a:not(.btn) { font-size: 14px; letter-spacing: .02em; }
  .brand-name { font-size: 16px; }
}

/* ---------- Page légale : sommaire, tableau RGPD, formulaire de rétractation ---------- */
.prose { max-width: 78ch; }
.prose h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { scroll-margin-top: calc(var(--header-h) + 16px); color: var(--amber); }
.prose a { color: var(--amber-hi); }
.legal-updated { color: var(--muted); font-size: 15px; }
.legal-toc { background: var(--wood-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; }
.legal-toc ol { margin: 0; padding-left: 22px; }
.legal-toc ol ol { margin-top: 6px; }
.legal-toc li + li { margin-top: 6px; }
.legal-box { background: var(--cream); color: var(--ink); border-radius: var(--radius-sm); padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.legal-box a { color: var(--magenta-dark); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.legal-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-table th { font-family: var(--font-label); font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; background: var(--wood-2); color: var(--amber); }
.legal-table tr:last-child td { border-bottom: 0; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.form-note a, .check a { color: var(--amber-hi); }
@media (max-width: 430px) { .brand { gap: 8px; } .brand img { width: 42px; } .brand-name { font-size: 15px; } }
@media (max-width: 360px) { .brand-name { font-size: 13px; } }
.team { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.team li { display: flex; flex-direction: column; }
.team strong { font-family: var(--font-label); font-weight: 800; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.team span { color: var(--muted); }

/* Correctif en-tête : le logo ne rétrécit jamais sous le menu */
.brand { flex-shrink: 0; }
@media (min-width: 1081px) {
  .site-header .container { max-width: 1320px; }
  .main-nav { flex-shrink: 1; min-width: 0; }
  .main-nav ul { gap: clamp(10px, 1.1vw, 18px); }
}

/* ---------- Ludothèque : recherche, filtre joueurs, tags ---------- */
.ludo-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 0 0 24px; }
.ludo-search { flex: 1 1 280px; }
.ludo-search input, .ludo-players select {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--cream);
  border: 2px solid var(--line); border-radius: 999px; padding: 12px 20px; min-height: 48px;
}
.ludo-search input:focus-visible, .ludo-players select:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.ludo-players { display: flex; align-items: center; gap: 10px; font-family: var(--font-label); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cream); }
.ludo-players select { width: auto; padding-right: 36px; }
.tag-coop { background: var(--violet); color: var(--cream); }
.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; }
.game-empty { grid-column: 1 / -1; list-style: none; padding: 24px; text-align: center; color: var(--muted); }
.fiche-sub { margin: -6px 0 6px; color: var(--muted); font-style: italic; }
.fiche-principe { font-size: 18px; line-height: 1.5; }

/* Titres de jeux longs : la taille s'adapte à la carte, césure propre si besoin */
.game { container-type: inline-size; }
.game h3 { font-size: clamp(17px, 10.5cqi, 27px); overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
