/* ==========================================================================
   Festival Toi & Moi — Design tokens (v1.0)
   Source unique des couleurs, typos, espacements et formes du site.
   Modifier une valeur ici = la modifier partout.
   ========================================================================== */

:root {
  /* ---------- Couleurs : palette brute ---------- */
  --tm-ink:          #232120;  /* titres, texte principal */
  --tm-ink-soft:     #45403D;  /* texte secondaire */
  --tm-ink-muted:    #7A736F;  /* légendes, icônes */
  --tm-ink-faint:    #C9C3BF;  /* bordures marquées, désactivé */
  --tm-line:         #EFEBE8;  /* filets, bordures légères */

  --tm-ivory:        #FFFDFB;  /* fond de page */
  --tm-white:        #FFFFFF;  /* cartes */
  --tm-blush-wash:   #FFF5F5;  /* fonds de section */
  --tm-blush-soft:   #FDF6F5;
  --tm-blush-light:  #F6D5D3;  /* survols, fonds d'étiquette */
  --tm-blush:        #C98E8E;  /* accent, éléments actifs */
  --tm-blush-deep:   #8F5C5E;  /* liens, bouton principal (contraste AA sur ivoire) */

  --tm-terracotta:      #B58369;  /* 2e accent : temps forts du Programme */
  --tm-terracotta-deep: #9E5B3C;

  --tm-success:      #6F8F72;
  --tm-error:        #B5524F;

  /* ---------- Couleurs : rôles (à utiliser en priorité) ---------- */
  --tm-bg:           var(--tm-ivory);
  --tm-bg-wash:      var(--tm-blush-wash);
  --tm-bg-card:      var(--tm-white);
  --tm-bg-inverse:   var(--tm-ink);
  --tm-text:         var(--tm-ink);
  --tm-text-2:       var(--tm-ink-soft);
  --tm-text-3:       var(--tm-ink-muted);
  --tm-text-inverse: var(--tm-ivory);
  --tm-accent:       var(--tm-blush);
  --tm-link:         var(--tm-blush-deep);
  --tm-border:       var(--tm-line);
  --tm-border-strong:var(--tm-ink-faint);

  /* ---------- Typographie ---------- */
  --tm-font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --tm-font-text:    "Nunito", "Helvetica Neue", Arial, sans-serif;

  /* Échelle fluide : min (mobile 360px) → max (bureau 1280px) */
  --tm-fs-display: clamp(48px, 32.64px + 4.27vw, 80px);       /* 48 → 80 */
  --tm-fs-h1:      clamp(38px, 31.36px + 1.83vw, 56px); /* 38 → 56 */
  --tm-fs-h2:      clamp(30px, 26.08px + 1.09vw, 40px); /* 30 → 40 */
  --tm-fs-h3:      clamp(20px, 19.2px + 0.22vw, 22px); /* 20 → 22 */
  --tm-fs-h4:      18px;                                   /* 18 */
  --tm-fs-lead:    clamp(20px, 18.4px + 0.43vw, 24px);  /* 20 → 24 */
  --tm-fs-body:    17px;                                  /* 17 */
  --tm-fs-small:   14px;                                   /* 14 */
  --tm-fs-eyebrow: 12px;                                    /* 12 */

  --tm-lh-display: 1.05;
  --tm-lh-heading: 1.15;
  --tm-lh-snug:    1.35;
  --tm-lh-body:    1.65;

  --tm-fw-regular: 400;
  --tm-fw-medium:  500;   /* Cormorant uniquement */
  --tm-fw-semibold:600;
  --tm-fw-bold:    700;

  --tm-tracking-caps: 0.2em;
  --tm-tracking-tight: -0.01em;

  /* ---------- Espacements (base 4) ---------- */
  --tm-space-1: 4px;
  --tm-space-2: 8px;
  --tm-space-3: 12px;
  --tm-space-4: 16px;
  --tm-space-5: 24px;
  --tm-space-6: 32px;
  --tm-space-7: 48px;
  --tm-space-8: 72px;
  --tm-space-9: 112px;
  --tm-section-y: clamp(var(--tm-space-7), 6vw, var(--tm-space-9));

  /* ---------- Formes ---------- */
  --tm-radius-sm:   6px;
  --tm-radius-md:   12px;
  --tm-radius-lg:   20px;
  --tm-radius-pill: 999px;
  --tm-shadow-soft: 0 4px 18px -6px rgba(35, 33, 32, .14);
  --tm-shadow-lift: 0 12px 32px -12px rgba(35, 33, 32, .24);

  /* ---------- Mise en page ---------- */
  --tm-container:      1140px;
  --tm-container-wide: 1380px;
  --tm-container-text: 680px;
  --tm-gutter:         clamp(16px, 4vw, 32px);

  /* ---------- Mouvement ---------- */
  --tm-ease: cubic-bezier(.3, .7, .3, 1);
  --tm-dur:  200ms;
}

/* --------------------------------------------------------------------------
   Pont Elementor : les couleurs et typos "système" du kit global
   suivent les tokens. Tout widget réglé sur une valeur globale en hérite.
   (Le sélecteur couvre n'importe quel id de kit.)
   -------------------------------------------------------------------------- */
[class*="elementor-kit-"] {
  --e-global-color-primary:   var(--tm-ink);
  --e-global-color-secondary: var(--tm-ink-soft);
  --e-global-color-text:      var(--tm-ink-soft);
  --e-global-color-accent:    var(--tm-blush-deep);

  --e-global-typography-primary-font-family:   "Cormorant Garamond";
  --e-global-typography-primary-font-weight:   400;
  --e-global-typography-secondary-font-family: "Nunito";
  --e-global-typography-secondary-font-weight: 600;
  --e-global-typography-text-font-family:      "Nunito";
  --e-global-typography-text-font-weight:      400;
  --e-global-typography-accent-font-family:    "Nunito";
  --e-global-typography-accent-font-weight:    600;
}
