/* ==========================================================================
   Cléjoué — typographie (Bootstrap 5.3)
   Titres : Sora (variable 100–800)   ·   Texte et prix : Manrope (variable 200–800)
   Les deux polices sont sous licence SIL Open Font License 1.1 (usage commercial OK).
   Polices AUTO-HÉBERGÉES : aucune requête vers Google (RGPD).
   Arborescence attendue :  assets/styles/clejoue-typo.css
                            assets/fonts/*.woff2
   À charger APRÈS bootstrap.min.css et clejoue-theme.css.
   ========================================================================== */

/* ---------- @font-face (sous-ensembles latin + latin étendu) ---------- */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/sora-latin-wght-normal-owdio4Q.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/sora-latin-ext-wght-normal-edQZR3t.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal-aA_waSK.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext-wght-normal-PPaTnwi.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Jetons ---------- */
:root {
  --cj-font-heading: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --cj-font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Échelle fluide (mobile → desktop), ratio ≈ 1.25 */
  --cj-fs-display: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);   /* 36 → 56 px : accroche d'accueil */
  --cj-fs-h1: clamp(1.875rem, 1.5rem + 1.6vw, 2.5rem);        /* 30 → 40 px */
  --cj-fs-h2: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);        /* 24 → 30 px */
  --cj-fs-h3: 1.375rem;                                        /* 22 px */
  --cj-fs-h4: 1.125rem;                                        /* 18 px */
  --cj-fs-body: 1rem;                                          /* 16 px */
  --cj-fs-small: 0.875rem;                                     /* 14 px : métadonnées */
  --cj-fs-xs: 0.75rem;                                         /* 12 px : badges, mentions */
  --cj-fs-price: 1.5rem;                                       /* 24 px : prix dans une carte */
  --cj-fs-price-lg: 2.25rem;                                   /* 36 px : meilleur prix sur une fiche */

  /* Variables Bootstrap */
  --bs-body-font-family: var(--cj-font-body);
  --bs-body-font-size: var(--cj-fs-body);
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.6;
}

/* ---------- Titres (Bootstrap fige la police des titres à la compilation) ---------- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--cj-font-heading);
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}
.display-cj   { font-family: var(--cj-font-heading); font-size: var(--cj-fs-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
h1, .h1       { font-size: var(--cj-fs-h1); font-weight: 700; }
h2, .h2       { font-size: var(--cj-fs-h2); font-weight: 700; }
h3, .h3       { font-size: var(--cj-fs-h3); font-weight: 600; }
h4, .h4       { font-size: var(--cj-fs-h4); font-weight: 600; letter-spacing: -0.01em; }
h5, .h5, h6, .h6 { font-size: var(--cj-fs-body); font-weight: 600; letter-spacing: 0; }

/* ---------- Texte ---------- */
p, li { text-wrap: pretty; }
.lead  { font-size: 1.125rem; font-weight: 400; line-height: 1.55; color: var(--bs-secondary-color); }
small, .small { font-size: var(--cj-fs-small); }
.text-meta { font-size: var(--cj-fs-small); color: var(--bs-secondary-color); }
.text-legal { font-size: var(--cj-fs-xs); color: var(--bs-secondary-color); line-height: 1.5; }
strong, b { font-weight: 600; }

/* Boutons et badges : Manrope semi-gras, pas de majuscules forcées */
.btn   { font-family: var(--cj-font-body); font-weight: 600; letter-spacing: 0; }
.badge { font-family: var(--cj-font-body); font-size: var(--cj-fs-xs); font-weight: 600; letter-spacing: .01em; }

/* ---------- Prix : Manrope extra-gras, chiffres tabulaires (colonnes alignées) ---------- */
.cj-price {
  font-family: var(--cj-font-body);
  font-size: var(--cj-fs-price);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.cj-price--lg  { font-size: var(--cj-fs-price-lg); }
.cj-price--old { font-family: var(--cj-font-body); font-size: var(--cj-fs-small); font-weight: 400; color: var(--bs-secondary-color); text-decoration: line-through; }
table .cj-price, .cj-num { font-variant-numeric: tabular-nums; }
