/* =============================================================================
   Base : reset, typographie, fond de patinoire, accessibilité
   ============================================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.45;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-stretch: var(--stretch-sous-titre);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  font-size: var(--text-xl);
  font-weight: 800;
  font-stretch: var(--stretch-titre);
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--text-lg);
  font-weight: 700;
}

h3 {
  font-size: var(--text-base);
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: var(--color-accent);
}

a:hover {
  color: var(--color-accent-strong);
}

img,
svg {
  display: block;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

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

.chiffres {
  font-stretch: var(--stretch-chiffre);
  font-variant-numeric: tabular-nums;
}

/* Icônes : sprite SVG, appelées par icone() */
.icon-sprite {
  display: none;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Logo : le flambeau de glace, dessiné en aplats (pas en traits comme les icônes) */
.logo-flambeau {
  flex: none;
  fill: currentColor;
}

/* Fond de patinoire : lignes bleues, ligne rouge, cercle de mise au jeu */
.patinoire {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--color-bg);
}

.patinoire span {
  position: absolute;
  display: block;
}

.patinoire__bleue {
  left: 0;
  right: 0;
  height: 14px;
  background: var(--patinoire-bleu);
}

.patinoire__bleue--haut {
  top: 30%;
}

.patinoire__bleue--bas {
  top: 88%;
}

.patinoire__rouge {
  left: 0;
  right: 0;
  top: 62%;
  height: 7px;
  background: var(--patinoire-rouge);
}

.patinoire__cercle {
  left: 50%;
  top: 62%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 4px solid var(--patinoire-rouge);
  transform: translate(-50%, -50%);
}

@media (min-width: 960px) {
  .patinoire__bleue {
    top: 0;
    bottom: 0;
    left: auto;
    right: auto;
    width: 18px;
    height: auto;
  }

  .patinoire__bleue--haut {
    top: 0;
    left: 32%;
  }

  .patinoire__bleue--bas {
    top: 0;
    left: 84%;
  }

  .patinoire__rouge {
    top: 0;
    bottom: 0;
    left: 60%;
    right: auto;
    width: 8px;
    height: auto;
  }

  .patinoire__cercle {
    top: 50%;
    left: 60%;
    width: 320px;
    height: 320px;
  }
}

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