/* ── Font ─ */
@font-face {
  font-family: 'Dolphins';
  src: url('/fonts/Dolphins.otf') format('opentype'), url('/fonts/Dolphins.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Variables ─ */
:root {
  --yellow: #FFB400;
  --yellow-hover: #E0A000;
  --black: #1A1A1A;
  --gray-dark: #5D5D5D;
  --gray-medium: #9D9D9D;
  --gray-light: #EBEBEB;
  --white: #FFFFFF;
  --bg: #F7F7F7;
  --card: #FFFFFF;
  --font-brand: 'Dolphins', cursive;
  --font-base: Inter, Arial, Helvetica, sans-serif;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-full: 999px;
  --transition: 0.2s ease;
}

/* ── Dark mode ─ */
body.dark {
  --black: #F0F0F0;
  --gray-dark: #B0B0B0;
  --gray-medium: #707070;
  --gray-light: #2E2E2E;
  --white: #1E1E1E;
  --bg: #121212;
  --card: #1E1E1E;
}

/* ── Reset ─ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='a' width='20' height='20' patternTransform='rotate(20)scale(16)' patternUnits='userSpaceOnUse'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cpath fill='none' stroke='%23ffe5a8' stroke-opacity='.18' stroke-width='.5' d='M-10-10A10 10 0 0 0-20 0a10 10 0 0 0 10 10A10 10 0 0 1 0 0a10 10 0 0 0-10-10zm20 0A10 10 0 0 0 0 0a10 10 0 0 1 10 10A10 10 0 0 1 20 0a10 10 0 0 0-10-10zm20 0A10 10 0 0 0 20 0a10 10 0 0 1 10 10A10 10 0 0 1 40 0a10 10 0 0 0-10-10zm-40 20a10 10 0 0 0-10 10 10 10 0 0 0 10 10A10 10 0 0 1 0 20a10 10 0 0 0-10-10zm20 0A10 10 0 0 0 0 20a10 10 0 0 1 10 10 10 10 0 0 1 10-10 10 10 0 0 0-10-10zm20 0a10 10 0 0 0-10 10 10 10 0 0 1 10 10 10 10 0 0 1 10-10 10 10 0 0 0-10-10z'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='800%25' height='800%25' fill='url(%23a)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: -1;
}

body.dark::before {
  opacity: 0.15; /* ← atténue le motif en dark mode */
}


body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: var(--bg);
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ── Utilities ─ */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}