/* ============================================================
 * Japan Companion — Design Tokens (portable extract)
 * Drop this file in any project and link it before your styles
 * to get the same look & feel. Pair with the prompt template.
 * ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&family=Noto+Serif+JP:wght@500;700;900&display=swap');

:root {
  /* ---------- Fonds ---------- */
  --bg-cream:      #F5EEE6;
  --bg-cream-soft: #FAF5EE;
  --bg-white:      #FFFFFF;
  --bg-beige:      #ECE3D6;
  --bg-beige-soft: #F2EBDF;

  /* ---------- Primary (orange corail) ---------- */
  --primary:        #F46A4C;
  --primary-hover:  #E85A3C;
  --primary-soft:   #FCE4DC;

  /* ---------- Accent rouge japonais ---------- */
  --accent-red:      #C8302C;
  --accent-red-dark: #9A1E1B;
  --accent-red-soft: #F8DCDB;

  /* ---------- Doré premium ---------- */
  --gold:      #C9A24A;
  --gold-soft: #F5E9C8;

  /* ---------- Texte ---------- */
  --text-primary: #1A1A1A;
  --text-body:    #2B2B2B;
  --text-muted:   #6B6B6B;
  --text-subtle:  #9A9A9A;

  /* ---------- Bordures ---------- */
  --border:        #E5DDD1;
  --border-strong: #CFC5B6;

  /* ---------- Statut ---------- */
  --success:      #5AB875;  --success-soft: #DFF3E4;
  --error:        #E85D4D;  --error-soft:   #FBE2DE;
  --info:         #4A5EDE;  --info-soft:    #DCEAFA;

  /* ---------- Ombres ---------- */
  --shadow-sm: 0 2px 6px rgba(20, 14, 4, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 14, 4, 0.08);
  --shadow-lg: 0 20px 48px rgba(20, 14, 4, 0.10);
  --shadow-xl: 0 32px 72px rgba(20, 14, 4, 0.14);

  /* ---------- Radius ---------- */
  --radius-sm:   12px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-pill: 9999px;

  /* ---------- Typography ---------- */
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-jp:      'Noto Serif JP', serif;

  /* ---------- Easing ---------- */
  --ease-out-expo:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart:   cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
  --ease-spring:      cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring-soft: cubic-bezier(0.5, 1.25, 0.75, 1);
  --ease-dramatic:    cubic-bezier(0.7, 0, 0.3, 1);

  /* ---------- Durations ---------- */
  --dur-instant: 100ms;
  --dur-fast:    200ms;
  --dur-base:    300ms;
  --dur-slow:    500ms;
  --dur-slower:  800ms;
  --dur-hero:    1200ms;

  /* ---------- Layout ---------- */
  --container-max: 1280px;
  --header-h:      80px;
}

/* ============================================================
 * RESET LÉGER
 * ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-red); text-decoration: none; transition: color var(--dur-fast); }
a:hover { color: var(--accent-red-dark); }

/* ============================================================
 * TYPOGRAPHIE
 * ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(40px, 5.2vw, 72px); }
h2 { font-size: clamp(30px, 3.6vw, 48px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--text-muted);
}

/* Trait pinceau doré sous un titre */
.brush {
  width: 64px; height: 4px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

/* Kanji géant en filigrane derrière un H1 */
.hero-kanji {
  position: absolute;
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(180px, 28vw, 420px);
  color: rgba(200, 48, 44, 0.08);
  line-height: 0.9;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ============================================================
 * LAYOUT
 * ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: clamp(64px, 8vw, 120px) 0; position: relative; }
.section.bg-beige { background: var(--bg-beige-soft); }
.section.bg-cream { background: var(--bg-cream-soft); }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============================================================
 * BOUTONS
 * ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out-quart),
              box-shadow var(--dur-fast),
              background var(--dur-fast),
              border-color var(--dur-fast);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(244, 106, 76, 0.55);
}
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(244, 106, 76, 0.7); }

.btn-red {
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(200, 48, 44, 0.55);
}

.btn-ghost {
  background: var(--bg-white);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text-primary); }

/* ============================================================
 * CARDS
 * ============================================================ */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out-quart),
              box-shadow var(--dur-base),
              border-color var(--dur-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

/* ============================================================
 * BADGES & PILLS
 * ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px;
  background: var(--accent-red-soft);
  color: var(--accent-red);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.badge-success { background: var(--success-soft); color: var(--success); }

/* ============================================================
 * UTILITIES
 * ============================================================ */
.mt-2 { margin-top: 8px; }   .mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }  .mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; } .mt-16 { margin-top: 64px; }

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
 * REVEAL ANIMATIONS (pair with a tiny IntersectionObserver JS)
 * ============================================================ */
[data-reveal-stagger] > *,
.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
}
[data-reveal-stagger].is-visible > *,
.reveal-item.is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal-stagger] > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger] > *:nth-child(2) { transition-delay: 80ms; }
[data-reveal-stagger] > *:nth-child(3) { transition-delay: 160ms; }
[data-reveal-stagger] > *:nth-child(4) { transition-delay: 240ms; }
[data-reveal-stagger] > *:nth-child(5) { transition-delay: 320ms; }
[data-reveal-stagger] > *:nth-child(6) { transition-delay: 400ms; }
