/* V4 — NEO-BRUTALIST SUNBURST — DA officielle Hotspot Bar Paris
   Sources: Arditi × Lab Out × Gebrauchs Graphik
   Consolidé depuis V1 (cursor/glitch), V2 (animations/geometry), V3 (burst/texture), V5 (emojis/sparkles)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Anton&family=Oxanium:wght@800;900&display=swap');

:root {
  --c-red:    #A52030;
  --c-black:  #0A0000;
  --c-white:  #F5F0E8;
  --c-yellow: #FFE000;
  --c-dark:   rgba(0, 0, 0, 0.72);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== CURSEUR PIMENT 🌶️ ===== */
*, *::before, *::after { cursor: none !important; }

.cursor-chili {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  width: 24px;
  height: 24px;
  will-change: transform;
  user-select: none;
  transform: translate3d(-200px, -200px, 0) rotate(-20deg);
  transition: width 0.12s, height 0.12s;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.6));
}
.cursor-chili img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cursor-chili.hover { width: 32px; height: 32px; }

/* Pas de curseur custom sur tactile */
@media (pointer: coarse) {
  .cursor-chili { display: none; }
  *, *::before, *::after { cursor: auto !important; }
}

/* Restaurer le curseur et l'outline au focus clavier */
:focus-visible {
  cursor: auto !important;
  outline: 3px solid var(--c-yellow) !important;
  outline-offset: 3px;
  box-shadow: 4px 4px 0 var(--c-red) !important;
}

/* ===== SKIP LINK & SR-ONLY ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 999999;
  background: var(--c-yellow);
  color: var(--c-black);
  padding: 0.5rem 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.skip-link:focus { left: 1rem; }

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

/* ===== PAUSE ANIMATIONS ===== */
.pause-btn {
  position: fixed;
  bottom: max(1rem, calc(env(safe-area-inset-bottom) + 0.5rem));
  left: max(1rem, env(safe-area-inset-left));
  z-index: 9999;
  background: rgba(0,0,0,0.7);
  color: var(--c-yellow);
  border: 2px solid var(--c-yellow);
  padding: 0.3rem 0.7rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  min-height: 44px;
}
.pause-btn:hover { background: var(--c-yellow); color: var(--c-black); }

body.animations-paused .bg-deco,
body.animations-paused .burst-bg,
body.animations-paused .brutalist-title,
body.animations-paused .brutalist-title::before,
body.animations-paused .brutalist-title::after,
body.animations-paused .avatar-brutalist,
body.animations-paused .hero-logo-wrap,
body.animations-paused .burst-title-wrap,
body.animations-paused .title-sub,
body.animations-paused .title-band,
body.animations-paused .brutalist-tags,
body.animations-paused .brutalist-bar,
body.animations-paused .brutalist-cta,
body.animations-paused .brutalist-about,
body.animations-paused .links-brutalist,
body.animations-paused .game-section {
  animation-play-state: paused !important;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--c-black);
  color: var(--c-white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== SUNBURST CANVAS ===== */
#sunburstCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* CSS sunburst supprimé — remplacé par canvas (zéro bug iOS Safari) */
.sunburst-inner-DISABLED {
  background: conic-gradient(
    var(--c-black) 0deg, var(--c-black) 5deg,
    var(--c-red) 5deg, var(--c-red) 10deg,
    var(--c-black) 10deg, var(--c-black) 15deg,
    var(--c-red) 15deg, var(--c-red) 20deg,
    var(--c-black) 20deg, var(--c-black) 25deg,
    var(--c-red) 25deg, var(--c-red) 30deg,
    var(--c-black) 30deg, var(--c-black) 35deg,
    var(--c-red) 35deg, var(--c-red) 40deg,
    var(--c-black) 40deg, var(--c-black) 45deg,
    var(--c-red) 45deg, var(--c-red) 50deg,
    var(--c-black) 50deg, var(--c-black) 55deg,
    var(--c-red) 55deg, var(--c-red) 60deg,
    var(--c-black) 60deg, var(--c-black) 65deg,
    var(--c-red) 65deg, var(--c-red) 70deg,
    var(--c-black) 70deg, var(--c-black) 75deg,
    var(--c-red) 75deg, var(--c-red) 80deg,
    var(--c-black) 80deg, var(--c-black) 85deg,
    var(--c-red) 85deg, var(--c-red) 90deg,
    var(--c-black) 90deg, var(--c-black) 95deg,
    var(--c-red) 95deg, var(--c-red) 100deg,
    var(--c-black) 100deg, var(--c-black) 105deg,
    var(--c-red) 105deg, var(--c-red) 110deg,
    var(--c-black) 110deg, var(--c-black) 115deg,
    var(--c-red) 115deg, var(--c-red) 120deg,
    var(--c-black) 120deg, var(--c-black) 125deg,
    var(--c-red) 125deg, var(--c-red) 130deg,
    var(--c-black) 130deg, var(--c-black) 135deg,
    var(--c-red) 135deg, var(--c-red) 140deg,
    var(--c-black) 140deg, var(--c-black) 145deg,
    var(--c-red) 145deg, var(--c-red) 150deg,
    var(--c-black) 150deg, var(--c-black) 155deg,
    var(--c-red) 155deg, var(--c-red) 160deg,
    var(--c-black) 160deg, var(--c-black) 165deg,
    var(--c-red) 165deg, var(--c-red) 170deg,
    var(--c-black) 170deg, var(--c-black) 175deg,
    var(--c-red) 175deg, var(--c-red) 180deg,
    var(--c-black) 180deg, var(--c-black) 185deg,
    var(--c-red) 185deg, var(--c-red) 190deg,
    var(--c-black) 190deg, var(--c-black) 195deg,
    var(--c-red) 195deg, var(--c-red) 200deg,
    var(--c-black) 200deg, var(--c-black) 205deg,
    var(--c-red) 205deg, var(--c-red) 210deg,
    var(--c-black) 210deg, var(--c-black) 215deg,
    var(--c-red) 215deg, var(--c-red) 220deg,
    var(--c-black) 220deg, var(--c-black) 225deg,
    var(--c-red) 225deg, var(--c-red) 230deg,
    var(--c-black) 230deg, var(--c-black) 235deg,
    var(--c-red) 235deg, var(--c-red) 240deg,
    var(--c-black) 240deg, var(--c-black) 245deg,
    var(--c-red) 245deg, var(--c-red) 250deg,
    var(--c-black) 250deg, var(--c-black) 255deg,
    var(--c-red) 255deg, var(--c-red) 260deg,
    var(--c-black) 260deg, var(--c-black) 265deg,
    var(--c-red) 265deg, var(--c-red) 270deg,
    var(--c-black) 270deg, var(--c-black) 275deg,
    var(--c-red) 275deg, var(--c-red) 280deg,
    var(--c-black) 280deg, var(--c-black) 285deg,
    var(--c-red) 285deg, var(--c-red) 290deg,
    var(--c-black) 290deg, var(--c-black) 295deg,
    var(--c-red) 295deg, var(--c-red) 300deg,
    var(--c-black) 300deg, var(--c-black) 305deg,
    var(--c-red) 305deg, var(--c-red) 310deg,
    var(--c-black) 310deg, var(--c-black) 315deg,
    var(--c-red) 315deg, var(--c-red) 320deg,
    var(--c-black) 320deg, var(--c-black) 325deg,
    var(--c-red) 325deg, var(--c-red) 330deg,
    var(--c-black) 330deg, var(--c-black) 335deg,
    var(--c-red) 335deg, var(--c-red) 340deg,
    var(--c-black) 340deg, var(--c-black) 345deg,
    var(--c-red) 345deg, var(--c-red) 350deg,
    var(--c-black) 350deg, var(--c-black) 355deg,
    var(--c-red) 355deg, var(--c-red) 360deg
  );
  animation: none;
}

/* Halftone + assombrissement — rend le fond moins agressif et améliore lisibilité */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle, rgba(0,0,0,0.45) 1px, transparent 1px),
    rgba(0,0,0,0.25);
  background-size: 8px 8px, 100%;
}

/* ===== DÉCORATIONS FOND — piments & manettes ===== */
.bg-decos {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.bg-deco {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0.1;
  animation: spinFloat linear infinite;
  user-select: none;
}
@keyframes spinFloat {
  0%   { transform: rotate(0deg) translateY(0px); }
  50%  { transform: rotate(180deg) translateY(-20px); }
  100% { transform: rotate(360deg) translateY(0px); }
}

/* ===== SPARKLES sur clic ===== */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 99997;
  opacity: 0;
  animation: sparklePop ease-out forwards;
  user-select: none;
}
@keyframes sparklePop {
  0%   { opacity: 0; transform: scale(0.5) translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.3) translateY(-70px); }
}

/* ===== PAGE CONTAINER ===== */
.brutalist-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem; /* top : espace pour le bouton LINKS absolu */
  position: relative;
  z-index: 3;
}

/* Fade-in entrée */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-logo-wrap    { animation: fadeUp 0.45s ease both; }
.burst-title-wrap  { animation: fadeUp 0.55s 0.08s ease both; }
.title-sub         { animation: fadeUp 0.5s 0.14s ease both; }
.title-band        { animation: fadeUp 0.5s 0.18s ease both; }
.brutalist-tags    { animation: fadeUp 0.5s 0.22s ease both; }
.brutalist-bar     { animation: fadeUp 0.5s 0.28s ease both; }
.brutalist-cta     { animation: fadeUp 0.5s 0.34s ease both; }

/* ===== HEADER — minimal, juste le bouton LINKS (règle : logo une seule fois) ===== */
.brutalist-header {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

.brutalist-nav {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-black);
  background: var(--c-yellow);
  padding: 0.4rem 1rem;
  text-decoration: none;
  border: 2px solid rgba(0,0,0,0.3);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
  transition: transform 0.1s, box-shadow 0.1s;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brutalist-nav:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 rgba(0,0,0,0.4); }

/* Logo héro — affiché une seule fois, au-dessus du titre */
.hero-logo-wrap {
  text-align: left;
  margin-bottom: 1rem;
}
.hero-logo {
  width: 140px; height: 140px;
  object-fit: contain;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* ===== TITRE avec BURST — inline-block pour que le burst colle au texte ===== */
.burst-title-wrap {
  position: relative;
  display: inline-block; /* colle au texte — le burst est centré sur lui */
  max-width: 100%;
}
.burst-bg {
  position: absolute;
  inset: -80px;
  background-image: url('../images/Banner01.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.9;
  z-index: 0;
  animation: burstPulse 3s ease-in-out infinite;
  filter: sepia(1) saturate(8) hue-rotate(-10deg) brightness(1.1);
}
@keyframes burstPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%       { opacity: 1;    transform: scale(1.06); }
}

/* ===== GLITCH TITRE — ::before/::after clips + steps(1) (CSS-Tricks technique) ===== */
.brutalist-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(3.5rem, 15vw, 8rem);
  line-height: 0.88;
  color: var(--c-white);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  /* Aberration chromatique persistante bas niveau */
  text-shadow:
    2px 0 0 rgba(255,0,80,0.7),
    -2px 0 0 rgba(0,255,255,0.7);
  animation: glitchMain 5s steps(1) infinite;
}
/* Tranche cyan */
.brutalist-title::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: #0ff;
  clip-path: inset(0 0 100% 0);
  animation: glitchTop 5s steps(1) infinite;
  left: -3px;
  z-index: 2;
}
/* Tranche rouge */
.brutalist-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: #f05;
  clip-path: inset(100% 0 0 0);
  animation: glitchBottom 5s steps(1) infinite;
  left: 3px;
  z-index: 2;
}

@keyframes glitchMain {
  0%, 82%, 100% {
    transform: none;
    text-shadow: 2px 0 0 rgba(255,0,80,0.7), -2px 0 0 rgba(0,255,255,0.7);
  }
  83% { transform: skewX(-7deg) translateX(4px);  text-shadow: 5px 0 0 #f05, -5px 0 0 #0ff; }
  85% { transform: skewX(4deg) translateX(-3px);   text-shadow: -3px 0 0 #f05, 3px 0 0 #0ff; }
  87% { transform: none; text-shadow: 2px 0 0 rgba(255,0,80,0.7), -2px 0 0 rgba(0,255,255,0.7); }
}
@keyframes glitchTop {
  0%, 81%, 92%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  82% { clip-path: inset(5% 0 58% 0);  transform: translateX(-6px) skewX(-5deg); }
  84% { clip-path: inset(18% 0 42% 0); transform: translateX(4px); }
  86% { clip-path: inset(2% 0 75% 0);  transform: translateX(-2px) skewX(3deg); }
  88% { clip-path: inset(28% 0 28% 0); transform: translateX(5px); }
  90% { clip-path: inset(0 0 100% 0);  transform: none; }
}
@keyframes glitchBottom {
  0%, 81%, 92%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
  82% { clip-path: inset(62% 0 8% 0);  transform: translateX(5px) skewX(4deg); }
  84% { clip-path: inset(48% 0 12% 0); transform: translateX(-4px); }
  86% { clip-path: inset(78% 0 2% 0);  transform: translateX(3px) skewX(-2deg); }
  88% { clip-path: inset(38% 0 22% 0); transform: translateX(-5px); }
  90% { clip-path: inset(100% 0 0 0);  transform: none; }
}

/* Accessibilité : désactiver les animations si l'utilisateur le préfère */
@media (prefers-reduced-motion: reduce) {
  .brutalist-title,
  .brutalist-title::before,
  .brutalist-title::after { animation: none; text-shadow: none; }
  .brutalist-title::before,
  .brutalist-title::after { display: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .bg-deco { animation: none !important; }
  .burst-bg { animation: none !important; }
  .avatar-brutalist { animation: none !important; }
  #sunburstCanvas { display: none !important; }
  body { background: var(--c-black) !important; }
}

.title-sub {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.4rem, 5vw, 2.8rem);
  color: var(--c-yellow);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  max-width: 100%;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.7);
  margin-top: 0.1em;
}

.title-band {
  display: inline-block;
  background: var(--c-yellow);
  color: var(--c-black);
  padding: 0.35rem 1rem;
  clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
  margin: 0.5rem 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* Tags */
.brutalist-tags {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 1.25rem 0;
  border: 2px solid rgba(255,255,255,0.3);
  background: var(--c-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.brutalist-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.25rem;
  border-right: 2px solid rgba(255,255,255,0.2);
  text-align: center;
  min-width: 0;
  color: var(--c-white);
  transition: background 0.15s, color 0.15s;
}
.brutalist-tag { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.tag-icon { font-size: 1.1rem; line-height: 1; }
.brutalist-tag:last-child { border-right: none; }
.brutalist-tag:nth-child(even) { background: var(--c-yellow); color: var(--c-black); }
.brutalist-tag:hover { background: var(--c-yellow) !important; color: var(--c-black) !important; }

/* ===== MINI-JEU ===== */
.game-section {
  display: none;
  margin: 1.25rem 0;
  background: var(--c-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid var(--c-yellow);
  box-shadow: 0 0 20px rgba(255,224,0,0.2), 4px 4px 0 rgba(0,0,0,0.5);
  padding: 1rem;
  animation: fadeUp 0.6s ease both;
}
.game-section.visible { display: block; }

.game-message { margin-bottom: 0.75rem; }
.game-message-big {
  display: block;
  font-family: 'Anton', sans-serif;
  font-size: clamp(1rem, 3.5vw, 1.5rem);
  color: var(--c-yellow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(255,224,0,0.4);
}
.game-message-sub {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: rgba(245,240,232,0.6);
  margin-top: 0.2rem;
  font-weight: 400;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 110px;
  background: rgba(0,0,0,0.6);
  border: 2px solid rgba(255,255,255,0.1);
  image-rendering: pixelated;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}
.game-hint {
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(245,240,232,0.65);
}
.game-score {
  font-family: 'Oxanium', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--c-yellow);
  letter-spacing: 0.1em;
  text-shadow: 0 0 8px rgba(255,224,0,0.4);
}

/* Loading bar */
.brutalist-bar {
  margin: 1.25rem 0;
  background: var(--c-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.75rem;
  border: 2px solid rgba(255,255,255,0.15);
}
.brutalist-bar-label {
  font-family: 'Oxanium', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-yellow);
  margin-bottom: 0.35rem;
  text-shadow: 0 0 8px rgba(255,224,0,0.5);
}
.brutalist-bar-track {
  width: 100%;
  height: 14px;
  background: rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.3);
  overflow: hidden;
}
.brutalist-bar-fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    90deg,
    var(--c-yellow) 0px, var(--c-yellow) 10px,
    rgba(0,0,0,0.3) 10px, rgba(0,0,0,0.3) 12px
  );
  box-shadow: 0 0 8px var(--c-yellow);
  transition: none;
}

/* CTA */
.brutalist-cta {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: 'Anton', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--c-black);
  background: var(--c-yellow);
  border: 3px solid var(--c-yellow);
  padding: 0.6rem 2rem;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.5);
  transition: transform 0.08s, box-shadow 0.08s;
}
.brutalist-cta:hover { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 rgba(0,0,0,0.5); }

/* ===== CARDS avec backdrop-filter ===== */
.brutalist-about {
  margin-top: 1.75rem;
  background: transparent;
  border: none;
  padding: 0 1rem;
}
.brutalist-card {
  border-bottom: 2px solid rgba(255,255,255,0.2);
  padding: 1.25rem 0;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.25rem;
  align-items: start;
  transition: background 0.15s;
  position: relative;
  overflow: hidden;
  min-height: 120px;
}
/* ===== BULLES PNG BACKGROUND ===== */
.card-bubble {
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  padding: 1.8rem 3.5rem 2.2rem 3rem;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.4));
}
.card-bubble-1 { background-image: url('../images/TextArea01.png'); }
.card-bubble-2 { background-image: url('../images/TextArea02.png'); }
.card-bubble-3 { background-image: url('../images/TextArea03.png'); }

.brutalist-card .card-bubble p {
  color: #000 !important;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 48ch;
}
.brutalist-card .card-bubble .brutalist-card-link {
  color: #000 !important;
  border-color: #000;
  font-size: 0.65rem;
  margin-top: 0.6rem;
}
.brutalist-card h2, .brutalist-card p, .brutalist-card-link { position: relative; z-index: 1; }
.brutalist-card:last-child { border-bottom: none; }
.brutalist-card:hover { background: rgba(255,224,0,0.07); }
.brutalist-card h2 {
  font-family: 'Anton', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--c-yellow);
  text-transform: uppercase;
  border-right: 2px solid rgba(255,255,255,0.2);
  padding-right: 1rem;
  align-self: start;
}
.brutalist-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  line-height: 1.75;
  color: rgba(245,240,232,0.85);
  font-weight: 400;
}
.brutalist-card-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-yellow);
  text-decoration: none;
  border-bottom: 1px solid var(--c-yellow);
  transition: opacity 0.1s;
}
.brutalist-card-link:hover { opacity: 0.7; }

.brutalist-footer {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-family: 'Inter', sans-serif;
  font-size: 0.52rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245,240,232,0.3);
}
.brutalist-footer span:last-child { text-align: right; }
.brutalist-footer span:nth-child(2) { text-align: center; }

/* ===== LINKS PAGE ===== */
.links-brutalist {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  position: relative;
  z-index: 3;
  animation: fadeUp 0.5s ease both;
}
.links-brutalist-back {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  margin-bottom: 2rem;
  display: inline-block;
  transition: color 0.1s;
}
.links-brutalist-back:hover { color: var(--c-yellow); border-color: var(--c-yellow); }

/* Avatar avec glitch */
.avatar-brutalist {
  width: 100px; height: 100px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--c-yellow);
  background: rgba(0,0,0,0.6);
  padding: 6px;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.5);
  animation: logoGlitch 8s infinite;
}

/* Titre links */
.links-title-block {
  text-align: center;
  margin-bottom: 1.5rem;
  background: var(--c-dark);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
  border: 2px solid rgba(255,255,255,0.12);
}
.links-title-block h1 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.2rem, 9vw, 4rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--c-white);
  text-shadow: 3px 3px 0 rgba(0,0,0,0.6);
  overflow-wrap: break-word;
}
.links-title-block .sub {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1rem, 4vw, 1.6rem);
  color: var(--c-yellow);
  text-transform: uppercase;
  margin-top: 0.1em;
}
.links-title-block .meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(245,240,232,0.4);
  margin-top: 0.4rem;
  text-transform: uppercase;
}

/* ===== BOUTONS VARIABLES ===== */
.links-brutalist-stack {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.brutalist-row {
  display: flex;
  gap: 0.5rem;
}

a.btn-brutalist {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  padding: 1rem 1.5rem;
  text-decoration: none;
  font-family: 'Anton', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-white);
  background: rgba(0,0,0,0.65);
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.08s, box-shadow 0.08s;
}
a.btn-brutalist:hover { transform: translate(-3px,-3px); box-shadow: 7px 7px 0 rgba(0,0,0,0.5); }
a.btn-brutalist:active { transform: translate(1px,1px); box-shadow: 2px 2px 0 rgba(0,0,0,0.5); }
a.btn-brutalist img { width: 20px; height: 20px; position: absolute; left: 1rem; filter: brightness(0) invert(1); }

/* Questionnaire — grand full-width, jaune */
.btn-br-q {
  background: var(--c-yellow);
  color: var(--c-black);
  font-size: 1.15rem;
  padding: 1.25rem 1.5rem;
  letter-spacing: 0.05em;
  border: 3px solid var(--c-black);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.6);
}
.btn-br-q img { filter: brightness(0); }

/* TikTok — compact, blanc */
.btn-br-tt {
  background: var(--c-white);
  color: var(--c-black);
  width: 48%;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--c-black);
}
.btn-br-tt img { filter: brightness(0); }

/* Instagram — full-width, rouge */
.btn-br-ig {
  background: var(--c-red);
  color: var(--c-black);
  font-size: 1.15rem;
  padding: 1.1rem 1.5rem;
  border: 3px solid rgba(0,0,0,0.5);
  box-shadow: 5px 5px 0 rgba(0,0,0,0.5);
}
.btn-br-ig img { filter: brightness(0); }

/* Facebook — compact, noir */
.btn-br-fb {
  background: rgba(0,0,0,0.8);
  color: var(--c-white);
  width: 48%;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-br-fb img { filter: brightness(0) invert(1); }

/* YouTube — compact, rouge */
.btn-br-yt {
  background: var(--c-red);
  color: var(--c-white);
  width: 48%;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(0,0,0,0.5);
}
.btn-br-yt img { filter: brightness(0) invert(1); }

/* Bluesky — compact, blanc */
.btn-br-bsky {
  background: var(--c-white);
  color: var(--c-black);
  width: 48%;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--c-black);
}
.btn-br-bsky img { filter: brightness(0); }

/* Contact */
.contact-note {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(245,240,232,0.5);
  text-align: center;
  padding: 0.75rem 0;
  letter-spacing: 0.05em;
}

/* Bouton contact — blanc sobre */
.btn-br-contact {
  background: rgba(255,255,255,0.08);
  color: var(--c-white);
  font-size: 1rem;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255,255,255,0.25);
}

/* Sitemap */
.sitemap-nav { margin-top: 1.5rem; }
.sitemap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sitemap-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1.25rem;
  background: rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.12);
  text-decoration: none;
  transition: background 0.1s, border-color 0.1s;
  backdrop-filter: blur(6px);
}
.sitemap-link:hover { background: rgba(255,224,0,0.08); border-color: var(--c-yellow); }
.sitemap-link[aria-current="page"] { border-color: var(--c-yellow); background: rgba(255,224,0,0.05); }
.sitemap-name {
  font-family: 'Anton', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-white);
}
.sitemap-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: rgba(245,240,232,0.45);
  font-weight: 400;
}

/* Footer link */
.brutalist-footer-link {
  color: rgba(245,240,232,0.6);
  text-decoration: none;
  text-align: right;
  font-family: 'Inter', sans-serif;
  font-size: 0.52rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.1s;
}
.brutalist-footer-link:hover { color: var(--c-yellow); }

.links-brutalist-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 0.52rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245,240,232,0.3);
}
.links-brutalist-footer a { color: rgba(245,240,232,0.7); text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .brutalist-card { grid-template-columns: 1fr; gap: 0.5rem; }
  .brutalist-card h2 { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding-right: 0; padding-bottom: 0.4rem; }
  .brutalist-row { flex-direction: column; }
  .btn-br-tt, .btn-br-fb, .btn-br-yt, .btn-br-bsky { width: 100%; }
}

/* ===== MOBILE SMALL (320px plancher) + 4K ===== */
body { min-width: 320px; }

/* ===== PAGE HEADER — pages secondaires (links, contact, sitemap) ===== */
.page-header {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
  position: relative;
  z-index: 3;
}
.page-header + .links-brutalist { padding-top: 1rem; }

/* ===== COUNTDOWN ===== */
.countdown-section {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 2;
}
.countdown-label {
  font-family: 'Oxanium', 'Anton', sans-serif;
  font-size: clamp(0.65rem, 2vw, 0.85rem);
  letter-spacing: 0.2em;
  color: var(--c-yellow);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.countdown-grid {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--c-black);
  border: 2px solid var(--c-yellow);
  padding: 0.5rem 0.75rem;
  min-width: 64px;
}
.countdown-num {
  font-family: 'Oxanium', 'Anton', monospace;
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 800;
  color: var(--c-yellow);
  line-height: 1;
  letter-spacing: 0.05em;
}
.countdown-unit {
  font-family: 'Oxanium', 'Anton', sans-serif;
  font-size: clamp(0.5rem, 1.5vw, 0.65rem);
  letter-spacing: 0.15em;
  color: rgba(245,240,232,0.6);
  margin-top: 0.25rem;
  text-transform: uppercase;
}
.countdown-sep {
  font-family: 'Oxanium', monospace;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--c-yellow);
  line-height: 1;
  margin-bottom: 1.2rem;
  opacity: 0.7;
}

/* ===== SHORTCUTS BUTTON ===== */
.shortcuts-btn {
  position: fixed;
  bottom: max(1rem, calc(env(safe-area-inset-bottom) + 0.5rem));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 100;
  background: var(--c-black);
  color: var(--c-yellow);
  border: 2px solid var(--c-yellow);
  font-family: 'Oxanium', 'Anton', monospace;
  font-size: 1.1rem;
  font-weight: 800;
  width: 44px;
  height: 44px;
  min-height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.shortcuts-btn:hover,
.shortcuts-btn:focus-visible {
  background: var(--c-yellow);
  color: var(--c-black);
  outline: 3px solid var(--c-white);
  outline-offset: 2px;
}

/* ===== SHORTCUTS DIALOG ===== */
.shortcuts-dialog {
  background: var(--c-black);
  border: 3px solid var(--c-yellow);
  color: var(--c-white);
  padding: 0;
  max-width: min(480px, 90vw);
  width: 100%;
  transform: translateY(0);
  opacity: 1;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 150ms ease;
}
@starting-style {
  .shortcuts-dialog[open] {
    transform: translateY(16px);
    opacity: 0;
  }
}
.shortcuts-dialog,
.shortcuts-dialog * {
  cursor: default !important;
}
.shortcuts-dialog button { cursor: pointer !important; }
.shortcuts-dialog::backdrop {
  cursor: default !important;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(2px);
}
.shortcuts-inner {
  padding: 1.5rem;
}
.shortcuts-inner h2 {
  font-family: 'Oxanium', 'Anton', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: var(--c-yellow);
  margin: 0 0 1.25rem;
  text-transform: uppercase;
}
.shortcuts-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.shortcuts-table tr + tr td {
  border-top: 1px solid rgba(245,240,232,0.1);
}
.shortcuts-table td {
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
}
.shortcuts-table td:first-child {
  width: 100px;
  text-align: center;
}
kbd {
  display: inline-block;
  background: rgba(245,240,232,0.08);
  border: 1px solid rgba(245,240,232,0.3);
  border-bottom-width: 2px;
  padding: 0.15em 0.5em;
  font-family: 'Oxanium', monospace;
  font-size: 0.82rem;
  color: var(--c-yellow);
  white-space: nowrap;
}
.shortcuts-close {
  display: block;
  width: 100%;
  background: var(--c-yellow);
  color: var(--c-black);
  border: none;
  font-family: 'Oxanium', 'Anton', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  padding: 0.65rem 1rem;
  min-height: 44px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}
.shortcuts-close:hover,
.shortcuts-close:focus-visible {
  background: var(--c-white);
  outline: 3px solid var(--c-yellow);
  outline-offset: 2px;
}

/* ===== TYPOGRAPHY — text-wrap ===== */
h1, h2, h3 { text-wrap: balance; }
.title-sub, .title-band { text-wrap: balance; }
.brutalist-card p,
.game-message-sub,
.sitemap-desc { text-wrap: pretty; }

/* ===== PERFORMANCE — content-visibility ===== */
.brutalist-about {
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}
.brutalist-footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 80px;
}
.countdown-section {
  content-visibility: auto;
  contain-intrinsic-size: 0 200px;
}

/* ===== SCROLL REVEAL CARDS ===== */
.brutalist-about.js-scroll-reveal .brutalist-card {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 350ms ease var(--reveal-delay, 0ms),
    transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1) var(--reveal-delay, 0ms),
    background 0.15s;
}
.brutalist-about.js-scroll-reveal .brutalist-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== AMBIENT DIM — :has() ===== */
@media (hover: hover) {
  .brutalist-about:has(.brutalist-card.revealed:hover) .brutalist-card.revealed:not(:hover) {
    opacity: 0.4;
    transition: opacity 220ms ease, background 0.15s;
  }
}

/* ===== VIEW TRANSITIONS ===== */
@view-transition { navigation: auto; }
::view-transition-old(root) {
  animation: vt-out 160ms ease-in both;
}
::view-transition-new(root) {
  animation: vt-in 280ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* ===== FORCED COLORS — Windows High Contrast Mode ===== */
@media (forced-colors: active) {
  /* Réinitialiser les arrière-plans et bordures opaques */
  .brutalist-title,
  .brutalist-tag,
  .brutalist-nav,
  .brutalist-btn,
  .pause-btn,
  .links-brutalist-btn,
  .btn-br-tt,
  .btn-br-fb,
  .btn-br-yt,
  .btn-br-bsky {
    forced-color-adjust: none;
    border: 2px solid ButtonText;
    background: ButtonFace;
    color: ButtonText;
  }

  /* Skip link toujours visible */
  .skip-link:focus {
    forced-color-adjust: none;
    background: Highlight;
    color: HighlightText;
    outline: 3px solid ButtonText;
  }

  /* Cacher les décos purement visuelles */
  .bg-decos,
  #sunburstCanvas,
  .burst-bg,
  .cursor-chili {
    display: none;
  }

  /* Loading bar — reste lisible */
  .brutalist-bar-fill {
    forced-color-adjust: none;
    background: Highlight;
  }

  /* Focus visible explicite */
  :focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 2px;
  }
}
