/* Typographie Yenzõ - polices hébergées localement (PWA / hors ligne, précachées par public/sw.js).
   - Plus Jakarta Sans (OFL, variable 200-800) : textes et titres.
   - Inter (OFL, statique 400/600/700) : chiffres, montants, tableaux, champs numériques.
   Sous-ensembles latin (dont « õ », U+00F5) + latin-ext, chargés à la demande via unicode-range.
   Chargée par resources/views/partials/polices.blade.php (preload PJS 400/600 + Inter 600).
   Hors périmètre : tickets imprimables (monospace), impression des états/bulletins (Arial, voir
   @media print plus bas), e-mails. */

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"), url("plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
    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: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations"), url("plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
    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;
}

/* Inter : size-adjust 98 % pour qu'un montant ne paraisse pas plus grand que le texte voisin. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; size-adjust: 98%; src: url("inter-latin-400-normal.woff2") format("woff2"); 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: "Inter"; font-style: normal; font-weight: 600; font-display: swap; size-adjust: 98%; src: url("inter-latin-600-normal.woff2") format("woff2"); 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: "Inter"; font-style: normal; font-weight: 700; font-display: swap; size-adjust: 98%; src: url("inter-latin-700-normal.woff2") format("woff2"); 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: "Inter"; font-style: normal; font-weight: 400; font-display: swap; size-adjust: 98%; src: url("inter-latin-ext-400-normal.woff2") format("woff2"); 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: "Inter"; font-style: normal; font-weight: 600; font-display: swap; size-adjust: 98%; src: url("inter-latin-ext-600-normal.woff2") format("woff2"); 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: "Inter"; font-style: normal; font-weight: 700; font-display: swap; size-adjust: 98%; src: url("inter-latin-ext-700-normal.woff2") format("woff2"); 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; }

:root {
    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-num: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

/* Corps : 14 px sur ordinateur, 15 px sur mobile, interlignage 1,4. Les écrans qui fixent déjà
   leurs tailles en px les gardent ; seuls les textes qui héritent du corps sont concernés. */
body { font-family: var(--font-sans); font-size: 14px; line-height: 1.4; }
@media (max-width: 639px) {
    body { font-size: 15px; }
    /* Champs à 16 px minimum sur mobile (évite le zoom automatique d'iOS). Exceptions : le grand
       champ de montant de la Caisse (plus grand) et le champ quantité des lignes du panier. */
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not(.caisse-paiement-champ),
    select, textarea { font-size: 16px !important; }
    .caisse-pos-cart-line-qty input { font-size: 14px !important; }
}

/* Les contrôles de formulaire n'héritent pas de la police par défaut : on la leur transmet,
   sans toucher à leur taille (qui reste celle définie par chaque écran). */
button, input, select, textarea, optgroup { font-family: inherit; }

/* Chiffres et montants : Inter, chiffres tabulaires alignés. Les nombres dans une phrase
   (« 4 articles ») restent en Plus Jakarta Sans - seules ces cibles passent en Inter. */
.num, [data-num] {
    font-family: var(--font-num);
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
    text-align: right;
}
.numeric,
.report-kpi-value, .metric-value, .kpi-value, .chart-value, .chart-bar-value,
.entry-col-num, .recap-amount-input, .recap-amount-cell, .panel-amount, .gl-solde,
.table-totals-cell, .caisse-tresorerie-solde,
input[inputmode="decimal"], input[inputmode="numeric"], input[type="number"],
/* Caisse : montants, champ « Saisir un montant », rendu / reste, barre d'état de vente. */
.caisse-pos-tile-price, .caisse-pos-cart-line-total, .caisse-pos-cart-total strong, .caisse-pos-a-payer strong,
.caisse-pos-submit-montant, .caisse-pos-cart-line-qty input,
.caisse-depot-cart-line-total, .caisse-depot-total strong, .caisse-cmd-a-payer strong,
.caisse-paiement-champ, .caisse-paiement-propose, .caisse-paiement-resultat-ligne strong,
.caisse-succes-montant strong, .caisse-succes-ticket, .caisse-ticket-totals strong,
.caisse-barre-pastille.is-numero, .caisse-barre-pastille.is-date, .caisse-barre-pastille.is-heure,
.caisse-bande-encaisser > span:not(:has(span)), .caisse-bande-encaisser span span {
    font-family: var(--font-num);
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Hiérarchie : en-têtes de tableau 600, léger resserrement des grands titres. */
.data-table th { font-weight: 600; }
h1, .entity-header h1 { letter-spacing: -0.01em; }

/* Impression des états, bulletins et pièces (« PDF » via le navigateur) : police d'origine
   conservée, hors périmètre de la refonte typographique. Les tickets gardent leur monospace. */
@media print {
    body { font-family: Arial, Helvetica, sans-serif; }
    .num, [data-num], .numeric { font-family: inherit; }
}
