/* Base: reset, type system, buttons, header, footer — shared by every public page.
   Cinematic monochrome, editorial Geist typography, hairlines instead of boxes, mono only as a technical accent. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--sc-canvas, var(--bg)); color-scheme: dark; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: transparent; color: var(--text); /* <html> paints --bg, so the grain layer can sit behind the content */
  font-family: var(--font-body); font-weight: 400; font-size: var(--fs-body); line-height: var(--lh-body);
  font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
/* analog grain: static, behind the content, never catches the pointer */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .045;
  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 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--sc-accent); color: var(--sc-accent-ink); }
:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: var(--radius); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 3000; padding: 10px 16px; background: var(--text); color: var(--accent-ink); font-size: var(--fs-small); border-radius: var(--radius); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }

/* ---------- type system ---------- */
.mono { font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 400; letter-spacing: var(--tr-mono); font-variant-numeric: tabular-nums; }
.h1, .title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h1); line-height: var(--lh-heading); letter-spacing: var(--tr-heading); color: var(--text); text-wrap: balance; }
.h1 .ln, .title .ln { display: block; }
.h1 em, .title em { font-weight: 300; color: var(--text-2); }           /* weight contrast, not italics */
.h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.025em; }
.h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.015em; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--text-2); max-width: var(--measure); text-wrap: pretty; }
.muted { color: var(--text-2); }
.small { font-size: var(--fs-small); }
/* section index: "02  Tarifs" — mono number + label, separated by a hairline */
.idx { display: flex; align-items: center; gap: 12px; font-size: var(--fs-small); color: var(--text-2); }
.idx .mono { color: var(--text); }
.idx::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--line-strong); order: 1; }
.idx > :last-child { order: 2; }

/* ---------- buttons: precise, quiet, with every state ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: transparent; color: var(--text); font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn .arrow { width: 14px; height: 14px; transition: transform var(--t-ui) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .4; pointer-events: none; }
.btn--primary, .btn--solid { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--primary:hover, .btn--solid:hover { background: #FFFFFF; border-color: #FFFFFF; }
.btn--ghost:hover, .btn:not(.btn--primary):not(.btn--solid):hover { border-color: var(--text); background: var(--tint); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .8125rem; }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn--accent { border-color: var(--line-strong); }
.btn--invert { background: var(--text); color: var(--bg); border-color: var(--text); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: border-color var(--t-fast), background-color var(--t-fast); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { border-color: var(--text); background: var(--tint); }
.icon-btn--sm { width: 36px; height: 36px; }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line-strong); transition: text-decoration-color var(--t-fast); }
.link:hover { text-decoration-color: currentColor; }

/* ---------- header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 900; transition: background-color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-stuck { background: rgba(11, 11, 11, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); max-width: none; padding: 0 var(--gutter); }
.brand img { width: 112px; height: auto; }
.nav { display: none; gap: 28px; margin-left: auto; }
.nav a { font-size: var(--fs-small); color: var(--text-2); transition: color var(--t-fast); }
.nav a:hover { color: var(--text); }
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sound-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 6px; font-size: .8125rem; color: var(--text-2); }
.sound-toggle:hover { color: var(--text); }
.sound-dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; transition: background-color var(--t-fast); }
.sound-toggle[aria-pressed="true"] { color: var(--text); }
.sound-toggle[aria-pressed="true"] .sound-dot { background: var(--signal); border-color: var(--signal); }
.sound-label { display: none; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-family: var(--font-mono); font-size: var(--fs-micro); }
.lang-switch button { min-width: 30px; min-height: 36px; padding: 0 4px; color: var(--text-3); border-radius: var(--radius); }
.lang-switch button[aria-pressed="true"] { color: var(--text); }
.header-cta { display: none; }
.menu-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
.menu-toggle span { display: block; width: 20px; height: 1.5px; background: var(--text); transition: transform var(--t-ui) var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu { display: grid; padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.menu a { padding: 14px 0; font-size: 1.375rem; font-weight: 500; letter-spacing: -.02em; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header-tools { margin-left: 16px; gap: 14px; }
  .sound-label { display: inline; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .menu { display: none !important; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--s6) 0; color: var(--text-3); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; max-width: var(--max); }
.footer-inner img { width: 100px; height: auto; opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn .arrow, .site-header { transition: none; }
}
.ln-in { display: inline-block; } /* revealed title line (js/motion.js) */
