/* ============================================================
   B.LIFTED France — Reset & Base v3.0
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: var(--lh-relaxed);
  font-weight: 400;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll { overflow: hidden; }

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

ul, ol { list-style: none; }

input, textarea, select {
  font-family: var(--font-sans);
  font-size: var(--t-base);
  background: none;
  border: none;
  outline: none;
  color: inherit;
}

strong { font-weight: 600; }


/* ── TEXTURE GRAIN ──────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 8000;
  opacity: 0.28;
  animation: grain 8s steps(10) infinite;
  will-change: transform;
}

/* ── RIDEAU DE PAGE ─────────────────────────────────────── */
.page-curtain {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: var(--z-curtain);
  transform-origin: bottom;
  transform: scaleY(1);
  transition: transform 0.9s var(--ease-out);
  pointer-events: none;
}
.page-curtain.is-hidden {
  transform: scaleY(0);
  transform-origin: top;
}
.page-curtain.is-leaving {
  transform: scaleY(1);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease-sharp);
}

/* ── FOCUS VISIBLE ──────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── SCROLL BAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-warm); }
::-webkit-scrollbar-thumb {
  background: var(--border-warm);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── SÉLECTION ──────────────────────────────────────────── */
::selection {
  background: var(--rose-pale);
  color: var(--rose-deep);
}
