/* ============================================================
   ALPHORA — DESIGN TOKENS
   Palette : anthracite chaud + ivoire + or champagne
   Typo    : Cormorant Garamond (display) + Inter (body)
   ============================================================ */

:root {
  /* Type scale (fluid) */
  --text-xs:    clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm:    clamp(0.8125rem, 0.78rem + 0.2vw, 0.9rem);
  --text-base:  clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg:    clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl:    clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl:   clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  --text-3xl:   clamp(2.75rem, 1.5rem + 4.5vw, 5.5rem);
  --text-hero:  clamp(3.25rem, 1rem + 7vw, 7.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Surfaces — anthracite chaud (pas de blanc) */
  --color-bg:              #14130f;   /* fond principal — graphite très chaud */
  --color-surface:         #1b1a16;   /* sections alternées */
  --color-surface-2:       #221f1a;   /* cartes, témoignages */
  --color-surface-offset:  #100f0c;   /* partner, plus sombre */
  --color-divider:         rgba(231, 213, 178, 0.10);
  --color-border:          rgba(231, 213, 178, 0.18);

  /* Texte — ivoire chaud */
  --color-text:            #ece4d4;   /* texte principal sur sombre */
  --color-text-soft:       rgba(236, 228, 212, 0.78);
  --color-text-muted:      rgba(236, 228, 212, 0.58);
  --color-text-faint:      rgba(236, 228, 212, 0.38);
  --color-text-inverse:    #ece4d4;
  --color-text-strong:     #f6efde;

  /* Accent — or champagne */
  --color-gold:            #c9a96b;
  --color-gold-hover:      #dfc187;
  --color-gold-soft:       #e7d5b2;
  --color-gold-tint:       rgba(201, 169, 107, 0.18);

  /* Sombre — sections très sombres / contraste */
  --color-night:           #0c0b09;
  --color-night-soft:      #161410;
  --color-night-border:    rgba(231, 213, 178, 0.14);

  /* Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-pill: 999px;

  /* Transitions */
  --t-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --t-med:  340ms cubic-bezier(0.16, 1, 0.3, 1);
  --t-slow: 720ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.6);

  /* Widths */
  --content-narrow: 640px;
  --content-default: 1080px;
  --content-wide: 1280px;

  /* Fonts */
  --font-display: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
  --font-body:    'Inter', 'Helvetica Neue', system-ui, sans-serif;
}

/* ============================================================
   RESET / BASE
   ============================================================ */

*,
*::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;
  scroll-padding-top: 88px;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

ul,
ol {
  list-style: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--color-text-strong);
}

p {
  text-wrap: pretty;
  max-width: 64ch;
}

::selection {
  background: var(--color-gold-tint);
  color: var(--color-text-strong);
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-night);
  color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-5);
  z-index: 9999;
}
.skip-link:focus {
  top: 0;
}
