/* Couleurs, typographie et réglages de base partagés par toutes les pages. */

:root {
  --color-red: #9e2a1c;
  --color-red-dark: #6f1b11;
  --color-brown-dark: #2b1e16;
  --color-text: #3a2a1f;
  --color-text-soft: #4e3b2e;
  --color-text-muted: #6b5444;
  --color-page: #fbf5ec;
  --color-card: #fffdf8;
  --color-sand: #f6e7d2;
  --color-sand-light: #fcebcf;
  --color-rose-light: #fbe3da;
  --color-border: #eadbc6;
  --color-border-strong: #d9c3a6;
  --color-gold: #ffd9a0;
  --color-amber: #a35a0b;
  --color-amber-dark: #8a4a08;
  --color-focus: #d9822b;

  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-title: "Lora", Georgia, "Times New Roman", serif;

  --radius-small: 10px;
  --radius-medium: 14px;
  --radius-large: 20px;
  --shadow-soft: 0 10px 24px rgba(90, 50, 20, 0.14);
  --shadow-photo: 0 16px 40px rgba(90, 50, 20, 0.22);
  --touch-target: 56px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-brown-dark);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: 1.6rem;
}

p {
  margin: 0;
}

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

a {
  color: var(--color-red);
}

a:hover {
  color: var(--color-red-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--color-card);
  padding: 12px 20px;
  border-radius: var(--radius-small);
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}
