/* ═══════════════════════════════════════════════════════════════
   RugbyLac — design system
   Couleurs issues du logo · typographie Barlow / Barlow Condensed
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* — couleurs du logo — */
  --rl-gold:        #C19A47;   /* or du logo : accents, actions */
  --rl-gold-strong: #8C6A28;   /* or lisible sur fond clair (texte) */
  --rl-gold-soft:   #E9D9B4;
  --rl-teal:        #4A90A4;   /* bleu lac du logo : liens, repères */
  --rl-teal-strong: #2F6F82;   /* bleu lisible sur fond clair */
  --rl-teal-soft:   #D6E8ED;
  --rl-lake:        #0F3A4A;   /* bleu profond : textes et titres sur fond clair */
  --rl-lake-2:      #164B5E;
  --rl-sea:         #1A6F76;   /* bleu-vert du logo : fonds forts */
  --rl-sea-2:       #1F8087;   /* bleu-vert clair (survol, variantes) */
  --rl-sea-deep:    #145B61;   /* bleu-vert profond (bas des dégradés) */
  --rl-sun:         #F4C94E;   /* jaune du ballon : accents sur bleu-vert */
  --rl-sun-light:   #F7DD8F;   /* jaune clair : petits textes sur bleu-vert */
  --rl-on-sea:      #FFFFFF;   /* texte principal sur bleu-vert */
  --rl-on-sea-2:    rgba(255,255,255,.86); /* texte secondaire sur bleu-vert */
  --rl-sand:        #F6F4EE;   /* fond du logo : fonds clairs */
  --rl-sand-2:      #ECE8DC;
  --rl-paper:       #FFFFFF;
  --rl-ink:         #1B2B31;   /* texte principal */
  --rl-ink-2:       #4E5E63;   /* texte secondaire */
  --rl-ink-3:       #7D8A8D;   /* mentions */
  --rl-line:        rgba(15, 58, 74, .10);
  --rl-line-strong: rgba(15, 58, 74, .18);
  --rl-alert:       #C25E1F;
  --rl-alert-soft:  #FBEBDD;

  /* — typographie — */
  --rl-font-display: 'Barlow Condensed', 'Arial Narrow', 'Segoe UI', sans-serif;
  --rl-font-body:    'Barlow', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  /* échelle (rapport ≈ 1,25), fluide entre mobile et grand écran */
  --rl-fs-xs:  clamp(.74rem, .70rem + .20vw, .84rem);
  --rl-fs-sm:  clamp(.86rem, .80rem + .28vw, 1rem);
  --rl-fs-md:  clamp(.98rem, .90rem + .38vw, 1.18rem);
  --rl-fs-lg:  clamp(1.15rem, 1.02rem + .62vw, 1.5rem);
  --rl-fs-xl:  clamp(1.5rem, 1.2rem + 1.4vw, 2.4rem);
  --rl-fs-2xl: clamp(2.1rem, 1.5rem + 3vw, 4rem);
  --rl-fs-3xl: clamp(2.8rem, 1.8rem + 5.5vw, 7rem);

  /* — formes — */
  --rl-r-lg: 16px;   /* conteneurs */
  --rl-r-md: 10px;   /* cartes */
  --rl-r-sm: 6px;    /* éléments internes */
  --rl-r-pill: 999px;
  --rl-shadow-1: 0 1px 2px rgba(15,58,74,.06), 0 2px 8px rgba(15,58,74,.05);
  --rl-shadow-2: 0 2px 4px rgba(15,58,74,.06), 0 12px 32px rgba(15,58,74,.12);
  --rl-shadow-3: 0 24px 64px rgba(6,30,40,.35);

  /* — mouvement — */
  --rl-ease: cubic-bezier(.65, 0, .25, 1);
  --rl-ease-out: cubic-bezier(.2, .8, .2, 1);
  --rl-dur: .72s;
}

/* — boutons — */
.rl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 var(--rl-fs-sm)/1 var(--rl-font-body); letter-spacing: .01em;
  padding: .9em 1.4em; border-radius: var(--rl-r-pill);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.rl-btn--primary { background: var(--rl-gold); color: var(--rl-lake); }
.rl-btn--primary:hover { background: #D2AC5A; }
.rl-btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.rl-btn--ghost:hover { background: rgba(255,255,255,.08); }
.rl-btn:active { transform: translateY(1px); }

/* — focus visible commun — */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--rl-gold); outline-offset: 3px; border-radius: 4px;
}

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