/* ==========================================================================
   base.css — Reset, variables, typographie de base
   Mercato Mondial — édition suisse (français)
   ========================================================================== */

:root {
  /* Palette : crème + noir */
  --cream: #f4efe6;
  --cream-soft: #faf6ee;
  --cream-deep: #e9e1d2;
  --ink: #15130f;
  --ink-soft: #2c2822;
  --ink-mute: #6a6357;
  --line: #d8cfbe;
  --line-soft: #e6ddcd;
  --accent: #b8362d;        /* rouge sobre, clin d'oeil au drapeau suisse */
  --accent-deep: #8c241d;
  --gold: #b08a3e;
  --white: #ffffff;

  --shadow-soft: 0 1px 2px rgba(21, 19, 15, .06), 0 8px 24px rgba(21, 19, 15, .06);
  --shadow-hover: 0 6px 14px rgba(21, 19, 15, .10), 0 20px 48px rgba(21, 19, 15, .12);

  --radius: 4px;
  --radius-lg: 10px;

  --maxw: 1180px;
  --readw: 720px;

  --ff-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --ff-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --t-fast: .18s ease;
  --t-med: .32s cubic-bezier(.22,.61,.36,1);

  --space-1: .4rem;
  --space-2: .8rem;
  --space-3: 1.2rem;
  --space-4: 1.8rem;
  --space-5: 2.6rem;
  --space-6: 4rem;
  --space-7: 6rem;
}

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

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: 1.02rem;
  line-height: 1.7;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--ff-serif);
  color: var(--ink);
  line-height: 1.18;
  font-weight: 600;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.15rem; }

a {
  color: var(--accent-deep);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--accent); }

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

ul, ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
li { margin-bottom: .4rem; }

strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

blockquote {
  margin: 1.8rem 0;
  padding: .2rem 0 .2rem 1.6rem;
  border-left: 3px solid var(--accent);
  font-family: var(--ff-serif);
  font-size: 1.32rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink-soft);
}

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: var(--space-5) 0;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: .7rem 1.1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

.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;
}
