/* Reset léger, typographie, boutons, liens, focus */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-s);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .6s var(--ease-io), color .6s var(--ease-io);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em; line-height: 0.96; text-wrap: balance; font-optical-sizing: auto; }
h3 { font-size: var(--t-m); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
p { max-width: 58ch; text-wrap: pretty; }
strong { font-weight: 700; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; background: var(--ink); color: var(--bg); border-radius: var(--r-s); }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--r-s); }

/* Liens : soulignement qui se trace au survol */
.link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .35s var(--ease-out);
}
.link:hover { background-size: 100% 2px; }
.link--light { color: inherit; }

/* Boutons : pilule ivoire ; au survol le fond se vide, au clic le bouton s'enfonce */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 1.6rem;
  border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font: 600 1rem/1 var(--font); letter-spacing: .005em; text-decoration: none; cursor: pointer;
  transition: color .45s var(--ease-out), transform .15s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg);
  transform: translateY(101%); transition: transform .45s var(--ease-out);
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.96); }
/* Bouton posé sur le volet ivoire de l'offre : couleurs inversées */
.btn--inverse { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.btn--inverse::before { background: var(--accent); }
.btn--inverse:hover { color: var(--on-accent); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: var(--r-m); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .2s;
}
.icon-btn:hover { background: var(--line); }
.icon-btn svg { width: 22px; height: 22px; transition: transform .5s var(--ease-out); }
.theme-btn:active svg { transform: rotate(180deg); }
