/* ─────────────────────────────────────────────
   Les Pairs — site.css (mobile-first)
   Partagé par toutes les pages.
   Contient : reset, variables, base typo, nav,
   footer, skip link, focus-visible, reduced-motion.
   CSS spécifique aux pages reste inline dans chaque HTML.
   ───────────────────────────────────────────── */

/* ── Variables ── */
:root {
  --bleu: #0D1B2A;
  --bleu-mid: #1A2E42;
  --bleu-light: #243D52;
  --ivoire: #F5F0E8;
  --ivoire-dark: #EAE3D5;
  --or: #B8962E;
  --or-light: #D4AF50;
  /* Durci pour contraste AA sur ivoire (presbytie — Boucher FR) */
  --gris: #6A6A6A;
  --gris-light: #E0DBD0;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  background: var(--ivoire);
  color: var(--bleu);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }

/* ── Accessibilité ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 14px 20px;
  background: var(--or);
  color: var(--bleu);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  z-index: 1000;
  border-radius: 2px;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Typo fluide ── */
h1 { font-family: 'Playfair Display', serif; font-size: clamp(32px, 5vw, 62px); font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; }
h2 { font-family: 'Playfair Display', serif; font-size: clamp(26px, 4vw, 44px); font-weight: 600; line-height: 1.22; letter-spacing: -0.01em; }

/* ── NAV (mobile-first) ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13, 27, 42, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(184, 150, 46, 0.25);
  flex-wrap: wrap;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--ivoire);
  letter-spacing: 0.03em;
  text-decoration: none;
  line-height: 1;
  padding: 8px 0;
}
.logo span { color: var(--or); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.nav-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.72);
  text-decoration: none;
  transition: color 0.2s;
  padding: 12px 4px; /* touch target >= 44px */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--or); }
.nav-link.is-active { color: var(--or); }

nav a.cta-nav {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--or);
  text-decoration: none;
  border: 1px solid var(--or);
  padding: 12px 18px;
  border-radius: 2px;
  transition: all 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
nav a.cta-nav:hover,
nav a.cta-nav:focus-visible { background: var(--or); color: var(--bleu); }

/* ── FOOTER (mobile-first) ── */
footer {
  background: #080F17;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  align-items: center;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: rgba(245, 240, 232, 0.5);
}
.footer-logo span { color: var(--or); opacity: 0.75; }
footer p {
  font-size: 12px;
  color: rgba(245, 240, 232, 0.35);
  letter-spacing: 0.04em;
  line-height: 1.65;
}

/* ── Breakpoint desktop ── */
@media (min-width: 720px) {
  nav {
    padding: 18px 48px;
    flex-wrap: nowrap;
  }
  .logo { font-size: 22px; }
  .nav-links { gap: 24px; }
  .nav-link { font-size: 13px; padding: 12px 6px; }
  nav a.cta-nav { font-size: 13px; padding: 12px 24px; }

  footer {
    padding: 40px 48px;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }
}
