/* ==========================================================================
   As Les Plumes d'Or — Fondations (reset, tokens, typographie)
   Palette dérivée du logo du club : bleu sportif, or, rouge cible, noir/blanc.
   Contrastes vérifiés WCAG AA pour tout texte sur fond clair/blanc.
   ========================================================================== */

:root {
  /* Couleurs de marque */
  --color-primary: #1e5c94;
  --color-primary-dark: #123f68;
  --color-primary-light: #4a90c2;
  --color-gold: #966b08;
  --color-gold-light: #e8b923;
  --color-red: #c0392b;
  --color-black: #1a1a1a;
  --color-white: #ffffff;

  /* Neutres */
  --color-gray-50: #f7f8fa;
  --color-gray-100: #eef1f4;
  --color-gray-200: #dde2e8;
  --color-gray-400: #9aa5b1;
  --color-gray-600: #5b6675;
  --color-gray-800: #2b3340;

  /* Sémantique */
  --color-text: var(--color-gray-800);
  --color-text-muted: var(--color-gray-600);
  --color-bg: var(--color-white);
  --color-bg-alt: var(--color-gray-50);
  --color-success: #1a6b39;
  --color-success-bg: #e6f4ea;
  --color-error: #b3261e;
  --color-error-bg: #fbeae9;

  /* Typographie */
  --font-heading: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Rythme */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(20, 30, 45, 0.08);
  --shadow-md: 0 6px 20px rgba(20, 30, 45, 0.12);

  --container-max: 1180px;

  --transition-fast: 150ms ease;
  --transition-base: 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #eef1f4;
    --color-text-muted: #b7c0cc;
    --color-bg: #0f1720;
    --color-bg-alt: #161f2b;
    --color-gray-100: #1c2733;
    --color-gray-200: #26313f;
    --color-primary-light: #6fa8d6;
    /* Le gold assombri pour le contraste sur fond blanc (voir plus haut)
       redevient illisible sur fond sombre : on reprend la variante claire
       déjà définie, qui offre un contraste largement suffisant ici. */
    --color-gold: var(--color-gold-light);
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 1rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-4);
  color: var(--color-text);
}

h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 var(--space-4); }

a {
  color: var(--color-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

a:hover { color: var(--color-primary-dark); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { padding-left: 1.25rem; }

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-3) var(--space-4);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}
