/* ============================================
   SAYAMA — Feuille de style partagée
   ============================================ */

:root {
  --violet-deep: #3D0F5C;
  --violet: #5B1283;
  --violet-soft: #7A2BA8;
  --magenta: #B5188C;
  --magenta-bright: #D11E92;

  --ivory: #FAF6F2;
  --cream: #F2EBE3;
  --paper: #FFFFFF;

  --ink: #1A0A24;
  --ink-soft: #4A3552;
  --ink-mute: #7A6985;

  --line: rgba(46, 10, 63, 0.12);
  --line-soft: rgba(46, 10, 63, 0.06);

  --font-display: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter Tight', system-ui, -apple-system, sans-serif;

  --max: 1280px;
  --max-narrow: 880px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain texture subtil */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.04 0 0 0 0 0.25 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(250, 246, 242, 0.85);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, padding 0.3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  padding: 14px 40px;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 48px;
}
.logo-link img {
  height: 100%;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}
.nav-links > a {
  position: relative;
  padding: 4px 0;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}
.nav-links > a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--magenta);
  transition: width 0.3s ease;
}
.nav-links > a:hover { color: var(--violet-deep); }
.nav-links > a:hover::after { width: 100%; }
.nav-links > a.active { color: var(--violet-deep); }
.nav-links > a.active::after { width: 100%; }

.nav-cta {
  background: var(--ink);
  color: var(--ivory) !important;
  padding: 10px 20px !important;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav-cta:hover { background: var(--violet); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: var(--ink-soft);
  padding: 4px 0;
  font-weight: 500;
  font-family: inherit;
  transition: color 0.25s ease;
}
.nav-dropdown-trigger:hover { color: var(--violet-deep); }
.nav-dropdown-trigger svg {
  transition: transform 0.3s ease;
}
.nav-dropdown.open .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  min-width: 280px;
  box-shadow: 0 24px 48px -16px rgba(46, 10, 63, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-dropdown-menu a:hover {
  background: var(--cream);
  color: var(--violet);
}
.nav-dropdown-menu .menu-label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

/* ============ COMMON SECTION ELEMENTS ============ */
.section-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--magenta);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.02em;
}
.section-num::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--magenta);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--ink);
  color: var(--ivory);
}
.btn-primary:hover {
  background: var(--violet);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(91, 18, 131, 0.4);
}
.btn-primary .arrow { transition: transform 0.3s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--violet);
  color: var(--violet);
}

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 80px 40px 40px;
  position: relative;
  z-index: 2;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(250, 246, 242, 0.1);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  font-style: italic;
  color: var(--ivory);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.footer-brand .dot { color: var(--magenta-bright); }
.footer-tag {
  color: rgba(250, 246, 242, 0.65);
  font-size: 15px;
  max-width: 36ch;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--magenta-bright);
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(250, 246, 242, 0.75);
  font-size: 14px;
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--magenta-bright); }

.footer-bottom {
  max-width: var(--max);
  margin: 30px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(250, 246, 242, 0.5);
  flex-wrap: wrap;
  gap: 16px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav { padding: 14px 24px; }
  .nav-links { gap: 18px; }
  .nav-links > a:not(.nav-cta) { display: none; }
  .nav-dropdown { display: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; padding: 0 0 40px; }
  footer { padding: 60px 24px 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
