/* ============================================================
   Base — reset léger + typo globale + accessibilité
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  padding-top: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  font-weight: var(--fw-regular);
  color: var(--c-foreground);
  background: var(--c-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--t-base) var(--ease-out);
}
a:hover { color: var(--c-primary-dark); }

/* Headings ---------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--c-foreground);
  margin: 0 0 var(--s-4);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(var(--fs-4xl), 5vw, var(--fs-6xl)); }
h2 { font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl)); }
h3 { font-size: clamp(var(--fs-2xl), 3vw, var(--fs-4xl)); }
h4 { font-size: var(--fs-2xl); }
h5 { font-size: var(--fs-xl); }
h6 { font-size: var(--fs-lg); text-transform: uppercase; letter-spacing: 0.08em; }

p { margin: 0 0 var(--s-4); max-width: 70ch; }

/* Lead paragraph */
.lead {
  font-size: var(--fs-lg);
  color: var(--c-muted);
  line-height: var(--lh-relaxed);
}

/* Focus visible ------------------------------------------------ */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--c-primary-light);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Sélection */
::selection { background: var(--c-primary); color: #fff; }

/* Skip link --------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--c-primary-dark);
  color: #fff;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-md);
  z-index: var(--z-toast);
  font-weight: var(--fw-medium);
}
.skip-link:focus { left: var(--s-4); color: #fff; }

/* Container --------------------------------------------------- */
.tkm-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Section ----------------------------------------------------- */
.tkm-section { padding-block: var(--section-py); }
.tkm-section--surface { background: var(--c-surface); }
.tkm-section--gradient {
  background: var(--gradient-brand);
  color: #fff;
}
.tkm-section--gradient h1,
.tkm-section--gradient h2,
.tkm-section--gradient h3 { color: #fff; }

/* Section header --------------------------------------------- */
.tkm-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--s-7);
}
.tkm-section-header__eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-primary);
  margin-bottom: var(--s-3);
  display: inline-block;
}
.tkm-section-header h2 { margin-bottom: var(--s-4); }
.tkm-section-header p { margin-inline: auto; color: var(--c-muted); }
.tkm-section-header__divider {
  width: 80px;
  height: 4px;
  margin: var(--s-4) auto 0;
  background: var(--gradient-brand);
  border-radius: var(--r-full);
}
