/* =============================================================================
   variables.css — Design Token System
   Laury Gage — laurygage.fr
   Psychologue clinicienne — Antibes
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Jost:wght@300;400;500;600&display=swap');

/* =============================================================================
   1. DESIGN TOKENS
   ============================================================================= */

:root {

  /* ---------------------------------------------------------------------------
     COLORS
     ------------------------------------------------------------------------- */
  --color-bg:            #F7F3EE;
  --color-bg-alt:        #EDE8E2;
  --color-text:          #2C2926;
  --color-primary:       #C9A84C;
  --color-primary-hover: #b89740;
  --color-primary-light: rgba(201, 168, 76, 0.12);
  --color-muted:         #6B6560;
  --color-surface:       #FFFFFF;
  --color-border:        #D9D3CC;
  --color-text-inv:      #FFFFFF;
  --color-success:       #2E7D32;

  /* ---------------------------------------------------------------------------
     TYPOGRAPHY — Font Families
     ------------------------------------------------------------------------- */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;

  /* ---------------------------------------------------------------------------
     TYPOGRAPHY — Type Scale
     ------------------------------------------------------------------------- */
  --text-xs:   0.75rem;    /*  12px */
  --text-sm:   0.875rem;   /*  14px */
  --text-base: 1rem;       /*  16px */
  --text-lg:   1.125rem;   /*  18px */
  --text-xl:   1.25rem;    /*  20px */
  --text-2xl:  1.5rem;     /*  24px */
  --text-3xl:  1.875rem;   /*  30px */
  --text-4xl:  2.25rem;    /*  36px */
  --text-5xl:  3rem;       /*  48px */

  /* ---------------------------------------------------------------------------
     SPACING SCALE
     ------------------------------------------------------------------------- */
  --space-1:  0.25rem;   /*   4px */
  --space-2:  0.5rem;    /*   8px */
  --space-3:  0.75rem;   /*  12px */
  --space-4:  1rem;      /*  16px */
  --space-5:  1.25rem;   /*  20px */
  --space-6:  1.5rem;    /*  24px */
  --space-8:  2rem;      /*  32px */
  --space-10: 2.5rem;    /*  40px */
  --space-12: 3rem;      /*  48px */
  --space-14: 3.5rem;    /*  56px */
  --space-16: 4rem;      /*  64px */
  --space-20: 5rem;      /*  80px */
  --space-24: 6rem;      /*  96px */

  /* ---------------------------------------------------------------------------
     BREAKPOINTS (reference values — use raw px in @media queries)
     ------------------------------------------------------------------------- */
  --bp-mobile:  375px;
  --bp-tablet:  768px;
  --bp-desktop: 1280px;
  --bp-wide:    1440px;

  /* ---------------------------------------------------------------------------
     LAYOUT
     ------------------------------------------------------------------------- */
  --container-max:    1280px;
  --container-narrow: 760px;

  /* ---------------------------------------------------------------------------
     BORDER RADII
     ------------------------------------------------------------------------- */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  /* ---------------------------------------------------------------------------
     SHADOWS
     ------------------------------------------------------------------------- */
  --shadow-sm: 0 1px 4px rgba(26, 26, 26, 0.06),
               0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 4px 16px rgba(26, 26, 26, 0.08),
               0 2px 6px rgba(26, 26, 26, 0.05);
  --shadow-lg: 0 10px 40px rgba(26, 26, 26, 0.10),
               0 4px 12px rgba(26, 26, 26, 0.06);

  /* ---------------------------------------------------------------------------
     TRANSITIONS
     ------------------------------------------------------------------------- */
  --transition:      0.25s ease;
  --transition-slow: 0.4s ease;
}

/* =============================================================================
   2. CSS RESET
   ============================================================================= */

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

/* =============================================================================
   3. BASE STYLES
   ============================================================================= */

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ---------------------------------------------------------------------------
   Headings
   ------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic;
  font-weight: 700;
  margin-bottom: var(--space-6);
}

h3 {
  font-size: var(--text-xl);
  font-style: normal;
  font-weight: 600;
}

h4 {
  font-size: var(--text-lg);
  font-style: normal;
  font-weight: 600;
}

h5 {
  font-size: var(--text-base);
  font-weight: 600;
}

h6 {
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Paragraphs & inline text
   ------------------------------------------------------------------------- */

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

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

strong,
b {
  font-weight: 600;
}

em,
i {
  font-style: italic;
}

/* ---------------------------------------------------------------------------
   Links
   ------------------------------------------------------------------------- */

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-hover);
}

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

/* ---------------------------------------------------------------------------
   Lists
   ------------------------------------------------------------------------- */

ul,
ol {
  padding-left: var(--space-6);
}

li {
  margin-bottom: var(--space-1);
}

/* ---------------------------------------------------------------------------
   Media
   ------------------------------------------------------------------------- */

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

/* ---------------------------------------------------------------------------
   Forms & interactive elements
   ------------------------------------------------------------------------- */

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

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

/* ---------------------------------------------------------------------------
   Misc
   ------------------------------------------------------------------------- */

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* =============================================================================
   4. ACCESSIBILITY UTILITIES
   ============================================================================= */

/* Visually hidden but available to assistive technologies */
.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;
}

/* Skip to main content link — visible on keyboard focus */
.skip-link {
  position: absolute;
  top: -40px;
  left: var(--space-4);
  background-color: var(--color-primary);
  color: var(--color-text-inv);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-4);
  outline: 2px solid var(--color-text-inv);
  outline-offset: 2px;
}

/* =============================================================================
   5. 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;
  }

  html {
    scroll-behavior: auto;
  }
}
