/* Renaflow : sections de la page d'accueil */

/* Emplacement photo : une image se glisse via --photo, le dégradé reste en secours */
.photo {
  background-image:
    var(--photo, linear-gradient(transparent, transparent)),
    radial-gradient(70% 45% at 28% 18%, rgba(216, 163, 174, 0.55), transparent 70%),
    linear-gradient(165deg, #8a2c63 0%, #5a0e3a 45%, #2a021b 100%);
  background-size: cover;
  background-position: center;
}

.arch img {
  object-position: 50% 30%;
}

.photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero : asymétrique, texte à gauche, arche à droite */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100dvh - 100px);
  padding-block: 3rem 4rem;
}

.hero__copy {
  display: grid;
  gap: 1.8rem;
  justify-items: start;
}

.hero__copy .lead {
  max-width: 44ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero__visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5.4;
  max-height: min(76dvh, 640px);
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 12% -14% -6% 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 163, 174, 0.7), transparent 68%);
  filter: blur(36px);
}

/* Mobile : le halo reste dans l'écran (il dépassait de 30 px à droite et rendait la page déplaçable sur le côté) */
@media (max-width: 700px) {
  .hero__visual::before {
    inset: 12% 0 -6% 18%;
  }
}

.arch {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--r-pill) var(--r-pill) var(--r-card) var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.flow-lines path {
  fill: none;
  stroke: #fbf6f2;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 6 14;
  opacity: 0.35;
}

.flow-lines path:nth-child(2) {
  stroke: var(--petal);
  opacity: 0.55;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * {
    animation: rise 1s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 110ms);
  }

  .arch {
    animation: rise 1.2s var(--ease) 0.2s both, breathe 9s ease-in-out 1.4s infinite alternate;
  }

  /* La lymphe circule : les traits défilent lentement le long des courbes */
  .flow-lines path {
    animation: stream 14s linear infinite;
  }

  .flow-lines path:nth-child(2) {
    animation-duration: 20s;
    animation-direction: reverse;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
  }

  @keyframes breathe {
    to {
      transform: translateY(-10px);
    }
  }

  @keyframes stream {
    to {
      stroke-dashoffset: -400;
    }
  }
}

/* Repères : trois faits, décalés en escalier, sans cartes */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-bottom: clamp(3rem, 8vw, 7rem);
}

.stat:nth-child(2) {
  margin-top: 3rem;
}

.stat:nth-child(3) {
  margin-top: 6rem;
}

.stat__num {
  font: 700 clamp(3rem, 7.5vw, 6.4rem)/1 var(--font-display);
  letter-spacing: -0.05em;
  color: var(--ink);
}

.stat__num small {
  font-size: clamp(1.2rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--em);
}

.stat p {
  margin-top: 0.8rem;
  max-width: 28ch;
  color: var(--ink);
}

/* Au scroll, chaque repère « fait la mise au point » : il sort d'un flou léger en remontant doucement, puis son texte le suit */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stat__num,
    .stat p {
      animation: stat-focus cubic-bezier(0.22, 0.61, 0.36, 1) both;
      animation-timeline: view();
    }

    .stat__num {
      animation-range: entry 0% cover 60%;
    }

    .stat p {
      animation-range: entry 25% cover 75%;
    }

    @keyframes stat-focus {
      from {
        opacity: 0.12;
        filter: blur(8px);
        transform: translateY(22px);
      }
    }
  }
}

/* Le flux : texte collant à gauche, étapes reliées par un fil qui se dessine au scroll */
.flow {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.flow__intro {
  position: sticky;
  top: 120px;
  align-self: start;
  display: grid;
  gap: 1.4rem;
}

.flow__steps {
  --pad: clamp(3.4rem, 6vw, 5rem);
  position: relative;
  display: grid;
  gap: clamp(4rem, 16vh, 8rem);
  padding-left: var(--pad);
}

.flow__steps::before,
.flow__steps::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  border-radius: 2px;
}

.flow__steps::before {
  background: var(--line);
}

.flow__steps::after {
  background: var(--em);
  transform-origin: top;
}

.step {
  position: relative;
  display: grid;
  gap: 0.9rem;
}

.step::before {
  content: "";
  position: absolute;
  left: calc(var(--pad) * -1);
  top: 0.55rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--em);
  background: var(--em);
}

.step h3 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 600;
}

.step p {
  color: var(--ink-soft);
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .flow__steps::after {
      transform: scaleY(0);
      animation: draw linear both;
      animation-timeline: view();
      animation-range: cover 20% cover 80%;
    }

    .step::before {
      animation: node linear both;
      animation-timeline: view();
      animation-range: entry 55% cover 40%;
    }

    @keyframes draw {
      to {
        transform: scaleY(1);
      }
    }

    @keyframes node {
      from {
        background: var(--bg);
        border-color: var(--line);
      }
    }
  }
}

/* Soins */
.soins__head {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.soins__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  justify-items: start;
  max-width: 100%;
}

.soins__controls > .chips {
  max-width: 100%;
}

/* Bandeau carte cadeau */
.gift-wrap {
  padding-block: 0 clamp(3rem, 7vw, 6rem);
}

.gift {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem 3rem;
  padding: 1.6rem;
  border-radius: var(--r-card);
  background: var(--bg-soft);
}

.gift h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

@media (min-width: 900px) {
  .gift {
    padding: 2.4rem 3rem;
  }
}

/* Cures : le seul grand bloc de couleur de la page */
.cures {
  padding-inline: var(--gutter);
}

.cures__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 2rem 1.4rem;
  border-radius: 32px;
  background: var(--block-bg);
  color: var(--block-ink);
}

@media (min-width: 900px) {
  .cures__inner {
    padding: 4.5rem 4rem;
    border-radius: 56px;
  }
}

.cures__intro {
  display: grid;
  gap: 1.4rem;
  align-content: start;
}

.cures .eyebrow {
  color: var(--apricot);
}

.cures .lead,
.cures p {
  color: var(--block-soft);
}

.cures .chips {
  flex-wrap: wrap;
  overflow: visible;
}

.cures .chips button,
.cures .segmented button {
  color: var(--block-ink);
}

.cures .chips button {
  border-color: rgba(251, 246, 242, 0.3);
}

.cures .chips button:hover {
  background: rgba(251, 246, 242, 0.1);
}

.cures .chips button[aria-pressed="true"] {
  background: #fbf6f2;
  border-color: #fbf6f2;
  color: var(--prune);
}

.cures .segmented {
  background: rgba(251, 246, 242, 0.1);
  border-color: rgba(251, 246, 242, 0.25);
}

.cures .segmented button[aria-pressed="true"] {
  background: #fbf6f2;
  color: var(--prune);
}

.cures .segmented button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cures__options {
  display: grid;
  gap: 1rem;
  justify-items: start;
  max-width: 100%;
}

.cure {
  display: grid;
  gap: 1.2rem;
  align-content: center;
}

.cure__price {
  font: 700 clamp(4.2rem, 11vw, 9rem)/0.95 var(--font-display);
  letter-spacing: -0.06em;
  color: #fbf6f2;
}

.cure__pack {
  font: 400 clamp(1.3rem, 2.4vw, 1.9rem)/1.2 var(--font-display);
  color: var(--apricot);
}

.cure__figures {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.4rem;
}

.cure__figures dt {
  font-size: 0.85rem;
  color: var(--block-soft);
}

.cure__figures dd {
  font: 600 1.5rem/1.2 var(--font-display);
}

.cure__terms {
  display: grid;
  gap: 0.5rem;
  color: var(--block-soft);
}

.cure__terms li {
  padding-left: 1.4rem;
  position: relative;
}

.cure__terms li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--apricot);
  font-weight: 700;
}

.cures .btn {
  --btn-bg: var(--apricot);
  --btn-ink: var(--prune);
}

.cure__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
}

.cure__actions a:not(.btn) {
  color: var(--block-ink);
  font-weight: 600;
  text-underline-offset: 5px;
}

/* A propos : photo décalée, texte à droite */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.about__photo {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-top: clamp(0rem, 6vw, 5rem);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}

.about__text {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
}

.about__quote {
  margin: 1rem 0 0;
  font: 300 clamp(1.5rem, 2.6vw, 2.2rem)/1.2 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--em);
}

.about__quote cite {
  display: block;
  margin-top: 0.8rem;
  font: 600 1rem var(--font-body);
  letter-spacing: 0;
  color: var(--ink);
}

/* Salons */
.salons__head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.salons__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.salon {
  display: grid;
  gap: 1.4rem;
  align-content: start;
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: var(--r-card);
  background: var(--bg-soft);
}

.salon:nth-child(2) {
  margin-top: clamp(0rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line);
}

.salon h3 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.salon address {
  font-style: normal;
  color: var(--ink-soft);
}

.salon__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Questions */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.faq-wrap__intro {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 1.2rem;
  justify-items: start;
}

/* Invitation finale */
.invite {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.invite__copy {
  display: grid;
  gap: 1.8rem;
  justify-items: start;
}

.invite__photo {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  justify-self: end;
  object-fit: cover;
  border-radius: var(--r-pill) var(--r-pill) var(--r-card) var(--r-card);
  box-shadow: var(--shadow);
}

.invite h2 {
  font-size: clamp(2.6rem, 7vw, 6rem);
  max-width: 14ch;
}

.invite__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
}

.invite__actions a:not(.btn) {
  font-weight: 600;
  text-underline-offset: 5px;
}

/* Mobile : tout passe en une colonne */
@media (max-width: 900px) {
  .hero,
  .flow,
  .cures__inner,
  .about,
  .invite,
  .faq-wrap {
    grid-template-columns: 1fr;
  }

  .invite__photo {
    justify-self: start;
    max-width: 320px;
  }

  .hero {
    min-height: 0;
    padding-block: 2rem 3rem;
  }

  .hero__visual {
    justify-self: center;
    max-height: none;
    max-width: 380px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat:nth-child(2),
  .stat:nth-child(3) {
    margin-top: 0;
  }

  .flow__intro,
  .faq-wrap__intro {
    position: static;
  }

  .about__photo {
    margin-top: 0;
    max-width: 420px;
  }

  .salons__grid {
    grid-template-columns: 1fr;
  }

  .salon:nth-child(2) {
    margin-top: 0;
  }
}
