/* ==========================================================================
   Global — Design system, reset, typography
   ========================================================================== */

/* --------------------------------------------------------------------------
   @font-face
   -------------------------------------------------------------------------- */

@font-face {
	font-family: 'PP Neue Montreal';
	src: url('../fonts/ppneuemontreal-book.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'PP Neue Montreal';
	src: url('../fonts/ppneuemontreal-italic.woff2') format('woff2');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'PP Neue Montreal';
	src: url('../fonts/ppneuemontreal-medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'PP Neue Montreal';
	src: url('../fonts/ppneuemontreal-bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Bitblast Sans';
	src: url('../fonts/bitblastsans-regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* --------------------------------------------------------------------------
   CSS Variables — Design tokens
   -------------------------------------------------------------------------- */

:root {
	/* Colors */
	/* Violet principal du design system, a utiliser sur fond clair */
	--color-primary: #4122ED;
	/* Variante plus claire pour usage sur fond sombre (meilleure lisibilite) */
	--color-primary-on-dark: #6773F9;
	--color-coral: #FD9CA8;
	--color-black: #131415;
	--color-white: #FFFFFF;
	--color-gray-50: #F7F6F5;
	--color-gray-100: #F1F0EE;
	--color-gray-200: #E4E3E0;
	--color-gray-300: #C9C7C4;
	--color-gray-400: #A3A09C;
	--color-gray-500: #7D7974;
	--color-gray-600: #5C5955;
	--color-gray-700: #3D3B38;
	--color-gray-800: #242322;

	/* Typography — Families */
	--font-body: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-display: 'Bitblast Sans', sans-serif;

	/* Typography — Sizes (modular scale) */
	--text-xs: 0.75rem;     /* 12px */
	--text-sm: 0.875rem;    /* 14px */
	--text-base: 1rem;      /* 16px */
	--text-md: 1.125rem;    /* 18px */
	--text-lg: 1.25rem;     /* 20px */
	--text-xl: 1.5rem;      /* 24px */
	--text-2xl: 2rem;       /* 32px */
	--text-3xl: 2.5rem;     /* 40px */
	--text-4xl: 3.5rem;     /* 56px */
	--text-5xl: 4.5rem;     /* 72px */
	--text-6xl: 6rem;       /* 96px */

	/* Typography — Weights */
	--font-weight-book: 400;
	--font-weight-medium: 500;
	--font-weight-bold: 700;

	/* Typography — Line heights */
	--leading-tight: 1.1;
	--leading-snug: 1.25;
	--leading-normal: 1.5;
	--leading-relaxed: 1.75;

	/* Spacing — Base 8px */
	--space-xs: 0.5rem;     /* 8px */
	--space-sm: 1rem;       /* 16px */
	--space-md: 1.5rem;     /* 24px */
	--space-lg: 2rem;       /* 32px */
	--space-xl: 3rem;       /* 48px */
	--space-2xl: 4rem;      /* 64px */
	--space-3xl: 6rem;      /* 96px */
	--space-4xl: 8rem;      /* 128px */

	/* Layout */
	--container-max: 1440px;
	--container-padding: var(--space-sm);

	/* Radius */
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 16px;
	--radius-full: 9999px;

	/* Borders */
	--border-thin: 1px solid var(--color-gray-200);
	--border-dark: 1px solid var(--color-black);

	/* Transitions */
	--duration-fast: 150ms;
	--duration-base: 300ms;
	--duration-slow: 500ms;
	--easing-default: cubic-bezier(0.4, 0, 0.2, 1);
	--easing-in: cubic-bezier(0.4, 0, 1, 1);
	--easing-out: cubic-bezier(0, 0, 0.2, 1);

	/* Header */
	--header-padding-x: 48px;
	--header-padding-y: 48px;
	--header-z-index: 100;

	/* Glass morphism */
	--glass-bg: rgba(255, 255, 255, 0.33);
	--glass-border: rgba(255, 255, 255, 0.33);
	--glass-blur: blur(4px);
	--glass-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

* {
	margin: 0;
	padding: 0;
}

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

body {
	min-height: 100vh;
	font-family: var(--font-body);
	font-size: var(--text-base);
	font-weight: var(--font-weight-book);
	line-height: var(--leading-normal);
	color: var(--color-black);
	background-color: var(--color-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

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

button {
	font: inherit;
	color: inherit;
	background: none;
	border: none;
	cursor: pointer;
}

ul,
ol {
	list-style: none;
}

/* --------------------------------------------------------------------------
   Typography — Base styles
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: var(--font-weight-book);
	line-height: var(--leading-tight);
	text-transform: uppercase;
	color: var(--color-black);
}

h1 {
	font-size: var(--text-5xl);
}

h2 {
	font-size: var(--text-4xl);
}

h3 {
	font-size: var(--text-3xl);
}

h4 {
	font-size: var(--text-2xl);
}

h5 {
	font-size: var(--text-xl);
}

h6 {
	font-size: var(--text-lg);
}

p {
	font-size: var(--text-md);
	line-height: var(--leading-normal);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* --------------------------------------------------------------------------
   Dev — Temporary background for header visibility (remove when hero is built)
   -------------------------------------------------------------------------- */

body.is-home:not(.has-hero) {
	background-color: var(--color-black);
	min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Lenis smooth scroll — CSS de base
   -------------------------------------------------------------------------- */

html.lenis,
html.lenis body {
	height: auto;
}

.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
	overscroll-behavior: contain;
}

.lenis.lenis-stopped {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Responsive — Breakpoints reference
   Mobile:  < 768px  (default styles)
   Tablet:  >= 768px  @media (min-width: 768px)
   Desktop: >= 1024px @media (min-width: 1024px)
   Wide:    >= 1440px @media (min-width: 1440px)
   -------------------------------------------------------------------------- */
