/* ============================================
   JULIEN MARTEL - DESIGN SYSTEM
   Architecture d'intérieur & design contemporain
   ============================================ */

/* --- RESET MINIMAL --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.6;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* --- CSS CUSTOM PROPERTIES --- */
:root {
  /* Brand Colors */
  --color-accent: #B8935D;
  --color-accent-light: #D4B88A;
  --color-accent-dark: #9A7A4D;
  --color-text: #1A1A1A;
  --color-text-light: #4A4A4A;
  --color-text-muted: #6B6B6B;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8F7F5;
  --color-bg-dark: #1A1A1A;
  --color-border: #E5E5E5;
  --color-border-light: #F0F0F0;

  /* Typography - Fluid Scale (Golden Ratio 1.618) */
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;

  --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --fs-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --fs-base: clamp(1rem, 0.925rem + 0.375vw, 1.125rem);
  --fs-md: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
  --fs-lg: clamp(1.375rem, 1.2rem + 0.875vw, 1.75rem);
  --fs-xl: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
  --fs-2xl: clamp(2.25rem, 1.875rem + 1.875vw, 3.5rem);
  --fs-3xl: clamp(2.75rem, 2.25rem + 2.5vw, 4.5rem);

  /* Line Heights */
  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-normal: 1.6;
  --lh-relaxed: 1.8;

  /* Letter Spacing */
  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.05em;
  --ls-wider: 0.1em;
  --ls-widest: 0.2em;

  /* Font Weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Spacing - Golden Ratio Based (1.618) */
  --space-3xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.375rem);
  --space-2xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-xs: clamp(0.75rem, 0.6rem + 0.75vw, 1.125rem);
  --space-sm: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --space-md: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  --space-lg: clamp(2rem, 1.6rem + 2vw, 3rem);
  --space-xl: clamp(3rem, 2.4rem + 3vw, 4.5rem);
  --space-2xl: clamp(4rem, 3.2rem + 4vw, 6rem);
  --space-3xl: clamp(6rem, 4.8rem + 6vw, 9rem);

  /* Section Padding */
  --section-padding-y: clamp(4rem, 3rem + 5vw, 8rem);
  --section-padding-x: clamp(1.25rem, 1rem + 2vw, 3rem);

  /* Container */
  --container-max: 1280px;
  --container-narrow: 900px;
  --container-wide: 1440px;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.05);
  --shadow-md: 0 4px 12px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 8px 24px rgba(26, 26, 26, 0.1);
  --shadow-xl: 0 16px 48px rgba(26, 26, 26, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-slower: 800ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

/* --- BASE TYPOGRAPHY --- */
body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: var(--lh-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--color-text);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }

p {
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: var(--fw-semibold);
}

/* --- UTILITY CLASSES --- */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-padding-x);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

/* Section */
.section {
  padding-block: var(--section-padding-y);
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-bg);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

/* Text Utilities */
.text-accent {
  color: var(--color-accent);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
}

/* Headings */
.heading-display {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  line-height: var(--lh-tight);
}

.heading-overline {
  font-family: var(--font-primary);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: var(--space-xs) var(--space-md);
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn--outline:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
}

.btn--outline-light {
  background-color: transparent;
  color: var(--color-bg);
  border-color: var(--color-bg);
}

.btn--outline-light:hover {
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* Links */
.link {
  position: relative;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

.link:hover {
  color: var(--color-accent);
}

.link:hover::after {
  width: 100%;
}

.link--accent {
  color: var(--color-accent);
}

/* Divider */
.divider {
  width: 60px;
  height: 1px;
  background-color: var(--color-accent);
  margin-block: var(--space-md);
}

.divider--center {
  margin-inline: auto;
}

/* Visibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Animation States (GSAP) */
[data-animation] {
  opacity: 0;
}

[data-animation="fade-up"] {
  transform: translateY(30px);
}

[data-animation="fade-in"] {
  transform: none;
}

[data-animation].is-visible {
  opacity: 1;
  transform: none;
}
