/* ==========================================================================
   KLÉBER CONVEYOR BELT — Design system (base)
   Couleurs issues du logo officiel : rouge #ED1C24, noir #231F20
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2-variations"),
       url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2-variations"),
       url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  /* Marque */
  --red: #ED1C24;            /* rouge Kléber (logo) — accents graphiques */
  --red-ui: #D3141B;         /* rouge accessible (texte blanc AA) — boutons, liens */
  --red-ui-hover: #B01016;
  --ink: #231F20;            /* noir Kléber (logo) */

  /* Neutres */
  --black: #0F1012;
  --anthracite: #16181B;
  --anthracite-2: #1E2125;
  --anthracite-3: #2A2E33;
  --gray-900: #2B2F33;
  --gray-700: #4A5057;
  --gray-500: #6F767E;
  --gray-300: #C9CDD2;
  --gray-200: #E2E5E8;
  --gray-100: #F1F2F4;
  --gray-50: #F7F8F9;
  --white: #FFFFFF;

  --line-dark: rgba(255, 255, 255, .12);
  --line-light: #E2E5E8;

  /* Typographie */
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h4: 1.25rem;
  --fs-h3: clamp(1.35rem, 1.1rem + .9vw, 1.75rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
  --fs-h1: clamp(2.3rem, 1.4rem + 3.6vw, 4.25rem);

  /* Espacements */
  --container: 1240px;
  --gutter: clamp(1.25rem, .8rem + 2vw, 2.5rem);
  --section: clamp(4rem, 3rem + 4vw, 7.5rem);
  --radius: 2px;

  --header-h: 76px;
  --shadow: 0 18px 40px -22px rgba(15, 16, 18, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Reset léger ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--red-ui); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-ui-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 .6em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
h4 { font-size: var(--fs-h4); line-height: 1.25; font-stretch: 105%; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
strong { font-weight: 650; color: var(--ink); }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--white); padding: .7rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* Layout ------------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--gray { background: var(--gray-100); }
.section--light { background: var(--gray-50); }
.section--dark { background: var(--anthracite); color: #B9BEC4; }
.section--black { background: var(--black); color: #B9BEC4; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.section--black h1, .section--black h2, .section--black h3, .section--black h4 { color: var(--white); }
.section--dark strong, .section--black strong { color: var(--white); }

.grid { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.stack > * + * { margin-top: 1rem; }

/* Typo utilitaires --------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--red-ui);
  margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); flex: none; }
.section--dark .eyebrow, .section--black .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: #FF5A5F; }
.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--gray-700); }
.section--dark .lead, .section--black .lead { color: #D5D8DC; }
.muted { color: var(--gray-500); }
.title-bar { position: relative; padding-bottom: 1.1rem; margin-bottom: 1.6rem; }
.title-bar::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; background: var(--red); }
.text-center { text-align: center; }
.text-center .title-bar::after { left: 50%; transform: translateX(-50%); }
.highlight {
  border-left: 4px solid var(--red); padding: 1rem 0 1rem 1.4rem; margin: 1.8rem 0;
  font-family: var(--font-display); font-stretch: 105%; font-weight: 600;
  font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.4; color: var(--ink);
}
.section--dark .highlight, .section--black .highlight, .page-hero .highlight, .hero .highlight { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.section-head--row > div { max-width: 720px; }
