/* Inoubliable — base commune à toutes les pages */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--spark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.on-night :focus-visible { outline-color: var(--spark); }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(36px, 8vw, 64px); }
h2 { font-size: clamp(28px, 5.4vw, 44px); }
h3 { font-size: clamp(21px, 3.6vw, 26px); }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: var(--stroke) solid var(--accent);
  border-radius: var(--radius-wobble);
  background: var(--accent); color: var(--on-accent);
  font: 700 17px/1 var(--font);
  text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out), background .12s;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in oklab, var(--navy-500) 14%, transparent); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-veil); }
.on-night .btn { background: var(--spark); color: var(--navy-500); border-color: var(--spark); box-shadow: 0 6px 0 rgb(0 0 0 / .25); }
.on-night .btn:hover { background: var(--white); border-color: var(--white); }
.on-night .btn-ghost { background: transparent; color: var(--spark); }

/* Barre du haut */
.topbar-note {
  background: var(--spark); color: var(--navy-500);
  font-size: 14px; font-weight: 700; text-align: center;
  padding: 8px 16px;
}
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 2px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 16px; }
.site-nav a:not(.btn) { text-decoration: none; }
.site-nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--spark); }
.site-nav .btn { min-height: 44px; padding: 0 18px; font-size: 16px; }
@media (max-width: 760px) { .site-nav .nav-link { display: none; } }

/* Pied de page */
.site-footer {
  background: var(--night); color: var(--on-night);
  margin-top: 96px; padding: 56px 0 40px;
}
.site-footer .wrap { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer img { height: 96px; width: auto; }
.site-footer h2 { font-size: 20px; color: var(--spark); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--on-night); }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--spark); }
.site-footer .fine { color: var(--on-night-muted); font-size: 14px; }

/* Pages de texte (légal, FAQ) */
.page-head { padding: 56px 0 24px; }
.page-head p { color: var(--muted); font-size: 16px; }
.prose { font-size: 17px; }
.prose h2 { font-size: clamp(24px, 4vw, 30px); margin-top: 1.8em; }
.prose h3 { font-family: var(--font); font-weight: 800; font-size: 19px; margin: 1.6em 0 .4em; line-height: 1.3; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--line); vertical-align: top; }
.prose th { font-weight: 800; }
.prose .table-scroll { overflow-x: auto; }
.prose blockquote {
  margin: 0 0 1.2em; padding: 16px 20px;
  background: var(--spark-soft);
  border: var(--stroke) solid var(--navy-500);
  border-radius: var(--radius-wobble);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.toc {
  background: var(--surface); border: var(--stroke) solid var(--navy-500);
  border-radius: var(--radius-wobble-2); padding: 18px 22px; margin: 0 0 32px;
}
.toc ul { margin: 0; padding-left: 1.2em; }

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