/* ═══════════════════════════════════════════
   IKIGAI GROUP LLC — feuille de style
   ═══════════════════════════════════════════ */

:root {
  --paper: #F5F1EA;
  --paper-soft: #EDE7DC;
  --ink: #16151A;
  --ink-soft: #4C4A52;
  --vermillon: #C8442C;
  --vermillon-deep: #A33420;
  --line: rgba(22, 21, 26, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 24px 60px -28px rgba(22, 21, 26, 0.28);
}

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

html { scroll-behavior: smooth; }

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

::selection { background: var(--vermillon); color: var(--paper); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.01em; }
h2 em { font-style: italic; color: var(--vermillon); }

img, svg { display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; }

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
.nav.is-scrolled {
  background: rgba(245, 241, 234, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.75rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.nav__brand em { font-style: italic; color: var(--ink-soft); font-size: 0.85em; }
.nav__enso {
  width: 26px; height: 26px;
  color: var(--vermillon);
  transform: rotate(-80deg);
  transition: transform 0.8s var(--ease-out);
}
.nav__brand:hover .nav__enso { transform: rotate(280deg); }
.nav__links { display: flex; gap: clamp(1rem, 3vw, 2.4rem); }
.nav__links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding-block: 0.3rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--vermillon);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cart {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  transition: background 0.3s;
}
.nav__cart:hover { background: rgba(22, 21, 26, 0.06); }
.nav__cart svg { width: 21px; height: 21px; }
.nav__cart-count {
  position: absolute;
  top: 1px; right: -1px;
  min-width: 17px; height: 17px;
  padding-inline: 4px;
  display: grid;
  place-items: center;
  background: var(--vermillon);
  color: var(--paper);
  border-radius: 99px;
  font-size: 0.62rem;
  font-weight: 600;
  transition: transform 0.3s var(--ease-out);
}
.nav__cart-count.bump { animation: bump 0.45s var(--ease-out); }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.55); }
  100% { transform: scale(1); }
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 4rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.hero__enso {
  width: min(78vmin, 620px);
  color: var(--paper-soft);
  transform: rotate(-90deg);
  animation: enso-draw 2.4s var(--ease-out) 0.2s both, enso-float 9s ease-in-out 2.6s infinite;
}
.hero__enso circle {
  stroke-dashoffset: 990;
  animation: enso-stroke 2.2s var(--ease-out) 0.3s forwards;
}
@keyframes enso-stroke { to { stroke-dashoffset: 0; } }
@keyframes enso-draw { from { opacity: 0; } to { opacity: 1; } }
@keyframes enso-float {
  0%, 100% { transform: rotate(-90deg) translateX(0); }
  50% { transform: rotate(-90deg) translateX(14px); }
}
.hero__kicker {
  position: relative;
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--vermillon);
  font-weight: 500;
  margin-bottom: 1.6rem;
}
.hero__title {
  position: relative;
  font-size: clamp(3rem, 9.5vw, 7.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.hero__line { display: block; overflow: hidden; }
.hero__line span {
  display: block;
  transform: translateY(110%);
  animation: line-up 1.1s var(--ease-out) forwards;
}
.hero__line:nth-child(1) span { animation-delay: 0.15s; }
.hero__line:nth-child(2) span { animation-delay: 0.3s; }
.hero__line:nth-child(3) span { animation-delay: 0.45s; }
.hero__line--accent span { font-style: italic; color: var(--vermillon); }
@keyframes line-up { to { transform: translateY(0); } }
.hero__sub {
  position: relative;
  margin-top: 1.8rem;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.7;
  color: var(--ink-soft);
  font-weight: 300;
}
.hero__cta {
  position: relative;
  margin-top: 2.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.9rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.hero__cta:hover {
  background: var(--vermillon);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -14px rgba(200, 68, 44, 0.55);
}
.hero__cta svg { width: 16px; height: 16px; animation: cta-arrow 2s ease-in-out infinite; }
@keyframes cta-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ═══════════ MARQUEE ═══════════ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 0.95rem;
  background: var(--ink);
  color: var(--paper);
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══════════ SECTION HEADS ═══════════ */
.section-head { margin-bottom: clamp(2.6rem, 6vw, 4.5rem); }
.section-head__kicker {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--vermillon);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.section-head--light h2 { color: var(--paper); }

/* ═══════════ COLLECTION ═══════════ */
.collection { padding: clamp(4.5rem, 9vw, 8rem) clamp(1.2rem, 4vw, 3rem); max-width: 1320px; margin-inline: auto; }
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.product {
  background: #FCFAF6;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.product:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.product__stage {
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 50% 108%, rgba(200, 68, 44, 0.10), transparent 60%),
    var(--paper-soft);
  padding: 2.4rem 1rem 1.6rem;
}
.product__badge {
  position: absolute;
  top: 1rem; left: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(252, 250, 246, 0.85);
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  border-radius: 99px;
}
.product__art {
  width: min(72%, 250px);
  filter: drop-shadow(0 22px 22px rgba(22, 21, 26, 0.18));
  transition: transform 0.6s var(--ease-out);
}
.product:hover .product__art { transform: translateY(-6px) rotate(-1.6deg) scale(1.03); }
.garment__fill { fill: var(--g); transition: fill 0.45s ease; }
.garment__detail { stroke: rgba(0, 0, 0, 0.28); }
.garment__detail-fill { fill: rgba(0, 0, 0, 0.28); }
.garment__print {
  fill: rgba(245, 241, 234, 0.92);
  font-family: var(--font-body);
  font-weight: 600;
  transition: fill 0.45s ease;
}
.garment__print--jp { font-weight: 500; }
.garment__printstroke {
  fill: none;
  stroke: rgba(245, 241, 234, 0.92);
  transition: stroke 0.45s ease;
}
.garment--light .garment__print { fill: rgba(22, 21, 26, 0.72); }
.garment--light .garment__printstroke { stroke: rgba(22, 21, 26, 0.72); }
.product__info { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.product__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.product__row h3 { font-size: 1.45rem; font-weight: 500; }
.product__price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--vermillon);
  white-space: nowrap;
}
.product__desc {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 300;
}
.product__colors { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.swatch {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid #FCFAF6;
  outline: 1.5px solid var(--line);
  transition: transform 0.3s var(--ease-out), outline-color 0.3s;
}
.swatch:hover { transform: scale(1.18); }
.swatch.is-active { outline: 2px solid var(--ink); outline-offset: 2px; }
.product__colorname {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.product__colorname span { color: var(--ink); font-weight: 600; }
.product__add {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.95rem 1.3rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.3s, transform 0.2s var(--ease-out);
}
.product__add:hover { background: var(--vermillon); }
.product__add:active { transform: scale(0.97); }
.product__add-price { font-family: var(--font-display); font-size: 1rem; opacity: 0.85; }

/* ═══════════ PHILOSOPHIE ═══════════ */
.philo {
  background: var(--ink);
  color: var(--paper);
  border-radius: clamp(24px, 4vw, 48px);
  margin: 0 clamp(0.6rem, 1.6vw, 1.4rem);
}
.philo__inner {
  max-width: 1320px;
  margin-inline: auto;
  padding: clamp(4.5rem, 9vw, 7.5rem) clamp(1.2rem, 4vw, 3rem);
}
.philo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.philo__card {
  border: 1px solid rgba(245, 241, 234, 0.14);
  border-radius: 18px;
  padding: 1.9rem 1.7rem;
  transition: border-color 0.4s, background 0.4s, transform 0.4s var(--ease-out);
}
.philo__card:hover {
  border-color: rgba(200, 68, 44, 0.65);
  background: rgba(200, 68, 44, 0.07);
  transform: translateY(-6px);
}
.philo__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--vermillon);
  margin-bottom: 1.1rem;
}
.philo__card h3 { font-size: 1.25rem; margin-bottom: 0.7rem; }
.philo__card p { font-size: 0.9rem; line-height: 1.7; color: rgba(245, 241, 234, 0.72); font-weight: 300; }

/* ═══════════ MAISON ═══════════ */
.maison {
  max-width: 1320px;
  margin-inline: auto;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.maison__text h2 { margin-bottom: 1.4rem; }
.maison__text > p { font-size: 1rem; line-height: 1.8; color: var(--ink-soft); font-weight: 300; max-width: 54ch; }
.maison__text > p em { color: var(--ink); }
.maison__list { list-style: none; margin-top: 2rem; border-top: 1px solid var(--line); }
.maison__list li {
  display: flex;
  gap: 1.4rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.maison__list span {
  flex: 0 0 110px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--vermillon);
  padding-top: 0.15rem;
}
.maison__visual { color: var(--vermillon); }
.maison__visual svg { width: min(100%, 340px); margin-inline: auto; }
.maison__ring {
  transform: rotate(-90deg);
  transform-origin: center;
  animation: ring-spin 26s linear infinite;
}
@keyframes ring-spin { to { transform: rotate(270deg); } }
.maison__kanji {
  font-family: var(--font-display);
  font-size: 88px;
  fill: var(--ink);
}

/* ═══════════ FOOTER ═══════════ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2.6rem, 5vw, 4rem) clamp(1.2rem, 4vw, 3rem) 1.6rem;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(245, 241, 234, 0.16);
}
.footer__brand { font-family: var(--font-display); font-size: 1.5rem; }
.footer__brand em { font-style: italic; color: rgba(245, 241, 234, 0.6); font-size: 0.8em; }
.footer__links { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer__links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: rgba(245, 241, 234, 0.75);
  transition: color 0.3s;
}
.footer__links a:hover { color: var(--vermillon); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  padding-top: 1.4rem;
  font-size: 0.78rem;
  color: rgba(245, 241, 234, 0.5);
  font-weight: 300;
}

/* ═══════════ PANIER ═══════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(22, 21, 26, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }
.cart {
  position: fixed;
  top: 0; right: 0;
  z-index: 80;
  height: 100dvh;
  width: min(420px, 92vw);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  box-shadow: -24px 0 60px -30px rgba(22, 21, 26, 0.45);
  transform: translateX(105%);
  transition: transform 0.5s var(--ease-out);
}
.cart.is-open { transform: none; }
.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.cart__head h3 {
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cart__chip {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  min-width: 22px; height: 22px;
  padding-inline: 6px;
  display: inline-grid;
  place-items: center;
  background: var(--vermillon);
  color: var(--paper);
  border-radius: 99px;
}
.cart__close {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  transition: background 0.3s, transform 0.3s;
}
.cart__close:hover { background: rgba(22, 21, 26, 0.06); transform: rotate(90deg); }
.cart__close svg { width: 19px; height: 19px; }
.cart__body { flex: 1; overflow-y: auto; padding: 0.4rem 1.5rem; }
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  animation: item-in 0.4s var(--ease-out);
}
@keyframes item-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.cart-item__dot {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--c);
  outline: 1.5px solid var(--line);
  outline-offset: 2px;
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-family: var(--font-display); font-size: 1.05rem; }
.cart-item__meta { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.15rem; }
.cart-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-top: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 99px;
}
.cart-item__qty button {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.95rem;
  line-height: 1;
  transition: background 0.25s;
}
.cart-item__qty button:hover { background: rgba(22, 21, 26, 0.07); }
.cart-item__qty span { min-width: 20px; text-align: center; font-size: 0.85rem; font-weight: 600; }
.cart-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}
.cart-item__price { font-family: var(--font-display); font-size: 1rem; color: var(--vermillon); white-space: nowrap; }
.cart-item__remove {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background 0.25s, color 0.25s;
}
.cart-item__remove:hover { background: rgba(200, 68, 44, 0.1); color: var(--vermillon); }
.cart-item__remove svg { width: 15px; height: 15px; }
.cart__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 3.5rem 1rem;
  color: var(--ink-soft);
}
.cart__empty svg { width: 46px; height: 46px; color: var(--paper-soft); stroke: var(--ink-soft); opacity: 0.8; }
.cart__empty p { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.cart__empty small { font-size: 0.85rem; font-weight: 300; }
.cart__browse {
  margin-top: 0.4rem;
  padding: 0.75rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.3s;
}
.cart__browse:hover { background: var(--vermillon); }
.cart__foot { border-top: 1px solid var(--line); padding: 1.2rem 1.5rem 1.4rem; }
.cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.cart__total span:last-child { font-size: 1.35rem; color: var(--vermillon); }
.cart__checkout {
  width: 100%;
  padding: 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.3s, transform 0.2s var(--ease-out);
}
.cart__checkout:hover { background: var(--vermillon); }
.cart__checkout:active { transform: scale(0.98); }
.cart__note {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  text-align: center;
  color: var(--ink-soft);
  font-weight: 300;
}

/* ═══════════ TOAST ═══════════ */
.toast {
  position: fixed;
  bottom: 1.6rem;
  left: 50%;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 18px 40px -16px rgba(22, 21, 26, 0.5);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s;
  pointer-events: none;
}
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; }
.toast svg { width: 17px; height: 17px; color: #7BC47F; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 860px) {
  .maison { grid-template-columns: 1fr; }
  .maison__visual { order: -1; }
  .maison__visual svg { width: min(60%, 240px); }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .br-desktop { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__line span { transform: none; }
}
