/* Charte ouix commune (couleurs, typo, base, en-tête, pied de page).
   Copiée au build dans chaque site sous /ouix.css. La vitrine (src/style.css)
   a encore sa copie de ces jetons : à converger lors de sa migration. */
:root {
  --bg: #f5f5ef;
  --ink: #1d201a;
  --muted: #61685a;
  --line: #d9ddcd;
  --lime: #d6f55b;
  --olive: #6c8a24;
  --dark: #171a14;
  --on-dark: #eeefe5;
  --muted-dark: #9da393;
  --line-dark: #353a2f;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.75, 0.1, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .45 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--lime); color: var(--ink); }
.wrap { width: min(1360px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 200; background: var(--ink); color: var(--bg); padding: 14px 18px; border-radius: 999px; }
.skip-link:focus { top: 16px; }
.kicker { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* En-tête commun */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; }
.wordmark { font-size: 34px; font-weight: 700; letter-spacing: -0.075em; line-height: 1; }
.wordmark span { color: var(--olive); }
.brand-sub { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.header nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-link:hover, .nav-link[aria-current] { color: var(--olive); }
.nav-cta { display: inline-flex; align-items: center; gap: 12px; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); }
.btn-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 15px; transition: transform 0.35s var(--ease); }
.nav-cta:hover .btn-ico { transform: rotate(45deg); }

/* Pied de page commun */
.site-footer { background: var(--dark); color: var(--muted-dark); overflow: hidden; margin-top: clamp(96px, 12vw, 160px); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 26px 0; border-top: 1px solid var(--line-dark); font-size: 13px; }
.footer-links { display: flex; gap: 20px; margin-inline-start: auto; }
.footer-row a:hover { color: var(--lime); }
.footer-mark { margin: 0; padding-top: 0.06em; text-align: center; font-size: 44vw; font-weight: 700; line-height: 0.78; letter-spacing: -0.085em; color: var(--on-dark); user-select: none; }
.footer-mark span { color: var(--lime); }

@media (max-width: 640px) {
  .header-inner { height: 64px; }
  .wordmark { font-size: 29px; }
  .header nav { gap: 14px; font-size: 14px; }
  .nav-link { display: none; }
  .nav-cta { padding: 5px 5px 5px 14px; gap: 10px; }
  .footer-links { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
