/* =========================================================
   Crinteck — Design tokens & socle mobile-native
   ========================================================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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 600;
  font-display: swap;
  src: url('../fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02D8-02D9, U+02DB, U+02DD, U+0237, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, 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: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Typography */
  --font-display: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Palette : Cobalt & Pierre chaude (sans vert acide générique) */
  --ink: #0d1526;
  --ink-2: #141e33;
  --ink-3: #1e293b;
  --paper: #f8f7f4;
  --paper-2: #f0eee9;
  --white: #ffffff;
  --muted: #515a6b;
  --muted-light: #646e82;
  --line: #e3e1db;
  --line-strong: #cfccc3;
  --line-dark: rgba(255, 255, 255, 0.11);
  --blue: #1d4ed8;
  --blue-bright: #3b82f6;
  --blue-dark: #1e3a8a;
  --blue-soft: #eaf0ff;
  --emerald: #10b981;
  --emerald-soft: #ecfdf5;
  --danger: #dc2626;

  /* Radii */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(13, 21, 38, 0.05), 0 4px 12px rgba(13, 21, 38, 0.04);
  --shadow-md: 0 4px 12px rgba(13, 21, 38, 0.06), 0 20px 44px rgba(13, 21, 38, 0.08);
  --shadow-lg: 0 28px 72px rgba(13, 21, 38, 0.18);

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;
  --section-y: clamp(64px, 8vw, 112px);

  /* Motion — courbes Emil Kowalski */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease: var(--ease-out);
  --dur-press: 120ms;
  --dur-fast: 160ms;
  --dur: 220ms;
  --dur-slow: 360ms;
}

/* =========================================================
   Reset & Mobile-Native Baseline
   ========================================================= */

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

* {
  margin: 0;
}

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

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

/* Empêche le zoom automatique sur iOS Safari lors du focus */
input,
textarea,
select {
  font-size: 16px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Supprime le délai de 300ms et la sélection accidentelle au long-press sur mobile */
button,
a,
[role="button"] {
  touch-action: manipulation;
}

button,
.btn,
.filter,
.nav-toggle,
.to-top,
.showcase__tab {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
  max-width: 68ch;
}

::selection {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 120ms !important;
    scroll-behavior: auto !important;
  }
}
