:root {
  --bg: #0a0e12;
  --bg-elev: #121820;
  --turf: #1b4332;
  --turf-light: #2d6a4f;
  --gold: #e9c46a;
  --gold-dim: rgba(233, 196, 106, 0.35);
  --text: #e8eef4;
  --muted: #8fa3b6;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --font-display: "Bebas Neue", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dock-h: 0px;
  --header-h: 4.5rem;
}

body.josplay-ready {
  --dock-h: clamp(200px, 28vh, 260px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Barres de défilement — même palette que le site (turf, fond, or au survol) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--turf-light) var(--bg-elev);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--bg-elev);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--turf-light), var(--turf));
  border-radius: 999px;
  border: 2px solid var(--bg-elev);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold), var(--turf-light));
  border-color: rgba(18, 24, 32, 0.85);
}

*::-webkit-scrollbar-corner {
  background: var(--bg-elev);
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  background: radial-gradient(ellipse 120% 80% at 50% -20%, #1a2630 0%, var(--bg) 45%);
  color: var(--text);
  overflow-x: hidden;
}

/* Curseur masqué (souris) — le focus clavier réaffiche le curseur pour l’accessibilité */
@media (pointer: fine) {
  html,
  body,
  body * {
    cursor: none !important;
  }

  /* Curseur clavier sur boutons / liens — pas sur champs texte (évite l’I‑beam par-dessus le point doré) */
  :focus-visible:not(input):not(textarea):not(select):not([contenteditable="true"]) {
    cursor: auto !important;
  }

  input,
  textarea,
  select,
  [contenteditable="true"] {
    cursor: none !important;
  }

  input:hover,
  input:focus,
  input:focus-visible,
  input:focus-within,
  textarea:hover,
  textarea:focus,
  textarea:focus-visible,
  select:hover,
  select:focus,
  select:focus-visible,
  [contenteditable="true"]:hover,
  [contenteditable="true"]:focus,
  [contenteditable="true"]:focus-visible {
    cursor: none !important;
  }

  /*
   * Poignée de redimensionnement des textarea (Chrome, Edge, Safari) :
   * sans ça, le navigateur affiche encore le curseur diagonal Windows.
   * Firefox ne propose pas de pseudo-élément équivalent pour la poignée.
   */
  textarea::-webkit-resizer {
    cursor: none !important;
  }

  /* Fiche projet : curseur système lisible + pas de double avec le point doré */
  .replay.replay--open,
  .replay.replay--open * {
    cursor: auto !important;
  }

  .replay.replay--open button,
  .replay.replay--open [type="button"] {
    cursor: pointer !important;
  }

  .replay.replay--open .replay-backdrop {
    cursor: pointer !important;
  }

  body:has(.replay.replay--open) .cursor-dot {
    opacity: 0 !important;
    visibility: hidden;
  }

  .jos-card-dialog[open] .jos-card-dialog__overlay {
    cursor: pointer !important;
  }

  .jos-card-dialog[open] .jos-card-dialog__panel,
  .jos-card-dialog[open] .jos-card-dialog__panel * {
    cursor: auto !important;
  }

  .jos-card-dialog[open] .jos-card-dialog__close {
    cursor: pointer !important;
  }

  body:has(.jos-card-dialog[open]) .cursor-dot {
    opacity: 0 !important;
    visibility: hidden;
  }
}

/* Repère souris custom (pas le curseur Windows) */
.cursor-dot {
  display: none;
}

@media (pointer: fine) {
  .cursor-dot {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: 8px;
    height: 8px;
    margin: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff4d0, var(--gold));
    box-shadow:
      0 0 0 2px rgba(10, 14, 18, 0.95),
      0 0 14px rgba(233, 196, 106, 0.55),
      0 0 28px rgba(45, 106, 79, 0.35);
    pointer-events: none;
    z-index: 10050;
    opacity: 0;
    will-change: transform;
    transition:
      opacity 0.15s ease,
      background 0.22s ease,
      box-shadow 0.22s ease;
  }

  .cursor-dot.is-active {
    opacity: 1;
  }

  /* Maillot hero : le repère reste visible, teinte terrain au lieu d’or */
  body:has(.jersey-card:hover) .cursor-dot.is-active,
  body:has(.jersey-card:focus-within) .cursor-dot.is-active {
    background: radial-gradient(circle at 35% 35%, #d4f0e4, var(--turf-light));
    box-shadow:
      0 0 0 2px rgba(10, 14, 18, 0.95),
      0 0 16px rgba(45, 106, 79, 0.65),
      0 0 30px rgba(27, 67, 50, 0.5);
  }

  .site-footer a,
  .site-footer__toggle {
    cursor: pointer !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.field-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  pointer-events: none;
}

.top-bar > * {
  pointer-events: auto;
}

.brand-hit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: 0;
  padding: 0.35rem 0.6rem 0.35rem 0.35rem;
  border-radius: 999px;
  color: inherit;
  position: relative;
}

.brand-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--line);
  background: rgba(18, 24, 32, 0.65);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.brand-hit:hover .brand-ring {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 1px var(--gold-dim);
}

.brand-jersey {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: block;
  overflow: visible;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: transform 0.5s var(--ease-out);
}

.brand-hit:hover .brand-jersey {
  transform: rotate(-6deg) scale(1.05);
}

.brand-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.brand-tag {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.zone-hud {
  font-family: var(--font-display);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  margin: 0;
  padding: 0.35rem 0.55rem 0.3rem;
  min-width: 6.5rem;
  text-align: right;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    background 0.25s var(--ease-out);
}

.zone-hud:hover {
  border-color: var(--gold-dim);
  background: rgba(18, 24, 32, 0.55);
  box-shadow: 0 0 0 1px rgba(233, 196, 106, 0.12);
}

.zone-hud:focus-visible {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 2px rgba(233, 196, 106, 0.25);
}

.zone-hud-kicker {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.zone-hud-label {
  font-size: 1.65rem;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 20px var(--gold-dim);
  transform: translate(var(--zone-tx, 0px), var(--zone-ty, 0px));
  transition: transform 0.12s ease-out;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .zone-hud-label {
    transform: none;
    transition: none;
  }
}

.stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--header-h) 1.25rem 0;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px) + 0.5rem);
  min-height: calc(100dvh - var(--dock-h) - env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.site-footer {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left, 0px));
  bottom: max(0.45rem, env(safe-area-inset-bottom, 0px));
  z-index: 55;
  margin: 0;
  padding: 0;
  pointer-events: none;
  transition: bottom 0.4s var(--ease-out);
}

/* JoSPlay ouvert : le bloc monte au-dessus de la zone de la roue (reste en bas à gauche) */
body.josplay-ready:has(.josplay.josplay--open) .site-footer {
  bottom: calc(var(--dock-h) + max(0.4rem, env(safe-area-inset-bottom, 0px)));
}

.site-footer__shell {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  pointer-events: auto;
}

.site-footer__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  margin: 0;
  padding: 0 0.35rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(233, 196, 106, 0.85);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(233, 196, 106, 0.35);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.site-footer__toggle:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(233, 196, 106, 0.08);
}

.site-footer__toggle:focus-visible {
  outline: 2px solid var(--gold-dim);
  outline-offset: 3px;
}

.site-footer--open .site-footer__toggle {
  border-color: rgba(233, 196, 106, 0.55);
}

.site-footer__panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.45rem);
  min-width: min(14rem, calc(100vw - 2rem));
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 18, 22, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.site-footer__panel[hidden] {
  display: none !important;
}

.site-footer__inner {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem 0.35rem;
  max-width: 100%;
  font-size: clamp(0.58rem, 1.9vw, 0.68rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(143, 163, 182, 0.82);
  text-align: left;
  line-height: 1.45;
  white-space: normal;
}

.site-footer__mark {
  color: rgba(233, 196, 106, 0.65);
  font-size: 0.75rem;
}

.site-footer__year {
  color: rgba(232, 238, 244, 0.75);
}

.site-footer__link {
  color: rgba(233, 196, 106, 0.88);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.site-footer__link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold-dim);
}

.site-footer__link:focus-visible {
  outline: 2px solid var(--gold-dim);
  outline-offset: 3px;
}

.site-footer__sep {
  color: rgba(255, 255, 255, 0.15);
  font-weight: 400;
}

.site-footer__rights {
  color: rgba(143, 163, 182, 0.72);
  font-weight: 400;
  letter-spacing: 0.05em;
}

@media (prefers-reduced-motion: reduce) {
  .site-footer {
    transition: none;
  }
}

.panel {
  animation: panelIn 0.7s var(--ease-out) both;
}

.panel[hidden] {
  display: none !important;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel:not([hidden]) {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.panel--hero:not([hidden]) {
  justify-content: center;
  min-height: calc(100dvh - var(--header-h) - var(--dock-h) - 1rem);
}

.panel--work:not([hidden]),
.panel--stack:not([hidden]),
.panel--contact:not([hidden]) {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 0.25rem;
}

.hero-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
  }
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--turf-light);
  margin: 0 0 0.75rem;
}

.hero-title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  transition: margin-bottom 0.35s var(--ease-out);
}

.hero-title .line {
  display: block;
  opacity: 0;
  animation: lineReveal 0.8s var(--ease-out) forwards;
}

.hero-title > .line:nth-child(1) {
  animation-delay: 0.05s;
}

.exp-preview-group > .line:nth-child(1) {
  animation-delay: 0.18s;
}

.exp-preview-group > .line:nth-child(2) {
  animation-delay: 0.3s;
}

@keyframes lineReveal {
  from {
    opacity: 0;
    transform: translateX(-12px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

.line--accent {
  color: var(--gold);
  text-shadow: 0 0 40px var(--gold-dim);
}

/* Aperçu type Wikipédia au survol de « expériences web » — carte sous la 3e ligne */
.exp-preview-group {
  display: block;
  position: relative;
  z-index: 4;
  padding-bottom: 0.45rem;
}

.exp-preview-line {
  position: relative;
  z-index: 4;
  filter: none;
  opacity: 1;
}

.exp-preview-trigger {
  display: inline;
  border-bottom: 1px dashed rgba(233, 196, 106, 0.45);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.exp-preview-line:hover .exp-preview-trigger,
.exp-preview-trigger:focus-visible {
  border-bottom-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 2px rgba(233, 196, 106, 0.2);
}

.exp-preview {
  position: absolute;
  left: 0;
  top: 100%;
  width: min(100%, 26rem);
  text-align: left;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.35s var(--ease-out),
    visibility 0.3s;
  pointer-events: none;
  z-index: 20;
}

.exp-preview-bridge {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 0.55rem;
}

.exp-preview-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.2rem 1.25rem 1.25rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid rgba(233, 196, 106, 0.42);
  background: linear-gradient(165deg, rgba(26, 36, 32, 0.94) 0%, rgba(14, 20, 24, 0.9) 100%);
  backdrop-filter: blur(16px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.exp-preview-desc {
  font-size: 0.95rem;
  color: rgba(236, 240, 244, 0.94);
  line-height: 1.72;
  letter-spacing: 0.015em;
  margin: 0;
  text-wrap: pretty;
}

.exp-preview-desc strong {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.exp-preview-desc--note {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.exp-preview-group:hover .exp-preview,
.exp-preview-group:focus-within .exp-preview,
.exp-preview-group.is-open .exp-preview {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Au survol de l’aperçu : flouter l’arrière (1re ligne + lead, pas la zone titre + popup) */
.hero-title:has(.exp-preview-group:hover) > .line:first-child,
.hero-title:has(.exp-preview-group:focus-within) > .line:first-child,
.hero-title:has(.exp-preview-group.is-open) > .line:first-child {
  filter: blur(7px);
  opacity: 0.32;
  transition:
    filter 0.3s var(--ease-out),
    opacity 0.3s var(--ease-out);
}

.panel--hero:has(.exp-preview-group:hover) .eyebrow,
.panel--hero:has(.exp-preview-group:focus-within) .eyebrow,
.panel--hero:has(.exp-preview-group.is-open) .eyebrow,
.panel--hero:has(.exp-preview-group:hover) .lead,
.panel--hero:has(.exp-preview-group:focus-within) .lead,
.panel--hero:has(.exp-preview-group.is-open) .lead,
.panel--hero:has(.exp-preview-group:hover) .hero-actions,
.panel--hero:has(.exp-preview-group:focus-within) .hero-actions,
.panel--hero:has(.exp-preview-group.is-open) .hero-actions {
  filter: blur(5px);
  opacity: 0.38;
  transition:
    filter 0.3s var(--ease-out),
    opacity 0.3s var(--ease-out);
}

.panel--hero:has(.exp-preview-group:hover) .jersey-stage,
.panel--hero:has(.exp-preview-group:focus-within) .jersey-stage,
.panel--hero:has(.exp-preview-group.is-open) .jersey-stage {
  filter: blur(10px);
  opacity: 0.35;
  transition:
    filter 0.35s var(--ease-out),
    opacity 0.35s var(--ease-out);
}

.hero-title:has(.exp-preview-group:hover),
.hero-title:has(.exp-preview-group:focus-within),
.hero-title:has(.exp-preview-group.is-open) {
  margin-bottom: clamp(7.5rem, 16vh, 11rem);
  transition: margin-bottom 0.35s var(--ease-out);
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 40ch;
  margin: 0 0 1.75rem;
}

.lead strong {
  color: var(--gold);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--turf-light), var(--turf));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}

.jersey-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  position: relative;
}

.jersey-glow {
  position: absolute;
  width: min(90vw, 420px);
  height: min(90vw, 420px);
  background: radial-gradient(circle, rgba(233, 196, 106, 0.15) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(4px);
}

.jersey-card {
  position: relative;
  width: min(92vw, 400px);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
  cursor: pointer;
}

.jersey-card:focus-visible {
  outline: 2px solid var(--gold-dim);
  outline-offset: 6px;
}

.jersey-figure {
  position: relative;
  line-height: 0;
}

.jersey-shine {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: linear-gradient(
    125deg,
    transparent 38%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 62%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
  mix-blend-mode: soft-light;
}

.jersey-card:hover .jersey-shine {
  opacity: 1;
}

.jersey-img {
  width: 100%;
  max-width: min(340px, 88vw);
  height: auto;
  max-height: min(72vh, 520px);
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 36px rgba(233, 196, 106, 0.1));
  user-select: none;
  -webkit-user-drag: none;
  overflow: visible;
}

.jersey-legend {
  margin-top: 0.35rem;
  padding-top: 1.05rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  max-width: min(22rem, 90vw);
  position: relative;
}

.jersey-legend::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(5.5rem, 42vw);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(233, 196, 106, 0.35) 20%,
    rgba(233, 196, 106, 0.55) 50%,
    rgba(233, 196, 106, 0.35) 80%,
    transparent
  );
  box-shadow: 0 0 12px rgba(233, 196, 106, 0.2);
}

.jersey-caption {
  margin: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 238, 244, 0.92);
  line-height: 1.4;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 0 28px rgba(233, 196, 106, 0.06);
}

.jersey-caption__role {
  color: rgba(180, 198, 214, 0.95);
  font-weight: 500;
  letter-spacing: 0.26em;
}

.jersey-caption__sep {
  color: rgba(233, 196, 106, 0.5);
  font-weight: 400;
  letter-spacing: 0.12em;
}

.jersey-caption strong {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-shadow:
    0 0 18px rgba(233, 196, 106, 0.35),
    0 0 42px rgba(233, 196, 106, 0.12);
}

.jersey-hint {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: rgba(143, 163, 182, 0.88);
  text-align: center;
  line-height: 1.65;
  max-width: 19rem;
  opacity: 0.95;
}

/* Fiche JoS — ouverture au clic sur le maillot */
.jos-card-dialog {
  padding: 0;
  margin: 0;
  border: none;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100%;
  background: transparent;
}

.jos-card-dialog::backdrop {
  background: rgba(4, 8, 12, 0.72);
  backdrop-filter: blur(8px);
}

.jos-card-dialog__overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  width: 100%;
  padding: clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
}

.jos-card-dialog__panel {
  position: relative;
  width: min(100%, 31rem);
  padding: clamp(1.5rem, 4.5vw, 2rem) clamp(1.35rem, 4vw, 1.85rem) clamp(1.35rem, 3vw, 1.65rem);
  border-radius: 4px 18px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top: 3px solid rgba(233, 196, 106, 0.55);
  background:
    linear-gradient(105deg, rgba(233, 196, 106, 0.07) 0%, transparent 42%),
    linear-gradient(168deg, rgba(24, 42, 34, 0.97) 0%, rgba(10, 14, 18, 0.98) 55%, rgba(12, 20, 26, 0.99) 100%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

@keyframes josCardWatermarkDrift {
  0%,
  100% {
    transform: rotate(-8deg) translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  20% {
    transform: rotate(-5.5deg) translate3d(-2.5%, 1.2%, 0) scale(1.02);
    opacity: 0.72;
  }
  45% {
    transform: rotate(-10deg) translate3d(1.8%, -1.5%, 0) scale(0.98);
    opacity: 1;
  }
  70% {
    transform: rotate(-6deg) translate3d(2%, 2%, 0) scale(1.01);
    opacity: 0.8;
  }
  88% {
    transform: rotate(-9deg) translate3d(-1.2%, -0.8%, 0) scale(1);
    opacity: 0.95;
  }
}

.jos-card-dialog__watermark {
  position: absolute;
  right: -0.35rem;
  top: 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 28vw, 7.5rem);
  line-height: 0.85;
  letter-spacing: 0.04em;
  color: rgba(233, 196, 106, 0.06);
  pointer-events: none;
  user-select: none;
  transform: rotate(-8deg);
  transform-origin: 55% 45%;
}

.jos-card-dialog[open] .jos-card-dialog__watermark {
  will-change: transform, opacity;
  animation: josCardWatermarkDrift 16s ease-in-out infinite;
}

.jos-card-dialog__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.jos-card-dialog__close:hover {
  color: var(--text);
  border-color: var(--gold-dim);
  background: rgba(233, 196, 106, 0.1);
}

.jos-card-dialog__close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.jos-card-dialog__hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: end;
  margin-bottom: 1.15rem;
  padding-right: 2.25rem;
}

.jos-card-dialog__avatar {
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 4px 16px 16px 16px;
  overflow: hidden;
  border: 1px solid rgba(233, 196, 106, 0.35);
  background: rgba(0, 0, 0, 0.4);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: rotate(-2deg);
}

.jos-card-dialog__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.jos-card-dialog__intro {
  margin: 0;
  padding-bottom: 0.15rem;
}

.jos-card-dialog__kicker {
  margin: 0 0 0.25rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.jos-card-dialog__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 9vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0.08em;
  color: var(--text);
}

.jos-card-dialog__tag {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.12em;
}

.jos-card-dialog__mix {
  position: relative;
  z-index: 1;
  margin: 0 0 1.05rem;
  padding: 0.75rem 0.85rem 0.8rem 0.95rem;
  font-size: 0.84rem;
  line-height: 1.58;
  letter-spacing: 0.03em;
  color: rgba(228, 234, 240, 0.94);
  border-radius: 2px 12px 12px 2px;
  border: 1px solid rgba(233, 196, 106, 0.2);
  border-left: 4px solid var(--gold);
  background: rgba(0, 0, 0, 0.28);
}

.jos-card-dialog__mix strong {
  color: var(--gold);
  font-weight: 600;
}

.jos-card-dialog__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  padding-left: 0.55rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.jos-card-dialog__lede {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.62;
  letter-spacing: 0.02em;
  color: rgba(232, 238, 244, 0.9);
}

.jos-card-dialog__lede strong {
  color: var(--gold);
  font-weight: 600;
}

.jos-card-dialog__lede--soft {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.jos-card-dialog__skills-wrap {
  position: relative;
  z-index: 1;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.jos-card-dialog__skills-label {
  margin: 0 0 0.55rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(143, 163, 182, 0.85);
}

.jos-card-dialog__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jos-card-dialog__skills li {
  margin: 0;
  padding: 0.32rem 0.62rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 238, 244, 0.88);
  border-radius: 3px 999px 999px 3px;
  border: 1px solid rgba(45, 106, 79, 0.45);
  background: linear-gradient(135deg, rgba(27, 67, 50, 0.35) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.jos-card-dialog__legal {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-align: center;
  color: rgba(143, 163, 182, 0.82);
}

@media (max-width: 380px) {
  .jos-card-dialog__hero {
    grid-template-columns: 1fr;
    justify-items: start;
    padding-right: 2.5rem;
  }

  .jos-card-dialog__avatar {
    transform: rotate(-1deg);
  }
}

.panel--work .work-head {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 0.35rem;
}

/* Indication « i » — section Projets */
.work-hint {
  position: relative;
  flex-shrink: 0;
}

.work-hint__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  margin: 0.15rem 0 0;
  padding: 0;
  border: 1px solid rgba(233, 196, 106, 0.55);
  border-radius: 50%;
  background: rgba(27, 67, 50, 0.45);
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s var(--ease-out);
}

.work-hint:not(.is-open) .work-hint__trigger {
  animation: workHintBlink 1.65s ease-in-out infinite;
}

.work-hint.is-open .work-hint__trigger {
  background: rgba(233, 196, 106, 0.18);
  border-color: var(--gold);
  animation: none;
  opacity: 1;
}

.work-hint__trigger:hover {
  transform: scale(1.08);
  border-color: var(--gold);
}

.work-hint__trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.work-hint__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 20;
  width: min(calc(100vw - 2rem), 300px);
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(45, 106, 79, 0.55);
  background: linear-gradient(160deg, rgba(18, 32, 28, 0.97) 0%, rgba(10, 14, 18, 0.98) 100%);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(233, 196, 106, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.55);
}

.work-hint__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
}

.work-hint__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
  opacity: 0.95;
}

.work-hint__text strong {
  color: #c8e6d4;
  font-weight: 600;
}

.work-hint__hl {
  color: var(--gold);
  text-shadow: 0 0 12px var(--gold-dim);
}

.work-hint__pawn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 36px;
  height: 44px;
  margin: 0.75rem auto 0.65rem;
  filter: drop-shadow(0 0 10px rgba(233, 196, 106, 0.4));
  animation: formationQbPulse 2.4s ease-in-out infinite;
}

.work-hint__pawn-helmet {
  width: 18px;
  height: 15px;
  border-radius: 45% 45% 40% 40%;
  background: linear-gradient(165deg, #3d8f5f 0%, #1b4332 100%);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    0 0 0 2px rgba(233, 196, 106, 0.85),
    0 0 0 4px rgba(233, 196, 106, 0.2);
}

.work-hint__pawn-jersey {
  width: 20px;
  height: 19px;
  margin-top: -1px;
  background: linear-gradient(180deg, #347856 0%, #1b4332 55%, #0f2419 100%);
  border: 1px solid rgba(233, 196, 106, 0.45);
  clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%);
}

.work-hint__dismiss {
  display: block;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(45, 106, 79, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.work-hint__dismiss:hover {
  background: rgba(45, 106, 79, 0.55);
  border-color: var(--turf-light);
}

.work-hint__dismiss:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.45);
}

@keyframes workHintBlink {
  0%,
  100% {
    opacity: 0.55;
    box-shadow: 0 0 0 0 rgba(233, 196, 106, 0);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 14px rgba(233, 196, 106, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-hint:not(.is-open) .work-hint__trigger {
    animation: none;
    opacity: 0.9;
  }

  .work-hint__pawn {
    animation: none;
  }
}

@media (max-width: 520px) {
  .work-hint__panel {
    right: auto;
    left: 0;
  }
}

@media (pointer: fine) {
  .work-hint__trigger,
  .work-hint__dismiss {
    cursor: pointer !important;
  }
}

.panel--work h2,
.panel--stack h2,
.panel--contact h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: 0.03em;
}

.panel--work h2 {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.panel--stack h2,
.panel--contact h2 {
  margin: 0 0 0.5rem;
}

.panel--work p,
.panel--stack .skills-intro,
.panel--contact p {
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.6;
}

.turf {
  position: relative;
  min-height: 460px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #0d1f18;
  overflow: hidden;
  margin-top: 1.5rem;
  touch-action: manipulation;
}

.panel--work .turf {
  margin-top: 0.35rem;
}

.turf-field-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

/* Formation NFL horizontale : pions casque + maillot, jeu gauche → droite */
.formation {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.formation-piece {
  position: absolute;
  left: var(--fx);
  top: var(--fy);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 24px;
  height: 36px;
  box-sizing: border-box;
  pointer-events: none;
}

button.formation-piece {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  appearance: none;
  -webkit-appearance: none;
}

.formation-helmet {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 14px;
  height: 12px;
  margin-bottom: -3px;
  border-radius: 50% 50% 44% 44%;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.22),
    inset 0 -2px 4px rgba(0, 0, 0, 0.28),
    0 2px 5px rgba(0, 0, 0, 0.45);
}

.formation-helmet::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 10px;
  height: 4px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-top: 0;
  border-radius: 0 0 55% 55%;
  opacity: 0.55;
  pointer-events: none;
}

.formation-helmet--home {
  background: linear-gradient(155deg, #5cb88a 0%, #2a6b4a 42%, #143828 100%);
  border: 1.5px solid rgba(170, 245, 200, 0.5);
}

.formation-helmet--away {
  background: linear-gradient(155deg, #fff2b8 0%, #e9c46a 45%, #9a7209 100%);
  border: 1.5px solid rgba(255, 248, 220, 0.55);
}

.formation-jersey {
  flex-shrink: 0;
  width: 17px;
  height: 16px;
  border-radius: 4px 4px 5px 5px;
  clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 4px 8px rgba(0, 0, 0, 0.42);
}

.formation-jersey--home {
  background: linear-gradient(180deg, #347856 0%, #1b4332 55%, #0f2419 100%);
  border: 1px solid rgba(120, 200, 150, 0.4);
}

.formation-jersey--away {
  background: linear-gradient(180deg, #6b5420 0%, #3d3012 50%, #1a1508 100%);
  border: 1px solid rgba(233, 196, 106, 0.45);
}

.formation-piece--qb {
  pointer-events: auto;
  cursor: pointer;
  width: 28px;
  height: 42px;
  filter: drop-shadow(0 0 10px rgba(233, 196, 106, 0.35));
  animation: formationQbPulse 2.4s ease-in-out infinite;
}

.formation-piece--qb .formation-helmet--home {
  width: 16px;
  height: 14px;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3),
    0 0 0 2px rgba(233, 196, 106, 0.85),
    0 0 0 4px rgba(233, 196, 106, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.5);
}

.formation-piece--qb .formation-jersey--home {
  width: 19px;
  height: 18px;
  border-color: rgba(233, 196, 106, 0.5);
}

.formation-piece--qb:hover,
.formation-piece--qb:focus-visible {
  outline: none;
  transform: translate(-50%, -50%) scale(1.08);
  filter: drop-shadow(0 0 16px rgba(233, 196, 106, 0.55));
}

@keyframes formationQbPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(233, 196, 106, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(233, 196, 106, 0.5));
  }
}

@media (prefers-reduced-motion: reduce) {
  .formation-piece--qb {
    animation: none;
  }
}

/* Fiche vidéo bas d’écran */
.replay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  pointer-events: none;
}

.replay[hidden] {
  display: none !important;
}

.replay:not([hidden]) {
  pointer-events: auto;
}

.replay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 12, 0.22);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.replay--open .replay-backdrop {
  opacity: 1;
}

.replay-panel {
  position: relative;
  width: 100%;
  max-width: 36rem;
  max-height: min(52vh, 440px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 1.1rem 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  border-radius: 18px 18px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: rgba(12, 16, 22, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.45);
  transform: translateY(105%);
  transition:
    transform 0.42s var(--ease-out),
    max-height 0.35s var(--ease-out),
    max-width 0.35s var(--ease-out);
  scrollbar-width: thin;
  scrollbar-color: rgba(233, 196, 106, 0.35) transparent;
}

.replay-panel.replay-panel--video-expand {
  max-width: min(100%, 56rem);
  max-height: min(92vh, 880px);
}

.replay-panel::-webkit-scrollbar {
  width: 6px;
}

.replay-panel::-webkit-scrollbar-track {
  background: transparent;
}

.replay-panel::-webkit-scrollbar-thumb {
  background: rgba(233, 196, 106, 0.28);
  border-radius: 999px;
}

.replay--open .replay-panel {
  transform: translateY(0);
}

.replay-legal {
  margin: 0.65rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(143, 163, 182, 0.78);
  line-height: 1.4;
}

.replay-legal--motion {
  margin-top: 0.5rem;
}

.replay-handle {
  width: 2.75rem;
  height: 4px;
  margin: 0.55rem auto 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.replay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.replay-head-text {
  min-width: 0;
  flex: 1;
}

.replay-head-actions {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  gap: 0.35rem;
}

.replay-expand {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(45, 106, 79, 0.35);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}

.replay-expand:hover,
.replay-expand:focus-visible {
  outline: none;
  border-color: var(--gold-dim);
  background: rgba(233, 196, 106, 0.12);
  color: var(--gold);
}

.replay-expand[aria-pressed="true"] {
  border-color: var(--gold-dim);
  color: var(--gold);
}

.replay-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.replay-close:hover,
.replay-close:focus-visible {
  outline: none;
  border-color: var(--gold-dim);
  background: rgba(233, 196, 106, 0.1);
  color: var(--gold);
}

.replay-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.2vw, 1.4rem);
  letter-spacing: 0.04em;
  margin: 0;
  font-weight: 400;
  line-height: 1.12;
}

.replay-video-wrap {
  margin: 0 -0.2rem;
  border-radius: 12px;
  overflow: hidden;
  background: #050608;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.replay-video {
  display: block;
  width: 100%;
  max-height: min(36vh, 300px);
  object-fit: contain;
  background: #000;
  transition: max-height 0.35s var(--ease-out);
}

.replay-panel.replay-panel--video-expand .replay-video {
  max-height: min(78vh, 720px);
}

.motion-replay__sub {
  margin: 0.4rem 0 0;
  max-width: 36ch;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 400;
}

.motion-replay__sub strong {
  color: var(--gold);
  font-weight: 600;
}

.motion-demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin: 0 0 0.65rem;
}

.motion-manipulate-btn,
.motion-reset-btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(45, 106, 79, 0.4);
  color: var(--text);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.motion-manipulate-btn:hover,
.motion-reset-btn:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}

.motion-manipulate-btn[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(233, 196, 106, 0.14);
  color: var(--gold);
  box-shadow: 0 0 0 1px rgba(233, 196, 106, 0.25);
}

.motion-manipulate-btn:focus-visible,
.motion-reset-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.motion-demo-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 -0.2rem;
}

.motion-demo-body.motion-demo-body--manipulate {
  flex-direction: row;
  align-items: stretch;
  gap: 0.75rem;
}

.motion-demo-main {
  flex: 1;
  min-width: 0;
}

.motion-controls {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 0 0 12rem;
  max-width: 12rem;
  padding: 0.75rem 0.8rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(233, 196, 106, 0.22);
  background: rgba(8, 12, 18, 0.92);
  box-shadow: inset 0 0 0 1px rgba(45, 106, 79, 0.2);
}

.motion-controls[hidden] {
  display: none !important;
}

.motion-controls__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.motion-controls__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.motion-controls__list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.motion-controls__list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.motion-controls__keys {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(232, 238, 244, 0.92);
  line-height: 1.35;
}

.motion-controls__keys kbd {
  display: inline-block;
  padding: 0.12em 0.32em;
  margin: 0 0.06em;
  border-radius: 4px;
  border: 1px solid var(--line);
  font-size: 0.8em;
  font-family: inherit;
  font-weight: 600;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.35);
}

.motion-controls__desc {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 560px) {
  .motion-demo-body.motion-demo-body--manipulate {
    flex-direction: column;
  }

  .motion-controls {
    flex: none;
    max-width: none;
    width: 100%;
  }
}

.motion-demo-stage--manipulate {
  touch-action: none;
  cursor: grab;
  border-radius: 12px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(233, 196, 106, 0.2);
}

.motion-demo-stage--manipulate:focus-visible {
  box-shadow:
    inset 0 0 0 1px rgba(233, 196, 106, 0.35),
    0 0 0 2px var(--gold-dim);
}

.motion-demo-stage--manipulate.motion-demo-stage--dragging {
  cursor: grabbing;
}

.motion-demo-stage--manipulate.motion-demo-stage--pan {
  cursor: move;
}

.motion-demo-wrap {
  overflow: visible;
  background: radial-gradient(ellipse 85% 75% at 50% 38%, rgba(45, 106, 79, 0.22) 0%, #050608 58%);
}

.motion-demo-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(42vh, 360px);
  padding: 1.2rem 1rem 1.6rem;
  perspective: 920px;
  perspective-origin: 50% 38%;
}

.motion-demo-shine {
  position: absolute;
  inset: 10% 16% 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 45% 45%, rgba(233, 196, 106, 0.22) 0%, transparent 68%);
  pointer-events: none;
  animation: motionDemoShine 5.5s ease-in-out infinite;
}

.motion-demo-jersey {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: min(58vw, 268px);
  height: auto;
  transform-style: preserve-3d;
  animation: motionJerseyDemo 5s ease-in-out infinite;
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.55));
  transform-origin: 50% 55%;
}

.motion-demo-stage--manipulate .motion-demo-jersey {
  animation: none !important;
  will-change: transform;
}

.replay-panel.replay-panel--video-expand .motion-demo-stage {
  min-height: min(56vh, 520px);
}

.replay-panel.replay-panel--video-expand .motion-demo-jersey {
  max-width: min(74vw, 360px);
}

@keyframes motionJerseyDemo {
  0%,
  100% {
    transform: translateY(0) rotateY(-12deg) rotateX(5deg) scale(1);
  }
  22% {
    transform: translateY(-11px) rotateY(14deg) rotateX(-3deg) scale(1.02);
  }
  48% {
    transform: translateY(-5px) rotateY(20deg) rotateX(4deg) scale(1.035);
  }
  72% {
    transform: translateY(-14px) rotateY(-10deg) rotateX(9deg) scale(1.02);
  }
}

@keyframes motionDemoShine {
  0%,
  100% {
    opacity: 0.65;
    transform: translate(-6%, -3%);
  }
  50% {
    opacity: 1;
    transform: translate(7%, 5%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-demo-jersey,
  .motion-demo-shine {
    animation: none !important;
  }

  .motion-demo-jersey {
    transform: rotateY(-10deg) rotateX(5deg);
  }

  .replay-panel {
    transition: opacity 0.18s ease;
    transition-property: opacity;
  }
}

.skills-board {
  --look-x: 0;
  position: relative;
  margin-top: 1.35rem;
  padding: clamp(1.1rem, 3vw, 1.45rem);
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(27, 67, 50, 0.12) 0%, transparent 45%),
    rgba(12, 18, 24, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 2.5vw, 1.15rem);
}

.skill-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 9.5rem) 1fr minmax(2.5rem, 2.75rem);
  align-items: center;
  gap: 0.65rem 0.85rem;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.15rem;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.skill-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.skill-row:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--turf-light);
}

.skill-row__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.skill-row__track {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
}

.skill-row__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--turf) 0%,
    var(--turf-light) 42%,
    #3d9168 72%,
    var(--gold) 100%
  );
  background-size: 220% 100%;
  background-position: calc(50% + var(--look-x) * 35%) 50%;
  transition:
    width 1.15s var(--ease-out),
    background-position 0.12s ease-out;
  transition-delay: var(--delay, 0s);
  box-shadow: 0 0 14px rgba(45, 106, 79, 0.35);
}

.skills-board--revealed .skill-row__fill {
  width: calc(var(--target) * 1%);
}

.skill-row__pct {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-align: right;
}

@keyframes skill-row-pulse {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  35% {
    transform: scale(1.01);
    filter: brightness(1.2) drop-shadow(0 0 14px rgba(233, 196, 106, 0.35));
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.skill-row--pulse {
  animation: skill-row-pulse 0.55s var(--ease-out);
}

.skill-row--pulse .skill-row__fill {
  box-shadow:
    0 0 20px rgba(233, 196, 106, 0.45),
    0 0 14px rgba(45, 106, 79, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .skill-row__fill {
    transition-duration: 0.01ms;
    transition-delay: 0s !important;
  }

  .skill-row--pulse {
    animation: none;
  }
}

@media (max-width: 520px) {
  .skill-row {
    grid-template-columns: 1fr minmax(2.5rem, 2.75rem);
    grid-template-rows: auto auto;
  }

  .skill-row__label {
    grid-column: 1 / -1;
  }

  .skill-row__track {
    grid-column: 1 / 2;
  }

  .skill-row__pct {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    align-self: center;
  }
}

.skills-motion-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: 0.85rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(233, 196, 106, 0.45);
  background: linear-gradient(145deg, rgba(45, 106, 79, 0.45) 0%, rgba(18, 28, 24, 0.92) 100%);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.25s var(--ease-out),
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.skills-motion-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 8px 28px rgba(233, 196, 106, 0.15);
}

.skills-motion-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.contact-wrap {
  width: 100%;
  max-width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: clamp(0.25rem, 2vw, 0.5rem);
  box-sizing: border-box;
}

.contact-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 52ch;
}

.contact-layout {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  }

  .contact-aside {
    position: sticky;
    top: 0.75rem;
  }
}

.contact-aside {
  margin: 0;
}

.contact-aside-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-community-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(45, 106, 79, 0.5) 0%, rgba(12, 22, 28, 0.96) 55%, rgba(18, 24, 36, 0.98) 100%);
  border: 1px solid var(--line);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(233, 196, 106, 0.08),
    0 12px 48px rgba(88, 101, 242, 0.12);
  overflow: hidden;
}

.contact-community-viewport {
  overflow: hidden;
  width: 100%;
}

.contact-community-track {
  display: flex;
  width: 200%;
  will-change: transform;
  transition: transform 0.45s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .contact-community-track {
    transition: none;
  }
}

.contact-community-track.is-discord {
  transform: translateX(-50%);
}

.contact-community-panel {
  flex: 0 0 50%;
  width: 50%;
  box-sizing: border-box;
  min-height: clamp(72px, 18vw, 100px);
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(0.85rem, 2vw, 1.15rem);
}

.contact-community-slide-inner--jersey {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(0.5rem, 2vw, 0.85rem);
  height: 100%;
  min-height: clamp(56px, 14vw, 84px);
}

.contact-community-lockup {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.05;
  color: var(--gold);
  text-shadow: 0 0 20px var(--gold-dim);
  white-space: nowrap;
}

.contact-community-arrow--next {
  margin-left: auto;
}

.contact-community-panel--discord {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-community-arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s var(--ease-out);
}

.contact-community-arrow:hover {
  background: rgba(233, 196, 106, 0.12);
  border-color: var(--gold-dim);
  transform: scale(1.06);
}

.contact-community-arrow:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.contact-community-arrow--prev {
  position: absolute;
  left: clamp(0.5rem, 2vw, 0.85rem);
  top: 50%;
  transform: translateY(-50%);
}

.contact-community-arrow--prev:hover {
  transform: translateY(-50%) scale(1.06);
}

.contact-community-jersey {
  width: auto;
  height: clamp(52px, 12vw, 78px);
  aspect-ratio: 400 / 480;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.5));
}

.contact-community-discord {
  display: block;
  width: clamp(44px, 10vw, 56px);
  height: auto;
  color: #5865f2;
  filter: drop-shadow(0 2px 12px rgba(88, 101, 242, 0.5));
}

.contact-community-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1.25rem, 3vw, 1.75rem) clamp(1.35rem, 3vw, 1.65rem);
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  transition:
    background 0.25s var(--ease-out),
    transform 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out);
}

.contact-community-cta:hover {
  background: rgba(45, 106, 79, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.contact-community-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.65rem);
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--gold);
  text-shadow: 0 2px 20px rgba(233, 196, 106, 0.2);
}

.contact-community-sub {
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  font-weight: 500;
  color: rgba(232, 238, 244, 0.88);
  letter-spacing: 0.02em;
}

@media (pointer: fine) {
  .contact-community-cta {
    cursor: pointer !important;
  }

  .contact-community-card .contact-community-arrow {
    cursor: pointer !important;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-fieldset {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 24, 32, 0.45);
}

.contact-legend {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  padding: 0 0.35rem;
  color: var(--gold);
}

.contact-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-top: 0.5rem;
}

.contact-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--turf-light);
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contact-label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-label--sentence {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.88rem;
  color: var(--text);
  opacity: 0.92;
}

/* L’attribut hidden seul est parfois surchargé par .contact-field { display: flex } */
.contact-field--refonte-url[hidden] {
  display: none !important;
}

.contact-field--refonte-url:not([hidden]) {
  animation: contact-refonte-reveal 0.4s var(--ease-out);
}

@keyframes contact-refonte-reveal {
  from {
    opacity: 0;
    transform: translateY(-0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-field--refonte-url:not([hidden]) {
    animation: none;
  }
}

.contact-form input.contact-site-url {
  width: 100%;
  padding: 0.95rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(45, 106, 79, 0.4);
  background: linear-gradient(165deg, rgba(27, 67, 50, 0.28) 0%, rgba(14, 20, 26, 0.94) 48%, rgba(18, 24, 32, 0.98) 100%);
  color: var(--text);
  font-family: inherit;
  font-size: 1.02rem;
  line-height: 1.45;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 28px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.contact-form input.contact-site-url::placeholder {
  color: rgba(143, 163, 182, 0.55);
  font-size: 0.95rem;
}

.contact-form input.contact-site-url:hover {
  border-color: rgba(45, 106, 79, 0.65);
}

.contact-form input.contact-site-url:focus {
  outline: none;
  border-color: var(--turf-light);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(45, 106, 79, 0.4),
    0 0 36px rgba(233, 196, 106, 0.12);
}

.contact-budget-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.contact-budget-min,
.contact-budget-max {
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
}

.contact-budget-row input[type="range"] {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  accent-color: var(--turf-light);
}

.contact-budget-row input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), #b8892a);
  border: 2px solid rgba(10, 14, 18, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: inherit;
}

.contact-budget-row input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), #b8892a);
  border: 2px solid rgba(10, 14, 18, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: inherit;
}

.contact-budget-out {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.contact-form textarea,
.contact-form input[type="text"] {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(18, 24, 32, 0.85);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  min-height: 2.75rem;
}

.contact-form textarea {
  min-height: 7rem;
  line-height: 1.55;
}

.contact-form textarea:focus,
.contact-form input[type="text"]:focus {
  outline: none;
  border-color: var(--turf-light);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.35);
}

.contact-status {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--turf-light);
}

.contact-form .btn--primary {
  align-self: flex-start;
}

.contact-hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  opacity: 0.9;
  max-width: 48ch;
}

/* Flèches d’indication : à gauche et à droite de JoSPlay (même bande que le cadran), pas au-dessus */
.josplay-arrow {
  position: fixed;
  left: 50%;
  bottom: clamp(155px, 22vh, 210px);
  z-index: 65;
  transform: translateX(-50%);
  width: min(100vw - 2rem, 400px);
  transition:
    left 0.55s var(--ease-out),
    right 0.55s var(--ease-out),
    transform 0.55s var(--ease-out),
    width 0.55s var(--ease-out),
    opacity 0.2s ease;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  color: var(--gold);
  transition: opacity 0.2s ease;
}

.josplay-arrow-wing {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 18px var(--gold-dim);
  filter: drop-shadow(0 0 8px rgba(233, 196, 106, 0.35));
}

.josplay-arrow-wing--left {
  padding-right: 0.25rem;
}

.josplay-arrow-wing--right {
  padding-left: 0.25rem;
}

.josplay-arrow.josplay-arrow--cue {
  visibility: visible;
  opacity: 1;
}

.josplay-arrow.josplay-arrow--cue .josplay-arrow-wing--left {
  animation: josplayArrowCueL 2.8s var(--ease-out) forwards;
}

.josplay-arrow.josplay-arrow--cue .josplay-arrow-wing--right {
  animation: josplayArrowCueR 2.8s var(--ease-out) forwards;
}

@keyframes josplayArrowCueL {
  0% {
    opacity: 0;
    transform: translateX(-14px);
  }
  8% {
    opacity: 1;
  }
  18% {
    opacity: 0.15;
  }
  28% {
    opacity: 1;
  }
  38% {
    opacity: 0.15;
  }
  48% {
    opacity: 1;
  }
  58% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: translateX(6px);
  }
}

@keyframes josplayArrowCueR {
  0% {
    opacity: 0;
    transform: translateX(14px);
  }
  8% {
    opacity: 1;
  }
  18% {
    opacity: 0.15;
  }
  28% {
    opacity: 1;
  }
  38% {
    opacity: 0.15;
  }
  48% {
    opacity: 1;
  }
  58% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: translateX(-6px);
  }
}

.josplay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0.35rem 1rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(10, 14, 18, 0.97) 0%, rgba(10, 14, 18, 0.75) 45%, transparent 100%);
  pointer-events: none;
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.5s var(--ease-out),
    opacity 0.4s ease,
    visibility 0.4s;
}

.josplay:not(.josplay--open) {
  pointer-events: none !important;
}

.josplay.josplay--open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.josplay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  pointer-events: auto;
  width: min(100%, 400px);
  transition: transform 0.55s var(--ease-out);
  will-change: transform;
}

/* Contact + Projets : roue et flèche décalées à droite pour ne pas masquer le contenu central */
body.josplay-dock-right .josplay.josplay--open .josplay-inner {
  transform: translateX(calc(50vw - 1.25rem - env(safe-area-inset-right, 0px) - 50%));
}

body.josplay-dock-right.josplay-ready .josplay-arrow {
  left: auto;
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  width: min(280px, calc(100vw - 1.5rem));
  transform: none;
}

.josplay-title {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  text-shadow: 0 0 20px var(--gold-dim);
}

.josplay-ring-wrap {
  position: relative;
  width: min(280px, 78vw);
  aspect-ratio: 1;
  touch-action: none;
}

.josplay-ring {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.ring-seg {
  transition: opacity 0.2s;
}

.ring-seg.is-active {
  opacity: 1;
}

.ring-seg:not(.is-active) {
  opacity: 0.45;
}

.josplay-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(64px, 18vw, 76px);
  height: clamp(64px, 18vw, 76px);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2d6a4f, #0a0e12);
  border: 2px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 2;
  pointer-events: none;
}

.josplay-center {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.josplay-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
  max-width: 22rem;
  line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
  .jos-card-dialog[open] .jos-card-dialog__watermark {
    animation: none;
    will-change: auto;
  }

  .panel {
    animation: none;
  }

  .hero-title .line {
    opacity: 1;
    animation: none;
    transform: none;
    filter: none;
  }

  .exp-preview {
    transition: opacity 0.15s ease;
  }

  .hero-title:has(.exp-preview-group:hover),
  .hero-title:has(.exp-preview-group:focus-within),
  .hero-title:has(.exp-preview-group.is-open) {
    transition: none;
  }

  .hero-title:has(.exp-preview-group:hover) > .line:first-child,
  .hero-title:has(.exp-preview-group:focus-within) > .line:first-child,
  .hero-title:has(.exp-preview-group.is-open) > .line:first-child,
  .panel--hero:has(.exp-preview-group:hover) .eyebrow,
  .panel--hero:has(.exp-preview-group:focus-within) .eyebrow,
  .panel--hero:has(.exp-preview-group.is-open) .eyebrow,
  .panel--hero:has(.exp-preview-group:hover) .lead,
  .panel--hero:has(.exp-preview-group:focus-within) .lead,
  .panel--hero:has(.exp-preview-group.is-open) .lead,
  .panel--hero:has(.exp-preview-group:hover) .hero-actions,
  .panel--hero:has(.exp-preview-group:focus-within) .hero-actions,
  .panel--hero:has(.exp-preview-group.is-open) .hero-actions,
  .panel--hero:has(.exp-preview-group:hover) .jersey-stage,
  .panel--hero:has(.exp-preview-group:focus-within) .jersey-stage,
  .panel--hero:has(.exp-preview-group.is-open) .jersey-stage {
    filter: none;
    opacity: 1;
    transition: none;
  }

  .josplay {
    transition: none;
  }

  .josplay.josplay--open {
    transform: translateY(0);
  }

  .josplay-inner {
    transition: none;
  }

  body.josplay-dock-right .josplay.josplay--open .josplay-inner {
    transform: none;
  }

  body.josplay-dock-right.josplay-ready .josplay-arrow {
    transition: none;
  }

  .josplay-arrow.josplay-arrow--cue .josplay-arrow-wing--left,
  .josplay-arrow.josplay-arrow--cue .josplay-arrow-wing--right {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
