/* Renaflow : page Miraclem®.
   Même univers que le reste du site, avec l'abricot (la « lumière » du soin) comme signature : pastilles, bandeau défilant,
   cartes teintées, halo du bloc des offres. La prune reste réservée au bloc des offres. */

:root {
  --mz-apricot-soft: #fce3da;
  --mz-petal-soft: #f6e1e5;
  --mz-apricot-deep: #d9775f;
}

main ::selection {
  background: var(--apricot);
  color: var(--prune);
}

/* Petit trait abricot au-dessus des titres de section */
.mz-section h2::before,
.mz-intro h2::before,
.mz-offers h2::before,
.mz-final__block h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 6px;
  margin-bottom: 1rem;
  border-radius: 3px;
  background: var(--apricot);
}

.mz-section {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.mz-section h2,
.mz-intro h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  text-wrap: balance;
}

.mz-sub {
  font: 600 clamp(1.05rem, 1.5vw, 1.25rem) / 1.35 var(--font-display);
  color: var(--em);
}

.mz-note {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Hero ---------- */
.mz-hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--mz-apricot-soft) 62%, var(--apricot) 100%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.mz-hero__text {
  display: grid;
  gap: 0.9rem;
  max-width: 52ch;
  color: var(--ink-soft);
}

.mz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mz-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--mz-apricot-soft);
  color: var(--prune);
  font-size: 0.9rem;
  font-weight: 600;
}

.mz-chips li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--apricot);
  box-shadow: 0 0 0 3px rgba(245, 171, 151, 0.35);
}

.mz-hero .hero__visual {
  position: relative;
}

.mz-badge {
  position: absolute;
  left: 0;
  bottom: 12%;
  display: grid;
  place-items: center;
  align-content: center;
  width: 8.4rem;
  height: 8.4rem;
  border-radius: 50%;
  background: var(--apricot);
  color: var(--prune);
  text-align: center;
  box-shadow: 0 18px 40px -16px rgba(67, 4, 44, 0.45);
  transform: rotate(-8deg);
}

.mz-badge strong {
  font: 700 3rem / 1 var(--font-display);
  letter-spacing: -0.04em;
}

.mz-badge span {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

/* ---------- Bandeau défilant ---------- */
/* Dans la largeur du site, aux bords arrondis comme les cartes et les boutons, fondu sur les côtés */
.mz-ribbon {
  overflow: hidden;
  margin-block: clamp(0.5rem, 2vw, 1.5rem);
  padding-block: 0.9rem;
  border-radius: 999px;
  background: var(--mz-apricot-soft);
  color: var(--prune);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.mz-ribbon__track {
  display: flex;
  width: max-content;
  animation: mz-scroll 48s linear infinite;
}

.mz-ribbon ul {
  display: flex;
  flex-shrink: 0;
}

.mz-ribbon li {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font: 600 clamp(1.05rem, 2vw, 1.5rem) var(--font-display);
  letter-spacing: -0.01em;
}

.mz-ribbon li::after {
  content: "";
  width: 0.7rem;
  height: 0.9rem;
  margin-inline: 1.6rem;
  background: var(--apricot);
  clip-path: polygon(50% 0, 100% 62%, 88% 88%, 50% 100%, 12% 88%, 0 62%);
}

@keyframes mz-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Introduction ---------- */
.mz-intro {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-block: clamp(2rem, 5vw, 4rem);
}

.mz-intro__text {
  display: grid;
  gap: 1rem;
  max-width: 58ch;
}

.mz-intro__text p {
  color: var(--ink-soft);
}

.mz-quote {
  position: relative;
  margin-top: 0.8rem;
  padding: 1.4rem 1.6rem 1.4rem 2.6rem;
  border-radius: 24px;
  background: var(--mz-apricot-soft);
  font: 500 clamp(1.3rem, 2.4vw, 1.8rem) / 1.25 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--prune);
  text-wrap: balance;
}

.mz-quote::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 1.4rem;
  bottom: 1.4rem;
  width: 4px;
  border-radius: 2px;
  background: var(--apricot);
}

.mz-tech {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--r-card);
  background: var(--bg-soft);
  border-top: 6px solid var(--apricot);
}

.mz-tech h3 {
  margin-bottom: 0.8rem;
}

/* Listes avec une goutte */
.mz-list {
  display: grid;
  gap: 0.7rem;
}

.mz-list li {
  position: relative;
  padding-left: 1.9rem;
}

.mz-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.95rem;
  height: 1.15rem;
  background: var(--mz-apricot-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C12 2 5 10 5 15a7 7 0 0 0 14 0C19 10 12 2 12 2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C12 2 5 10 5 15a7 7 0 0 0 14 0C19 10 12 2 12 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Panneaux et cartes ---------- */
.mz-panel {
  display: grid;
  gap: 1.6rem;
  padding: clamp(1.6rem, 5vw, 4rem);
  border-radius: clamp(28px, 5vw, 56px);
  background: var(--bg-soft);
}

.mz-panel--paper {
  background: var(--surface);
  border: 1.5px solid var(--line);
}

.mz-grid {
  display: grid;
  gap: 1rem;
}

.mz-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mz-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mz-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* « Fait pour vous » : cartes numérotées */
#pour-qui .mz-grid--3 {
  counter-reset: pour;
}

.mz-card {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 1.4rem 1.5rem;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#pour-qui .mz-card {
  counter-increment: pour;
  border: 0;
}

#pour-qui .mz-card::before {
  content: counter(pour, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--apricot);
  color: var(--prune);
  font: 700 0.95rem var(--font-display);
}

#pour-qui .mz-card:nth-child(3n + 2)::before {
  background: var(--petal);
}

.mz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -22px rgba(67, 4, 44, 0.4);
}

.mz-card h3 {
  font-size: 1.25rem;
}

.mz-card p {
  color: var(--ink-soft);
}

.mz-card--accent {
  background: var(--apricot);
  border-color: var(--apricot);
}

.mz-card--accent p {
  color: var(--prune);
}

/* ---------- Profils : carrousel horizontal ---------- */
.mz-profiles {
  display: grid;
  gap: 2rem;
}

.mz-profiles__head {
  display: grid;
  gap: 0.8rem;
  max-width: 62ch;
}

.mz-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.4rem 0.2rem 1.4rem;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--apricot) transparent;
}

.mz-carousel:focus-visible {
  outline: 2px solid var(--em);
  outline-offset: 4px;
  border-radius: 12px;
}

.mz-profile {
  flex: 0 0 min(320px, 82%);
  display: grid;
  gap: 0.8rem;
  align-content: start;
  padding: 1.6rem 1.6rem 1.8rem;
  border-radius: 28px;
  background: var(--bg-soft);
  scroll-snap-align: start;
}

.mz-profile--1 {
  background: var(--mz-apricot-soft);
}

.mz-profile--2 {
  background: var(--mz-petal-soft);
}

.mz-profile__n {
  font: 700 2.6rem / 1 var(--font-display);
  letter-spacing: -0.04em;
  color: var(--mz-apricot-deep);
  opacity: 0.55;
}

.mz-profile blockquote {
  margin: 0;
  font: 600 1.2rem / 1.3 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--prune);
}

.mz-profile p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.mz-closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
}

.mz-closing p {
  font-weight: 600;
}

.mz-scroll-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
}

.mz-scroll-hint p {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--prune);
}

.mz-scroll-hint p span {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--mz-apricot-soft);
}

.mz-scroll-hint__btns {
  display: flex;
  gap: 0.5rem;
}

.mz-arrow {
  width: 2.9rem;
  height: 2.9rem;
  border: 0;
  border-radius: 50%;
  background: var(--apricot);
  color: var(--prune);
  font: 700 1.2rem var(--font-body);
  cursor: pointer;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.mz-arrow:hover:not(:disabled) {
  transform: scale(1.08);
}

.mz-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ---------- Pourquoi, six axes ---------- */
.mz-why {
  display: grid;
  gap: 1rem;
  max-width: 64ch;
}

.mz-why p {
  color: var(--ink-soft);
}

.mz-why .mz-lead {
  font: 600 clamp(1.3rem, 2.4vw, 1.8rem) / 1.25 var(--font-display);
  color: var(--ink);
}

.mz-axes {
  display: grid;
  gap: 1.6rem;
}

.mz-axes__head {
  display: grid;
  gap: 0.5rem;
}

.mz-axes__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: axe;
}

.mz-axes__list li {
  counter-increment: axe;
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  min-height: 12rem;
  padding: 1.6rem 1.5rem;
  border-radius: 28px;
  background: var(--bg-soft);
  transition: transform 0.35s var(--ease);
}

.mz-axes__list li:nth-child(4n + 2),
.mz-axes__list li:nth-child(4n + 3) {
  background: var(--mz-apricot-soft);
}

.mz-axes__list li:hover {
  transform: translateY(-4px);
}

/* Grand numéro en filigrane */
.mz-axes__list li::before {
  content: counter(axe, decimal-leading-zero);
  position: absolute;
  right: 1rem;
  top: 0.2rem;
  font: 700 4.6rem / 1 var(--font-display);
  letter-spacing: -0.06em;
  color: var(--apricot);
  opacity: 0.7;
}

.mz-axes__list h3 {
  position: relative;
  max-width: 14ch;
  font-size: 1.2rem;
}

.mz-axes__list p {
  position: relative;
  margin-top: auto;
  color: var(--ink-soft);
}

/* ---------- Accompagnement ---------- */
.mz-care {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.mz-care__photo {
  position: relative;
  isolation: isolate;
  max-width: 440px;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}

.mz-care__photo::before {
  content: "";
  position: absolute;
  inset: 8% -8% -8% 8%;
  z-index: -1;
  border-radius: var(--r-card);
  background: var(--apricot);
}

.mz-care__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: var(--r-card);
}

.mz-care__text {
  display: grid;
  gap: 1.1rem;
  max-width: 60ch;
}

.mz-care__text div {
  display: grid;
  gap: 0.8rem;
  color: var(--ink-soft);
}

/* Les deux blocs côte à côte, puis « Entretien & suivi » : tous à la pleine largeur de la page */
.mz-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mz-tools,
.mz-benefits,
.mz-follow {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--r-card);
  background: var(--bg-soft);
}

.mz-tools {
  border-left: 6px solid var(--apricot);
}

.mz-tools p,
.mz-follow p {
  color: var(--ink-soft);
}

.mz-result {
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: var(--apricot);
  color: var(--prune);
}

/* ---------- Prestations ---------- */
.mz-presta {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.mz-presta:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -26px rgba(67, 4, 44, 0.5);
}

.mz-presta__img {
  position: relative;
}

.mz-presta__img img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  object-position: 50% 35%;
}

.mz-presta__price {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--apricot);
  color: var(--prune);
  font: 700 1.05rem var(--font-display);
  box-shadow: 0 8px 18px -8px rgba(67, 4, 44, 0.5);
}

.mz-presta__body {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: 1.2rem 1.3rem 1.4rem;
}

.mz-presta__body h3 {
  font-size: 1.2rem;
}

.mz-presta__body p {
  color: var(--ink-soft);
}

/* Cartes de même hauteur : le bouton reste en bas, quelle que soit la longueur du texte */
.mz-grid--4 {
  align-items: stretch;
}

.mz-presta {
  height: 100%;
}

.mz-presta__body {
  grid-template-rows: auto 1fr auto auto;
}

.mz-presta__body .btn {
  justify-self: start;
  margin-top: 0.4rem;
}

/* Le prix est déjà sur la photo : on ne le répète pas dans la ligne de durée */
.mz-presta__meta strong {
  display: none;
}

/* ---------- Offres : le seul bloc prune de la page ---------- */
.mz-offers {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: 2rem;
  padding: clamp(1.8rem, 5vw, 4.5rem);
  border-radius: clamp(32px, 5vw, 56px);
  background: var(--block-bg);
  color: var(--block-ink);
}

.mz-offers::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -10%;
  top: -30%;
  width: min(60vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 171, 151, 0.55), rgba(245, 171, 151, 0) 65%);
}

.mz-offers__head {
  display: grid;
  gap: 0.8rem;
  max-width: 62ch;
}

.mz-offers__head p {
  color: var(--block-soft);
}

.mz-offers__head .mz-offers__tag {
  color: var(--apricot);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.mz-offer {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 28px;
  background: var(--bg);
  color: var(--ink);
}

.mz-offer__label {
  justify-self: start;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: var(--apricot);
  color: var(--prune);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.mz-offer h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

.mz-offer__tag {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.mz-offer ul {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.1rem;
  list-style: disc;
}

.mz-offer__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  font: 700 clamp(2.4rem, 5vw, 3.4rem) / 1 var(--font-display);
  letter-spacing: -0.04em;
}

.mz-offer__price small {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--mz-apricot-soft);
  font: 700 0.9rem var(--font-body);
  letter-spacing: 0;
  color: var(--prune);
}

/* ---------- Contre-indications ---------- */
.mz-contra {
  display: grid;
  gap: 1rem;
}

.mz-contra__box {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: 24px;
  background: var(--bg-soft);
}

.mz-contra__box--warm {
  background: var(--mz-apricot-soft);
}

.mz-contra__box--rose {
  background: var(--mz-petal-soft);
}

.mz-contra h3 {
  font-size: 1.3rem;
}

/* ---------- FAQ ---------- */
.mz-faq {
  max-width: 900px;
}

.mz-faq__head--sub {
  margin-top: 1rem;
}

/* ---------- Conclusion ---------- */
.mz-final {
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.mz-final__block {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(1.8rem, 5vw, 4.5rem);
  border-radius: clamp(32px, 5vw, 56px);
  background: linear-gradient(135deg, var(--mz-apricot-soft), var(--mz-petal-soft));
}

.mz-final__block h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  text-wrap: balance;
}

.mz-final__text {
  display: grid;
  gap: 0.9rem;
  max-width: 56ch;
  color: var(--ink-soft);
}

.mz-final__text a:not(.btn) {
  color: var(--em);
  font-weight: 600;
  text-underline-offset: 4px;
}

.mz-signature {
  color: var(--ink);
}

.mz-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.6rem;
}

/* ---------- Largeur du texte ----------
   Les blocs prennent toute la largeur de la page : le texte à l'intérieur fait de même (le réglage de 62 caractères
   du site est levé ici), sauf dans les colonnes déjà étroites (introduction, accompagnement, conclusion). */
.mz-section p,
.mz-panel p,
.mz-profiles p,
.mz-offers p,
.mz-faq p,
.mz-faq summary {
  max-width: none;
}

.mz-profiles__head,
.mz-why,
.mz-offers__head,
.mz-note,
.mz-faq,
.mz-tools,
.mz-benefits,
.mz-follow {
  max-width: none;
}

/* ---------- Adaptation ---------- */
@media (max-width: 980px) {
  .mz-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mz-grid--3,
  .mz-axes__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mz-duo,
  .mz-intro,
  .mz-care,
  .mz-final__block,
  .mz-grid--2,
  .mz-grid--3,
  .mz-grid--4,
  .mz-axes__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .mz-care__photo {
    max-width: calc(100% - 1.4rem);
    aspect-ratio: 4 / 3.4;
  }

  .mz-badge {
    width: 6.8rem;
    height: 6.8rem;
  }

  .mz-badge strong {
    font-size: 2.3rem;
  }

  .mz-badge span {
    font-size: 0.68rem;
  }

  .mz-axes__list li {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mz-ribbon__track {
    animation: none;
  }

  .mz-card,
  .mz-presta,
  .mz-axes__list li {
    transition: none;
  }
}

/* ---------- Avant / après : photos en hauteur, cadre 4:5 (sans recadrage serré) ---------- */
.ba__frame[data-case^="mz"] {
  aspect-ratio: 4 / 5;
  max-width: 560px;
  justify-self: center;
  width: 100%;
}

.ba__frame[data-case^="mz"] .ba__img {
  object-position: 50% 50%;
}

.mz-offer__price s {
  font: 500 1.1rem var(--font-body);
  letter-spacing: 0;
  color: var(--ink-soft);
}
