/* ============================================================
   RETOUR À SOI · sections de l'accueil
   ============================================================ */

/* Fond qui change de couleur au scroll (activé par JS) */
body { transition: none; }

/* ---------- HERO (orbe centrée) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 9rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.hero__top {
  position: absolute;
  top: 7.2rem;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  text-align: left;
}
.hero__top .mono { max-width: 17rem; }
.hero__top .mono:last-child { text-align: right; }
.hero__orb {
  --lobe-a: radial-gradient(ellipse 32% 38% at 40% 55%, #000 20%, transparent 100%);
  --lobe-b: radial-gradient(ellipse 28% 34% at 62% 40%, #000 15%, transparent 100%);
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  z-index: -1;
  -webkit-mask-image: var(--lobe-a), var(--lobe-b);
  mask-image: var(--lobe-a), var(--lobe-b);
  animation: drift 16s var(--ease-in-out) infinite alternate;
}
.hero__orb .aura { z-index: 0; }
@keyframes drift {
  from { transform: translate3d(-2%, 1%, 0) rotate(-4deg) scale(0.98); }
  to { transform: translate3d(2%, -1.5%, 0) rotate(4deg) scale(1.04); }
}
.hero__center { display: flex; flex-direction: column; align-items: center; }
.hero__title { position: relative; }
.hero__title em { font-style: normal; }
.hero__sub { max-width: 30rem; margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.hero__cta { display: flex; flex-direction: column; align-items: center; margin-top: 2rem; }
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0.6;
}
.hero__scroll::after { content: ""; width: 1px; height: 4rem; background: currentColor; animation: drip 2.4s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.reduced .hero__orb { animation: none; }

/* ---------- MIROIR ---------- */
.mirror__text { max-width: 22ch; }
.fill-word { display: inline; }

.checks {
  margin-top: clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.checks__intro { position: sticky; top: 7rem; }
.tally { margin-top: clamp(2rem, 4vw, 3rem); }
.tally__count {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-size: clamp(4rem, 7vw, 6rem);
  line-height: 0.9;
  color: var(--magenta);
}
.tally__total { font-size: 1rem; letter-spacing: 0; color: var(--ink-soft); }
.tally__label { margin-top: 1rem; opacity: 0.55; }
.checks__answer {
  max-width: 24rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), max-height 0.8s var(--ease), padding 0.6s var(--ease);
}
.checks__msg { animation: msg-in 0.8s var(--ease); }
.checks__cta { margin-top: 1rem; }
@keyframes msg-in { from { opacity: 0; filter: blur(6px); } }
.checks__answer.is-visible { max-height: 20rem; padding-top: 1.4rem; opacity: 1; transform: none; }
.checks__list { display: grid; gap: 0.5rem; }
.check {
  width: 100%;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--card);
  border-radius: 1rem;
  text-align: left;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}
.check__box {
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--ink);
  position: relative;
  transition: background 0.4s var(--ease), border-color 0.4s;
}
.check__box::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.22rem;
  width: 0.42rem;
  height: 0.8rem;
  border: solid var(--cream);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.45s var(--ease);
}
.check[aria-pressed="true"] .check__box { background: var(--magenta); border-color: var(--magenta); }
.check[aria-pressed="true"] .check__box::after { transform: rotate(45deg) scale(1); }
.check[aria-pressed="true"] .check__txt { color: var(--magenta); }
/* ---------- BASCULE (fond prune) ---------- */
.shift { text-align: left; overflow: hidden; }
.shift__big { max-width: 12ch; }
.shift__big .accent { color: var(--rose); }
/* « trop … » : le mot après « trop » défile */
.shift__trop { white-space: nowrap; padding-bottom: 0.3em; margin-bottom: -0.3em; }
.swap__word { display: inline-block; will-change: opacity, filter; }
.shift__grid {
  margin-top: clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.shift__grid .lead { grid-column: 6 / span 6; }
.shift__grid .lead + .lead { margin-top: 1.4rem; }
.shift__orb {
  position: absolute;
  width: 46vw;
  height: 46vw;
  right: -14vw;
  top: 9vw;
  background:
    radial-gradient(38% 34% at 58% 52%, rgba(229, 143, 176, 0.62), rgba(229, 143, 176, 0.26) 55%, transparent),
    radial-gradient(46% 40% at 42% 40%, rgba(183, 155, 242, 0.5), rgba(183, 155, 242, 0.18) 60%, transparent),
    radial-gradient(42% 46% at 50% 64%, rgba(141, 107, 200, 0.45), rgba(141, 107, 200, 0.15) 60%, transparent);
  filter: blur(60px);
  pointer-events: none;
}

/* ---------- HUMAN DESIGN (pinned) ---------- */
.hd { padding-bottom: clamp(4rem, 8vw, 6rem); }
.hd__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.hd__head .d { grid-column: 1 / span 8; }
.hd__head > p { grid-column: 9 / span 4; align-self: end; }
.hd__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
/* Même langage que les illustrations des saisons : trait prune, aura floue */
.bodygraph { position: relative; width: min(100%, 34rem, 60vh); margin: 0 auto; aspect-ratio: 667 / 810; }
.bodygraph svg { width: 100%; height: 100%; overflow: visible; }
.bg-halo { opacity: 0.5; }
.bg-spark { fill: var(--peach); opacity: 0; filter: url(#sparkBlur); transition: opacity 0.9s var(--ease); }
.bg-spark.is-on { opacity: 0.9; }
.bg-centre {
  fill: var(--cream);
  stroke: var(--plum);
  stroke-width: 2.2;
  stroke-linejoin: round;
  transition: fill 0.8s var(--ease);
}
.bg-centre.is-on { fill: var(--rose); }
.bodygraph__tag {
  position: absolute;
  left: 50%;
  bottom: -2.4rem;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0.6;
}

.hd__steps { display: grid; gap: 0; }
.hd__visual { position: sticky; top: 16vh; }
.hd-step {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.8rem 0;
  opacity: 0.32;
  transition: opacity 0.6s var(--ease);
}
.hd-step.is-active { opacity: 1; }
.hd-step__title { color: var(--magenta); margin-bottom: 0.7rem; }
.hd-step p { max-width: 30rem; }
.no-js .hd-step, .reduced .hd-step { opacity: 1; }

/* ---------- HISTOIRE ---------- */
.story__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.story__media {
  grid-column: 1 / span 5;
  position: sticky;
  top: clamp(5rem, 12vh, 8rem);
}
.story__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 1rem;
  background: var(--blush);
}
.story__frame img {
  position: absolute;
  top: -6%;
  left: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: saturate(0.92) contrast(1.03);
}
.story__caption { margin-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; opacity: 0.7; }
.story__body { grid-column: 7 / span 6; }
.story__quote { margin-bottom: 2.4rem; }
.story__body p + p { margin-top: 1.2rem; }
.story__facts {
  margin: 3rem 0 2.6rem;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.story__facts strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; margin-bottom: 0.6rem; }

/* ---------- OFFRES ---------- */
.offers__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.offers__head .d { grid-column: 1 / span 7; }
.offers__head .finder { grid-column: 8 / span 5; }

.finder {
  padding: 1.6rem;
  background: var(--card);
  border-radius: 1rem;
  align-self: end;
}
.finder__kicker { font-family: var(--f-display); font-size: 1.1rem; color: var(--magenta); }
.finder__q { margin: 0.5rem 0 1.1rem; font-size: 1.15rem; font-weight: 500; line-height: 1.35; }
.finder__opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.62rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 0.92rem;
  text-align: left;
  transition: background 0.35s, color 0.35s;
}
.chip:hover { background: var(--ink); color: var(--cream); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.finder__tip { margin-top: 1.1rem; line-height: 1.45; animation: msg-in 0.8s var(--ease); }
.finder__tip:empty { display: none; }

.offer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
  padding: clamp(1.6rem, 3.4vw, 2.6rem) clamp(1.2rem, 3vw, 2.4rem);
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  isolation: isolate;
}
.offer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(255, 182, 147, 0.55), rgba(229, 143, 176, 0.45) 50%, rgba(205, 180, 236, 0.55));
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.offer:hover::before, .offer.is-match::before { opacity: 1; }
.offer__name { margin-bottom: 0.8rem; max-width: 22ch; }
.offer__for { max-width: 30rem; }
.offer__list { display: grid; gap: 0.45rem; padding-top: 0.5rem; }
.offer__list li { display: flex; gap: 0.7rem; font-size: 0.96rem; }
.offer__list li::before { content: ""; flex: 0 0 0.36rem; height: 0.36rem; margin-top: 0.6rem; border-radius: 50%; background: var(--magenta); }
.offer__side { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; min-width: 12rem; }
.offer__price { font-family: var(--f-display); font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; color: var(--magenta); text-align: right; }
.offer__price small { display: block; margin-top: 0.4rem; font-family: var(--f-body); font-size: 0.85rem; color: var(--ink); opacity: 0.6; }
.offer__flag {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 500;
}
.offer__flag { margin-bottom: 0.8rem; background: var(--plum); color: var(--cream); }

/* Les 3 accompagnements : 3 cartes côte à côte, lignes alignées entre elles */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 1rem;
}
.plan {
  position: relative;
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 1.6rem;
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  isolation: isolate;
}
.plan::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgba(255, 182, 147, 0.55), rgba(229, 143, 176, 0.45) 50%, rgba(205, 180, 236, 0.55));
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.plan { transition: transform 0.6s var(--ease); }
.plan:hover { transform: translateY(-4px); }
.plan:hover::before { opacity: 0.3; }
.plan.is-match::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .plan:hover { transform: none; } }
.plan__step { display: flex; align-items: baseline; gap: 0.7rem; font-size: 0.95rem; }
.plan__num, .step__num { font-weight: 300; font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1; color: var(--magenta); }
.plan .plan__num { font-size: 1.6rem; }
.plan__promise { font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.08; margin-bottom: 0.8rem; }
.plan__name { font-weight: 500; font-size: 0.95rem; }
.plan__price { align-self: end; font-family: var(--f-body); font-weight: 400; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; }
.plan__price small { display: block; margin-top: 0.4rem; font-size: 0.85rem; letter-spacing: 0; opacity: 0.6; }
.plan .offer__list { align-content: start; padding-top: 0; }
.plan__cta { align-self: stretch; justify-content: center; text-align: center; }
.offers__note { margin-top: 2rem; max-width: 40rem; }

/* ---------- PROCESS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(3rem, 6vw, 5rem); }
.step { position: relative; isolation: isolate; --halo: var(--peach); }
.step:nth-of-type(2) { --halo: var(--rose); }
.step:nth-of-type(3) { --halo: var(--lav); }
/* Aura douce derrière chaque numéro, comme sous les saisons */
.step::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -2.6rem;
  left: -2.4rem;
  width: clamp(9rem, 13vw, 11rem);
  height: clamp(7rem, 10vw, 9rem);
  background: radial-gradient(closest-side, var(--halo), transparent);
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  opacity: 0.6;
  filter: blur(18px);
}
.step__num { margin-bottom: 1.4rem; }
.step h3 { margin-bottom: 0.8rem; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); }
.faq__intro p { margin-top: 1.4rem; max-width: 22rem; }
.faq__list { display: grid; gap: 0.5rem; }
.qa { background: var(--card); border-radius: 1rem; }
.qa__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.3rem 1.4rem;
  text-align: left;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 500;
}
.qa__icon { position: relative; flex: 0 0 1.9rem; height: 1.9rem; transition: transform 0.5s var(--ease); }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.1rem; height: 1px; margin-left: -0.55rem; background: currentColor; }
.qa__icon::after { transform: rotate(90deg); transition: transform 0.5s var(--ease); }
.qa__q[aria-expanded="true"] .qa__icon { transform: rotate(180deg); }
.qa__q[aria-expanded="true"] .qa__icon::after { transform: rotate(0deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 4.4rem 1.5rem 1.4rem; color: var(--ink-soft); }
.qa__q[aria-expanded="true"] + .qa__a { grid-template-rows: 1fr; }


/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hd__head .d, .hd__head > p, .offers__head .d, .offers__head .finder { grid-column: 1 / -1; }
  .hd__stage { grid-template-columns: 1fr; gap: 1.6rem; }
  .hd__visual { position: static; }
  .bodygraph { width: min(72vw, 22rem, 36svh); }
  .bodygraph__tag { display: none; }
  .hd__steps { gap: 2rem; }
  .hd-step { min-height: 0; padding: 0; text-align: center; }
  .hd-step p { margin: 0 auto; }
  .hd--pinned .hd-step {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(0.8rem);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  .hd--pinned .hd-step.is-active { opacity: 1; transform: none; }
  .story__media, .story__body { grid-column: 1 / -1; }
  .story__media { max-width: 26rem; position: relative; top: 0; }
  .checks, .faq__grid { grid-template-columns: 1fr; }
  .checks { gap: 0; }
  .checks__intro { display: contents; }
  .tally { margin-bottom: 2rem; }
  .checks__list { order: 1; }
  .checks__answer { order: 2; }
  .shift__grid .lead { grid-column: 1 / -1; }
  .offer { grid-template-columns: 1fr; gap: 1rem; }
  .plans { grid-template-columns: 1fr; }
  .plan { grid-row: auto; grid-template-rows: none; row-gap: 1.3rem; }
  .offer__side { flex-direction: row; justify-content: space-between; align-items: center; min-width: 0; }
  .offer__price, .offer__price small { text-align: left; }
}
@media (max-width: 760px) {
  .hero { padding-top: 10rem; }
  .hero__top { top: 5.6rem; justify-content: center; text-align: center; }
  .hero__top .mono:last-child, .hero__scroll { display: none; }
  .hero__orb {
    --lobe-a: radial-gradient(ellipse 46% 34% at 46% 56%, #000 20%, transparent 100%);
    --lobe-b: radial-gradient(ellipse 42% 30% at 56% 40%, #000 15%, transparent 100%);
  }
  .hero .d-hero { font-size: 15.5vw; }
  .steps { grid-template-columns: 1fr; }
  .story__facts { grid-template-columns: 1fr 1fr; }
}
