/* ============================================================
   Ty Web — design system partagé
   Chargé par index.html ET mentions-legales.html.
   Contient uniquement ce qui est strictement identique entre les
   pages : tokens de couleur, réinitialisation, typographie de
   base, wrapper, header, boutons, eyebrow, footer.
   Tout ce qui est spécifique à une page (hero, tarifs, mentions
   légales, menu mobile, animations au scroll...) reste dans le
   <style> de cette page.
   ============================================================ */

:root {
  --bg: #eef0ea;
  --bg-alt: #e3e7dd;
  --surface: #ffffff;
  --ink: #16242c;
  --ink-soft: #4b5a61;
  --ink-faint: #7c8a8f;
  --line: rgba(22, 36, 44, 0.12);
  --accent: #b25a3d;
  --accent-ink: #fff8f4;
  --tide: #2f6c7a;
  --shadow: rgba(22, 36, 44, 0.10);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101a20;
    --bg-alt: #16232b;
    --surface: #17242c;
    --ink: #edefe9;
    --ink-soft: #b7c2c2;
    --ink-faint: #7f8d8d;
    --line: rgba(237, 239, 233, 0.14);
    --accent: #dd7f57;
    --accent-ink: #1b1210;
    --tide: #74c1cd;
    --shadow: rgba(0, 0, 0, 0.4);
  }
}

:root[data-theme="dark"] {
  --bg: #101a20;
  --bg-alt: #16232b;
  --surface: #17242c;
  --ink: #edefe9;
  --ink-soft: #b7c2c2;
  --ink-faint: #7f8d8d;
  --line: rgba(237, 239, 233, 0.14);
  --accent: #dd7f57;
  --accent-ink: #1b1210;
  --tide: #74c1cd;
  --shadow: rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

img { max-width: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* line-height volontairement omis ici : il diffère légèrement
     entre les pages (1.55 vs 1.6) et reste défini dans le
     <style> propre à chaque page. */
}

h1, h2, h3, .wordmark {
  font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  text-wrap: balance;
  margin: 0;
}

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- header (structure commune) ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

/* ---------- boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-faint); }

/* ---------- eyebrow (label au-dessus des titres) ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tide);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--tide);
}

/* ---------- footer (structure commune) ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--ink-faint);
}
footer .wordmark { font-size: 1rem; }
footer a { text-decoration: underline; text-underline-offset: 2px; }
