/* ============================================================
   02 — BASE
   Reset CSS + typographie de base + liens + formulaires
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--parchment);
}

/* === TYPOGRAPHIE === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

em, i { font-style: italic; }
strong, b { font-weight: 700; }

a {
  color: var(--basil);
  text-decoration: none;
  transition: color var(--t-base) 
var(--ease-out);
}
a:hover { color: var(--basil-deep); }

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

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4em; }

hr {
  border: none;
  height: 1px;
  background: var(--parchment-edge);
  margin: var(--sp-7) 0;
}

blockquote {
  border-left: 3px solid var(--tomato);
  padding-left: var(--sp-5);
  margin: var(--sp-5) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

code, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--parchment-soft);
  padding: 0.1em 0.4em;
  border-radius: var(--r-sm);
  border: 1px solid var(--parchment-edge);
}
pre {
  padding: var(--sp-4);
  overflow-x: auto;
  margin: var(--sp-4) 0;
}

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

:focus-visible {
  outline: 3px solid var(--lemon);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* === FORMULAIRES === */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="password"],
textarea,
select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--parchment);
  border: var(--border-ink-2);
  border-radius: var(--r-md);
  padding: 0.7rem 1rem;
  outline: none;
  transition: box-shadow var(--t-base) var(--ease-out);
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px var(--honey);
}
input::placeholder, textarea::placeholder {
  color: var(--ink-faint);
}
label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

/* === UTILITIES === */
.ms-container {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.ms-container--narrow { max-width: var(--max-w-narrow); }
.ms-container--text   { max-width: var(--max-w-text); }
.ms-container--full   { max-width: var(--max-w-full); }

.ms-tomato { color: var(--tomato); }
.ms-handwritten { font-family: var(--font-hand); }

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

/* === IMPRESSION — déplacé dans 10-responsive.css === */
