/*
  BRYA Studio — tokens de la marque.
  Les trois couleurs viennent des fichiers du logo (logo-brya/). Tout le reste en dérive.
*/
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-latin.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: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-latin-ext.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: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin.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: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin-ext.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: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-latin.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: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-latin-ext.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 {
  /* Marque */
  --navy: #141B34;
  --navy-deep: #0D1225;
  --navy-soft: #1C2645;
  --orange: #FF6A1F;
  --ivory: #FBF7F0;
  --paper: #F3EDE2;

  /* Rôles (thème clair par défaut ; [data-theme="dark"] les inverse) */
  --color-bg: var(--ivory);
  --color-text: var(--navy);
  --color-text-muted: #5B6279;      /* 5,7:1 sur ivoire */
  --color-accent: var(--orange);
  --color-accent-text: #C24A0C;     /* orange lisible sur ivoire, 4,6:1 */
  --color-line: rgba(20, 27, 52, .14);
  --color-line-strong: rgba(20, 27, 52, .32);
  --color-on-accent: var(--navy);   /* 5,9:1 sur orange */

  /* Typographies */
  --font-display: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Échelle fluide (390 → 1440 px) */
  --step--2: 0.75rem;
  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --step-2: clamp(1.625rem, 1.35rem + 1.15vw, 2.375rem);
  --step-3: clamp(2.25rem, 1.65rem + 2.6vw, 4.25rem);
  --step-4: clamp(2.75rem, 1.75rem + 4.4vw, 6.5rem);
  --step-5: clamp(3.4rem, 1.5rem + 8.4vw, 11.5rem);

  /* Espacements */
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  --space-xl: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --space-2xl: clamp(6rem, 3.5rem + 11vw, 13rem);

  /* Mise en page */
  --container: 92rem;
  --gutter: clamp(1.25rem, 0.6rem + 2.8vw, 3rem);
  --header-h: 5rem;
  --radius: 4px;

  /* Mouvement */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);
  --duration: 900ms;
}

[data-theme="dark"] {
  --color-bg: var(--navy);
  --color-text: var(--ivory);
  --color-text-muted: rgba(251, 247, 240, .64);
  --color-accent-text: var(--orange);
  --color-line: rgba(251, 247, 240, .16);
  --color-line-strong: rgba(251, 247, 240, .38);
}
