/* ═══════════════════════════════════════════════════════════
   MEUBILY — GLOBAL STYLES
   ═══════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-body);
  background: var(--color-white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

/* ── Focus visible (accessibilité) ── */
:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Selection ── */
::selection {
  background: var(--color-teal-pale);
  color: var(--color-navy);
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ── Sections ── */
.section {
  padding-block: var(--section-padding-y);
}

.section--white  { background: var(--color-white); }
.section--light  { background: var(--color-off-white); }
.section--navy   { background: var(--color-navy); }

/* ── Section headers ── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-4);
}

.section-label--light { color: var(--color-teal-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4.5vw, var(--text-5xl));
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-heading);
  margin-bottom: var(--space-5);
}

.section-title--light { color: var(--color-white); }

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 56ch;
  margin-inline: auto;
  line-height: 1.6;
}

.section-subtitle--light { color: rgba(255,255,255,0.65); }

.section-cta {
  text-align: center;
  margin-top: var(--space-12);
}

/* ── Scroll reveal base ── */
.reveal,
.reveal-right,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s var(--ease-out-quart),
    transform 0.7s var(--ease-out-quart);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal.is-visible,
.reveal-right.is-visible,
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translate(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .reveal-right,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}

/* ── Typography helpers ── */
strong { font-weight: 600; }
em { font-style: italic; }

/* ── Responsive spacing ── */
@media (max-width: 768px) {
  :root {
    --section-padding-y: var(--space-16);
  }
  .container {
    padding-inline: var(--space-5);
  }
  .section-header {
    margin-bottom: var(--space-10);
  }
}
