/* Macaron hero — assets Figma « produit du jour » */

.macaron-produit-jour {
  position: absolute;
  z-index: 30;
  left: 7%;
  bottom: 10%;
  width: min(244px, 32vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

.macaron-produit-jour:focus-visible {
  outline: 3px solid #f5b623;
  outline-offset: 6px;
  border-radius: 50%;
}

.macaron-petales,
.macaron-contenu {
  grid-area: 1 / 1;
  pointer-events: none;
}

/* Pétales blancs — rotation continue */
.macaron-petales {
  width: 100%;
  height: 100%;
  background: var(--macaron-petales) center / contain no-repeat;
  transform-origin: 50% 50%;
  animation: macaron-petales-spin 16s linear infinite;
  will-change: transform;
}

/* Contenu fixe — disque + libellé (biais −7° comme Figma) */
.macaron-contenu {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  transform: rotate(-7deg);
}

.macaron-disque,
.macaron-decouvrir,
.macaron-le,
.macaron-produit,
.macaron-fork,
.macaron-du-jour {
  position: absolute;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.macaron-disque {
  inset: 9%;
  background-image: var(--macaron-disque);
  background-size: 100% 100%;
}

/* Libellé ≈ Figma ; « le » détaché de « produit » */
.macaron-label {
  position: absolute;
  inset: 0;
  transform: scale(0.92);
  transform-origin: 50% 46%;
}

.macaron-decouvrir {
  top: 13.2%;
  left: 25.5%;
  width: 50.2%;
  height: 14.5%;
  background-image: var(--macaron-decouvrir);
}

.macaron-le {
  top: 25.3%;
  left: 39.5%;
  width: 7.9%;
  height: 11.9%;
  background-image: var(--macaron-le);
}

.macaron-produit {
  top: 31.2%;
  left: 18.4%;
  width: 64.3%;
  height: 29.5%;
  background-image: var(--macaron-produit);
}

/* Proportions mesurées sur la maquette (accueil 1:2) : textes ≈1,33× plus grands que la 1re version, fourchette ×1,24 */
.macaron-fork {
  top: 53.1%;
  left: 36.2%;
  width: 31.0%;
  height: 8.7%;
  background-image: var(--macaron-fork);
  background-size: contain;
  background-position: center;
  z-index: 2;
}

.macaron-du-jour {
  top: 57.3%;
  left: 20.1%;
  width: 61.2%;
  height: 26.6%;
  background-image: var(--macaron-du-jour);
}

.macaron-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Traits « motion » blancs — Figma quote.svg (50×47 px sur macaron 244 px), pivot ≈128° */
.macaron-motion {
  position: absolute;
  left: 101%;
  top: 17%;
  width: 20.5%;
  height: 19.5%;
  pointer-events: none;
  background: url("../img/svg/macaron/motion.svg") center / 87% 85% no-repeat;
  transform: rotate(127.76deg);
}

@keyframes macaron-petales-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .macaron-petales {
    animation: none;
    transform: none;
  }
}

@media (max-width: 768px) {
  .macaron-produit-jour {
    left: 3%;
    bottom: 29%; /* au-dessus de la zone verte « conseils » (≈25 % du hero) */
    width: min(170px, 48vw);
  }
}
