/* Site par Orz · Dylan · NoemaWorks · https://noemaworks.net
   tokens.css : polices auto-hebergees, palette, echelle typographique, reset. */

/* ---------------------------------------------------------------- polices */

/* Bricolage Grotesque (variable : opsz 12..96, wdth 75..100, wght 200..800) */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('../assets/fonts/bricolage-grotesque-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('../assets/fonts/bricolage-grotesque-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;
}

/* Instrument Sans (variable 400..700) */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/instrument-sans-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 Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/instrument-sans-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;
}

/* DM Mono 300 et 400 */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/dm-mono-300-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: 'DM Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/dm-mono-300-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: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/dm-mono-400-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: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/dm-mono-400-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;
}

/* ---------------------------------------------------------------- palette */

:root {
  /* fonds */
  --ink: #0E0A0A;            /* hero, tarifs, footer */
  --charcoal: #171112;       /* sections sombres secondaires */
  --charcoal-2: #2A2122;     /* filets sur sombre, fonds de champs */
  --rice: #F4EBDD;           /* papier de riz : sections claires */
  --rice-2: #EDE2CF;         /* papier de riz ombre : lignes, cellules */
  /* accents */
  --lacquer: #E2341B;        /* couleur EXACTE du logo : dragon, CTA, titres >= 24px */
  --lacquer-deep: #B4230F;   /* texte rouge courant sur papier */
  --lantern: #F2B33A;        /* prix, chiffres, filets sur fond sombre */
  --lantern-deep: #7A4F00;   /* prix et kickers sur papier de riz */
  --sakura: #F2B7C6;         /* une touche par ecran maximum */
  --sea: #1E5AA8;            /* station fruits de mer uniquement */
  --sea-deep: #1A4A8C;
  /* textes */
  --text-on-ink: #F4EBDD;
  --text-muted-on-ink: #C9BDAE;
  --text-on-rice: #0E0A0A;
  --text-muted-on-rice: #5E524B;
  /* lignes, etats */
  --line-on-ink: rgba(244, 235, 221, .14);
  --line-on-rice: rgba(14, 10, 10, .14);
  --focus-on-ink: #F2B33A;
  --focus-on-rice: #B4230F;
  --cta-bg: #B4230F;
  --cta-fg: #F4EBDD;
  --cta-hover-bg: #E2341B;
  --cta-active: #9E1E0D;
  --shadow: 0 6px 14px rgb(14 10 10 / .12);   /* l'UNIQUE ombre du site, jamais coloree */
  --radius: 4px;                              /* rayon unique partout, 12px pour les cadres de reels */
  --ease-out: cubic-bezier(.23, 1, .32, 1);

  /* familles */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-text: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, Menlo, monospace;

  /* echelle typographique (DESIGN.md section 3) */
  --fs-h1: clamp(2.6rem, 6.4vw, 6.5rem);
  --fs-figure: clamp(4.5rem, 13vw, 14rem);
  --fs-h2: clamp(2.5rem, 5vw, 5rem);
  --fs-h3: clamp(1.35rem, 1.9vw, 1.75rem);
  --fs-lead: clamp(1.125rem, 1.5vw, 1.375rem);
  --fs-body: clamp(1rem, 1.05vw, 1.125rem);
  --fs-kicker: .8125rem;
  --fs-price: clamp(2rem, 3.2vw, 3.25rem);

  /* grille et rythme (DESIGN.md section 4) */
  --container: 1400px;
  --gutter: 24px;
  --edge: 5vw;
  --section-pad: 128px;
  --nav-h: 68px;

  /* couches */
  --z-dragon: 20;
  --z-nav: 60;
  --z-curseur: 90;      /* le curseur maison passe au-dessus de tout */
  --z-menu: 55;   /* sous la nav : le bouton de fermeture reste atteignable */
  --z-lightbox: 80;
  --z-preloader: 90;

  color-scheme: dark;
}

/* ------------------------------------------------------------------ reset */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body,
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol, fieldset, legend {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

body {
  min-height: 100dvh;
  background: var(--ink);
  color: var(--text-on-ink);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* `clip` et non `hidden` : cela borne les debords lateraux sans creer de
     conteneur de defilement, donc sans casser position:sticky ni le pin
     de ScrollTrigger. */
  overflow-x: clip;
}

img, picture, video, svg, canvas {
  display: block;
  max-width: 100%;
}

img, video { height: auto; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; }

table {
  border-collapse: collapse;
  width: 100%;
}

th { font-weight: 600; text-align: left; }

hr {
  border: 0;
  border-top: 1px solid var(--line-on-rice);
  margin: 0;
}

/* -------------------------------------------------------------- typo base */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 92%;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 750;
  line-height: .94;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 750;
  line-height: .94;
  letter-spacing: -.03em;
}

/* Le mot qui porte le titre. Or lanterne sur l'encre, laque sur le papier de
   riz : une seule couleur d'accent par fond, jamais de halo. */
.accent { color: var(--lacquer-deep); }

.bg-ink .accent,
.bg-charcoal .accent { color: var(--lantern); }

h3 {
  font-size: var(--fs-h3);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.01em;
}

p { max-width: 62ch; }

.lead {
  font-family: var(--font-text);
  font-size: var(--fs-lead);
  line-height: 1.4;
  max-width: 34ch;
}

.kicker {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-kicker);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 18px;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.figure-xl {
  font-family: var(--font-display);
  font-weight: 750;
  font-stretch: 92%;
  font-size: var(--fs-figure);
  line-height: .85;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  display: block;
}

/* ---------------------------------------------------------------- a11y */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:where(a, button, [tabindex], input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--focus-on-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.on-rice :where(a, button, [tabindex], input, select, textarea, summary):focus-visible {
  outline-color: var(--focus-on-rice);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: calc(var(--z-preloader) + 1);
  transform: translateY(-160%);
  background: var(--cta-bg);
  color: var(--cta-fg);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: .875rem;
  text-decoration: none;
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus-visible { transform: translateY(0); }

::selection {
  background: var(--lacquer);
  color: var(--rice);
}
