/* Onhand — jetons de marque. FICHIER GÉNÉRÉ par tokens.build.mjs depuis tokens.json : ne pas éditer à la main. */

@font-face {
  font-family: "Alexandria";
  src: url("fonts/Alexandria-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2713-2714, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alexandria";
  src: url("fonts/Alexandria-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2713-2714, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Italic-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2713-2714, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/IBMPlexSansArabic-Regular-arabic.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/IBMPlexSansArabic-Medium-arabic.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/IBMPlexSansArabic-SemiBold-arabic.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/IBMPlexSansArabic-Bold-arabic.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Alexandria Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 106.5%;
  ascent-override: 96.8%;
  descent-override: 25.1%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "IBM Plex Sans Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 101.5%;
  ascent-override: 102.5%;
  descent-override: 27.5%;
  line-gap-override: 0%;
}

:root {
  --color-bg: #F6F1E7;
  --color-surface: #FFFFFF;
  --color-surface-2: #EDE6D8;
  --color-text: #1C1B18;
  --color-text-2: #5F5A50;
  --color-text-disabled: #8C857A;
  --color-border: #817A6E;
  --color-hairline: #D9D1C2;
  --color-accent: #0B6B63;
  --color-accent-hover: #085750;
  --color-accent-active: #063F3A;
  --color-on-accent: #FFFFFF;
  --color-accent-soft: #DDEEEB;
  --color-on-accent-soft: #0B6B63;
  --color-amber: #E9A23B;
  --color-on-amber: #1C1B18;
  --color-amber-deep: #A66A12;
  --color-star: #A66A12;
  --color-success: #2F6B45;
  --color-warning: #8A5A0E;
  --color-error: #B3261E;
  --color-on-error: #FFFFFF;
  --color-focus: #0B6B63;
  --color-selection: #DDEEEB;
  --color-shadow-rgb: 28 27 24;
  --shadow-sm: 0 1px 2px rgb(28 27 24 / 0.08);
  --shadow-md: 0 2px 6px rgb(28 27 24 / 0.06), 0 12px 32px -8px rgb(28 27 24 / 0.12);
  color-scheme: light;
  --font-heading: "Alexandria", "Alexandria Fallback", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "IBM Plex Sans Fallback", Arial, sans-serif;
  --font-heading-arabic: "Alexandria", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-body-arabic: "IBM Plex Sans Arabic", "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.375rem;
  --text-4xl: 3rem;
  --text-5xl: 3.75rem;
  --text-h1: clamp(2.375rem, 1.6rem + 3vw, 3.75rem);
  --text-h2: clamp(1.875rem, 1.4rem + 1.6vw, 2.375rem);
  --text-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --leading-tight: 1.1;
  --leading-heading: 1.2;
  --leading-snug: 1.35;
  --leading-body: 1.5;
  --leading-arabic: 1.7;
  --tracking-heading: -0.01em;
  --tracking-body: 0;
  --tracking-label: 0.02em;
  --tracking-arabic: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-mark: 22%;
  --border-hairline: 1px;
  --border-default: 1px;
  --border-strong: 2px;
  --layout-container: 68rem;
  --layout-measure: 65ch;
  --layout-gutter-mobile: 1rem;
  --layout-gutter-tablet: 1.5rem;
  --layout-gutter-desktop: 2rem;
  --layout-touch-target: 44px;
  --motion-duration-fast: 120ms;
  --motion-duration-base: 200ms;
  --motion-duration-slow: 320ms;
  --motion-easing: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #14171A;
    --color-surface: #1D2226;
    --color-surface-2: #24292E;
    --color-text: #F1ECE2;
    --color-text-2: #B4AC9F;
    --color-text-disabled: #737C85;
    --color-border: #737C85;
    --color-hairline: #2E353B;
    --color-accent: #4FC2B4;
    --color-accent-hover: #6FD3C6;
    --color-accent-active: #8FDFD4;
    --color-on-accent: #0E1413;
    --color-accent-soft: #15302C;
    --color-on-accent-soft: #4FC2B4;
    --color-amber: #E9A23B;
    --color-on-amber: #1C1B18;
    --color-amber-deep: #E9A23B;
    --color-star: #E9A23B;
    --color-success: #7CC894;
    --color-warning: #E9A23B;
    --color-error: #FF8A80;
    --color-on-error: #1C1B18;
    --color-focus: #4FC2B4;
    --color-selection: #15302C;
    --color-shadow-rgb: 0 0 0;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 2px 6px rgb(0 0 0 / 0.3), 0 12px 32px -8px rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --color-bg: #14171A;
  --color-surface: #1D2226;
  --color-surface-2: #24292E;
  --color-text: #F1ECE2;
  --color-text-2: #B4AC9F;
  --color-text-disabled: #737C85;
  --color-border: #737C85;
  --color-hairline: #2E353B;
  --color-accent: #4FC2B4;
  --color-accent-hover: #6FD3C6;
  --color-accent-active: #8FDFD4;
  --color-on-accent: #0E1413;
  --color-accent-soft: #15302C;
  --color-on-accent-soft: #4FC2B4;
  --color-amber: #E9A23B;
  --color-on-amber: #1C1B18;
  --color-amber-deep: #E9A23B;
  --color-star: #E9A23B;
  --color-success: #7CC894;
  --color-warning: #E9A23B;
  --color-error: #FF8A80;
  --color-on-error: #1C1B18;
  --color-focus: #4FC2B4;
  --color-selection: #15302C;
  --color-shadow-rgb: 0 0 0;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 2px 6px rgb(0 0 0 / 0.3), 0 12px 32px -8px rgb(0 0 0 / 0.5);
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-duration-fast: 0ms;
    --motion-duration-base: 0ms;
    --motion-duration-slow: 0ms;
  }
}

/* Base minimale : ce que tout document Onhand hérite. */
html { background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-size: 100%; line-height: var(--leading-body); -webkit-text-size-adjust: 100%; font-synthesis: none; }
:lang(ar) { font-family: var(--font-body-arabic); line-height: var(--leading-arabic); letter-spacing: var(--tracking-arabic); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--weight-semibold); line-height: var(--leading-heading); letter-spacing: var(--tracking-heading); }
h1:lang(ar), h2:lang(ar), h3:lang(ar), h4:lang(ar) { font-family: var(--font-heading-arabic); letter-spacing: 0; }
::selection { background: var(--color-selection); color: var(--color-text); }
:focus-visible { outline: var(--border-strong) solid var(--color-focus); outline-offset: 2px; }
