/* ============================================
   2MFBY — Base Styles — Dark Luxury Edition
   Reset, Typography, Utilities
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-body-size);
    line-height: var(--text-body-lh);
    color: var(--color-neutral-200);
    background-color: var(--color-page-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-neutral-50);
    font-weight: 700;
}

h1 {
    font-family: var(--font-display);
    font-size: var(--text-h1-size);
    font-weight: var(--text-h1-weight);
    line-height: var(--text-h1-lh);
}

h2 {
    font-family: var(--font-display);
    font-size: var(--text-h2-size);
    font-weight: var(--text-h2-weight);
    line-height: var(--text-h2-lh);
}

h3 {
    font-family: var(--font-body);
    font-size: var(--text-h3-size);
    font-weight: var(--text-h3-weight);
    line-height: var(--text-h3-lh);
}

h4 {
    font-family: var(--font-body);
    font-size: var(--text-h4-size);
    font-weight: var(--text-h4-weight);
    line-height: var(--text-h4-lh);
}

p {
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-brand-400);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--color-brand-500);
}

strong {
    font-weight: 600;
    color: var(--color-neutral-50);
}

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

ul,
ol {
    list-style: none;
}

/* ── Selection ── */
::selection {
    background: var(--color-brand-100);
    color: var(--color-neutral-50);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--color-neutral-900);
}

::-webkit-scrollbar-thumb {
    background: var(--color-neutral-700);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-brand-500);
}

/* ── Focus Visible ── */
:focus-visible {
    outline: 2px solid var(--color-brand-500);
    outline-offset: 2px;
}

/* ── Skip Link ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    padding: var(--space-3) var(--space-5);
    background: var(--color-surface-0);
    color: var(--color-neutral-50);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 10000;
    font-weight: 600;
    transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
    top: var(--space-4);
}

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

.section {
    padding-block: var(--space-16);
}

.section--compact {
    padding-block: var(--space-10);
}

/* Dark section — légèrement plus sombre qu'une section normale */
.section--dark {
    background-color: var(--color-neutral-950);
    color: var(--color-neutral-200);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--color-neutral-50);
}

/* Cream devient "surface légèrement relevée" en mode dark */
.section--cream {
    background-color: var(--color-surface-0);
}

/* ── Text Utilities ── */
.text-center {
    text-align: center;
}

.text-brand {
    color: var(--color-brand-500);
}

.text-muted {
    color: var(--color-neutral-500);
}

.text-small {
    font-size: var(--text-body-sm-size);
    line-height: var(--text-body-sm-lh);
}

.text-large {
    font-size: var(--text-body-lg-size);
    line-height: var(--text-body-lg-lh);
}

.label {
    font-size: var(--text-label-size);
    font-weight: var(--text-label-weight);
    letter-spacing: var(--text-label-ls);
    text-transform: uppercase;
    color: var(--color-brand-500);
}

.display-text {
    font-family: var(--font-display);
    font-size: var(--text-display-size);
    font-weight: var(--text-display-weight);
    line-height: var(--text-display-lh);
    color: var(--color-neutral-50);
}

.price-text {
    font-family: var(--font-body);
    font-size: var(--text-price-size);
    font-weight: var(--text-price-weight);
    line-height: var(--text-price-lh);
    color: var(--color-brand-500);
}

/* ── Divider ── */
.divider {
    border: none;
    border-top: 1px solid var(--color-neutral-800);
    margin-block: var(--space-8);
}

/* ── Accessibility ── */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-slow) var(--ease-expo),
        transform var(--duration-slow) var(--ease-expo);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger>.reveal:nth-child(1) {
    transition-delay: 0ms;
}

.reveal-stagger>.reveal:nth-child(2) {
    transition-delay: 80ms;
}

.reveal-stagger>.reveal:nth-child(3) {
    transition-delay: 160ms;
}

.reveal-stagger>.reveal:nth-child(4) {
    transition-delay: 240ms;
}

.reveal-stagger>.reveal:nth-child(5) {
    transition-delay: 320ms;
}

.reveal-stagger>.reveal:nth-child(6) {
    transition-delay: 400ms;
}
/* ── Fallback image manquante (mobile) ── */
img {
    background-color: #2A2420;
}
