/* ==========================================================================
   base.css — variables, reset et éléments typographiques partagés
   ========================================================================== */

:root {
  /* Couleurs */
  --navy: #0f1b33;
  --navy-soft: #1c2c4c;
  --ink: #1b2437;
  --muted: #5b6a84;
  --muted-light: #8b97ab;
  --line: #e4e2dd;
  --line-strong: #d3d0c8;
  --cream: #faf8f4;
  --white: #ffffff;
  --accent: #e2542c;
  --accent-dark: #c14321;
  --accent-soft: #fdeee8;
  --gold: #a97d24;
  --gold-soft: #fbf3df;
  --green: #1c7a5c;
  --green-soft: #e8f5ef;
  --danger: #b3261e;

  /* Formes */
  --radius: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Ombres */
  --shadow-xs: 0 1px 2px rgba(15, 27, 51, 0.06);
  --shadow-sm: 0 1px 2px rgba(15, 27, 51, 0.05), 0 6px 18px rgba(15, 27, 51, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(15, 27, 51, 0.22);
  --shadow-lg: 0 30px 70px -28px rgba(15, 27, 51, 0.35);

  /* Typographie */
  --font-head: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Rythme */
  --gutter: clamp(1rem, 4vw, 2rem);
  --max: 1120px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(226, 84, 44, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
