/* reset.css — Reset minimaliste, commun à toutes les pages */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: url('/pictures/Beemium_Bee_Cursor.svg') 16 16, auto;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}

p {
  line-height: 1.7;
  color: var(--ink-dim);
}

a {
  color: inherit;
  text-decoration: none;
}

li {
  line-height: 1.7;
  color: var(--ink-dim);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  *{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===== Curseur dynamique (abeille), activé par js/cursor.js =====
   Sans JS, sans souris précise (tactile) ou avec réduction des animations
   demandée, le curseur SVG statique défini plus haut sur body reste actif. */
html.js-bee-cursor,
html.js-bee-cursor * {
  cursor: none !important;
}

#bee-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  aspect-ratio: 1890 / 1410;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}
#bee-cursor svg { width: 100%; height: 100%; display: block; overflow: visible; }

#bee-cursor .bee-wing-left,
#bee-cursor .bee-wing-right {
  transform-box: view-box;
  transform: rotate(0deg);
}
#bee-cursor .bee-wing-left  { transform-origin: 809px 851px; }
#bee-cursor .bee-wing-right { transform-origin: 1239px 851px; }

#bee-cursor.is-hover .bee-wing-left  { animation: bee-flap-left 0.16s ease-in-out infinite alternate; }
#bee-cursor.is-hover .bee-wing-right { animation: bee-flap-right 0.16s ease-in-out infinite alternate; }

@keyframes bee-flap-left  { from { transform: rotate(0deg); } to { transform: rotate(26deg); } }
@keyframes bee-flap-right { from { transform: rotate(0deg); } to { transform: rotate(-26deg); } }
