/* ==========================================================================
   Tamnature — Base : reset + typography + utilities
   ========================================================================== */

/* --- Reset ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-encre);
  background-color: var(--c-lin);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Texture papier en overlay subtil sur toute la page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.15  0 0 0 0 0.1  0 0 0 0 0.05  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

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

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

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

a {
  color: var(--c-vert-fonce);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-soft);
}

a:hover {
  color: var(--c-cire);
}

ul,
ol {
  list-style: none;
}

/* --- Typography --------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  color: var(--c-vert-fonce);
  font-weight: 500;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
  max-width: var(--max-w-prose);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-weight: 600;
  color: var(--c-or-ancien);
  margin-bottom: var(--sp-3);
  display: inline-block;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: rgba(42, 36, 24, 0.78);
  line-height: 1.55;
}

em,
.italic-serif {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--c-vert-fonce);
}

/* --- Utilities ---------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  position: relative;
  z-index: 2;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  position: relative;
  z-index: 2;
}

.section-narrow {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.text-center { text-align: center; }
.mx-auto    { margin-inline: auto; }

.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 */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--c-vert-fonce);
  color: var(--c-lin);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  z-index: 100;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0.75rem; color: var(--c-lin); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--c-vert-fonce);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Selection */
::selection {
  background: var(--c-safran);
  color: var(--c-encre);
}

/* --- Self-hosted fonts (placeholders) ---------------------------------- */
/* Place les fichiers .woff2 dans /assets/fonts/ et décommente ci-dessous.
   En attendant, le système retombe sur Georgia / system-ui (cf. tokens.css).

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
*/
