/* ==========================================================================
   Yanascope — jetons de la charte (source de vérité des couleurs, typo, espaces)
   Contrastes vérifiés (WCAG AA) : voir design/charte.html
   ========================================================================== */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/inter-latin-800.woff2') format('woff2'); }

:root {
  /* Couleurs de base */
  --ink:          #1E2326;   /* texte principal, fonds sombres */
  --ink-2:        #4A5257;   /* texte secondaire */
  --muted:        #5F676C;   /* légendes (4,9:1 sur --paper) */
  --line:         #DDD8CD;   /* filets, bordures */
  --paper:        #F7F5F0;   /* fond de page */
  --sand:         #ECE8DF;   /* sections alternées */
  --surface:      #FDFCF9;   /* cartes */

  /* Marque */
  --teal:         #276E78;   /* liens, focus, accent froid (5,4:1 sur --paper) */
  --teal-soft:    #DCEDEF;
  --teal-light:   #7CC3CC;   /* accent sur fond sombre */
  --coral:        #F06A4E;   /* accent chaud décoratif (jamais pour du petit texte sur clair) */
  --coral-strong: #C63C22;   /* boutons d'action, texte blanc 5,2:1 */
  --coral-soft:   #FCE3DC;

  /* États */
  --ok:           #23633E;
  --ok-soft:      #DDF0E4;
  --warn:         #8A4D00;
  --warn-soft:    #FBEBD3;
  --danger:       #B3261E;
  --danger-soft:  #F9DEDC;

  /* Typographie */
  --font:         'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-xs:        0.8125rem;  /* 13 px */
  --fs-sm:        0.9375rem;  /* 15 px */
  --fs-base:      1.0625rem;  /* 17 px */
  --fs-lg:        1.25rem;
  --fs-xl:        clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl:       clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-hero:      clamp(2.5rem, 1.6rem + 4vw, 4.5rem);

  /* Espaces, rayons, ombres */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem;
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --shadow:    0 1px 2px rgba(30, 35, 38, .06), 0 4px 16px rgba(30, 35, 38, .06);
  --shadow-lg: 0 12px 40px rgba(30, 35, 38, .14);
  --wrap:      1200px;
  --ease:      cubic-bezier(.2, .7, .2, 1);

  /* Visuels par défaut des catégories (événements collectés sans affiche) */
  --cat-musique:  linear-gradient(135deg, #F06A4E 0%, #8E3B8A 100%);
  --cat-sport:    linear-gradient(135deg, #276E78 0%, #3E9B6B 100%);
  --cat-culture:  linear-gradient(135deg, #3B4A9C 0%, #7CC3CC 100%);
  --cat-famille:  linear-gradient(135deg, #E9A23B 0%, #F06A4E 100%);
  --cat-nature:   linear-gradient(135deg, #2E7D4F 0%, #A7C957 100%);
  --cat-soiree:   linear-gradient(135deg, #1E2326 0%, #6A2C70 100%);
  --cat-marche:   linear-gradient(135deg, #C63C22 0%, #E9A23B 100%);
  --cat-atelier:  linear-gradient(135deg, #4A5257 0%, #276E78 100%);
}
