/* =========================================================
   TiraMaison — Reset & base typographique
   ========================================================= */

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

* { margin: 0; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  min-height: 100vh;
  font-family: var(--tm-font);
  font-size: var(--tm-fs-body);
  line-height: 1.55;
  color: var(--tm-text);
  background: var(--tm-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  overflow-x: hidden;
}

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

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

button { background: none; border: 0; }

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

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

/* ---- Titres ---- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.15; }

.tm-display,
h1.tm-display,
h2.tm-display {
  font-family: var(--tm-font-display);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.92;
  text-transform: none;
}

h1 { font-size: var(--tm-fs-h1); }
h2 { font-size: var(--tm-fs-h2); }
h3 { font-size: var(--tm-fs-h3); letter-spacing: -0.015em; }
h4 { font-size: var(--tm-fs-h4); letter-spacing: -0.01em; }

p { text-wrap: pretty; }

strong, b { font-weight: 700; }

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

::selection {
  background: var(--tm-yellow);
  color: var(--tm-ink);
}

/* ---- Accessibilité ---- */
:focus-visible {
  outline: 3px solid var(--tm-ink);
  outline-offset: 2px;
  border-radius: var(--tm-r-xs);
}

.tm-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--tm-ink);
  color: var(--tm-white);
  border-radius: var(--tm-r-sm);
  font-weight: 700;
  transition: top var(--tm-t);
}
.tm-skip:focus { top: 16px; }

.tm-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }
