/* ==========================================================================
   Exclusivité magasin Müesli — Mustli (fond dégradé animé, sans logos)
   ========================================================================== */

@keyframes mustliStoreFond {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.mustli-store {
  --mst-color: #4B3C31;
  --mst-radius: 50px;
  --mst-speed: 1;
  --mst-text: #1E1E1E;

  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 100px 15px;
  border-radius: var(--mst-radius);
  overflow: hidden;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  color: var(--mst-text);
  background: linear-gradient(115deg, #f7a8c0, #fce9c8, #f9f1a0, #b8e8c8, #29b6f0, #f9f1a0, #f7a8c0);
  background-size: 400% 400%;
  animation: mustliStoreFond calc(7s / var(--mst-speed)) linear infinite;
}
.mustli-store *, .mustli-store *::before, .mustli-store *::after { box-sizing: border-box; }

.mustli-store__inner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

/* ---------- Logo Mustli ---------- */
.mustli-store__logo { width: 35%; max-width: 420px; margin-top: 23px; }
.mustli-store__logo img { display: block; width: 100%; height: auto; }

/* ---------- Titre / texte ---------- */
.mustli-store__title {
  margin: 0;
  font-family: inherit;
  font-size: 49px;
  font-weight: 900;
  line-height: 56px;
  color: var(--mst-color);
}
.mustli-store__text {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.5;
}
.mustli-store__text p { margin: 0; }

/* ---------- Bloc magasin ---------- */
.mustli-store__shop {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
  text-align: left;
}
.mustli-store.has-card .mustli-store__shop {
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  padding: 26px 34px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 14px 40px rgba(67, 48, 29, 0.12);
}
.mustli-store__shop-logo { flex: 0 0 auto; width: 150px; }
.mustli-store__shop-logo img { display: block; width: 100%; height: auto; }
.mustli-store__shop-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.mustli-store__shop-name {
  margin: 0;
  font-family: inherit;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--mst-color);
}
.mustli-store__shop-address { font-size: 16px; line-height: 1.45; }

/* ---------- Bouton (pilule brune, texte blanc majuscules) ---------- */
.mustli-store__btn {
  display: inline-block;
  margin-top: 8px;
  padding: 16px 34px;
  background: var(--mst-color);
  color: #fff !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  line-height: 1;
  border-radius: 999px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18), 0 12px 24px rgba(67, 48, 29, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, filter 0.35s ease;
}
.mustli-store__btn span { position: relative; z-index: 1; }
/* reflet qui balaie le bouton */
.mustli-store__btn::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -30%;
  width: 25%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-100%) skewX(-20deg);
  animation: mustliStoreShine 4s ease-in-out infinite;
  animation-delay: 2s;
}
@keyframes mustliStoreShine {
  0%, 65% { transform: translateX(-100%) skewX(-20deg); }
  100%    { transform: translateX(620%) skewX(-20deg); }
}
.mustli-store__btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 9px 0 rgba(0, 0, 0, 0.18), 0 18px 34px rgba(67, 48, 29, 0.28);
  filter: brightness(1.08);
}
.mustli-store__btn:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18), 0 6px 14px rgba(67, 48, 29, 0.2);
}

/* ---------- Apparition en cascade (déclenchée par .is-visible) ---------- */
.mustli-store__reveal {
  --mst-d: 0ms;
  opacity: 0;
  transform: translateY(40px) scale(0.94);
  transition: opacity 0.6s ease-out var(--mst-d),
              transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) var(--mst-d);
}
.mustli-store.is-visible .mustli-store__reveal,
.mustli-store.no-js .mustli-store__reveal { opacity: 1; transform: none; }

/* ---------- Animations continues (douces, pas sur les textes) ---------- */
@keyframes mustliStoreBob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-10px) rotate(1deg); }
}
@keyframes mustliStoreSpin {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50%      { transform: rotate(4deg) scale(1.05); }
}
@keyframes mustliStoreCard {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.mustli-store.is-visible .mustli-store__logo img { animation: mustliStoreBob 5s ease-in-out infinite 1s; }
.mustli-store.is-visible .mustli-store__shop-logo img { animation: mustliStoreSpin 6s ease-in-out infinite 1.4s; }
.mustli-store.is-visible.has-card .mustli-store__shop { animation: mustliStoreCard 6s ease-in-out infinite 1.6s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .mustli-store { padding: 70px 20px; }
  .mustli-store__title { font-size: 40px; line-height: 1.15; }
  .mustli-store__logo { width: 45%; }
}
@media (max-width: 767px) {
  .mustli-store { padding: 50px 15px; border-radius: calc(var(--mst-radius) * 0.6); }
  .mustli-store__logo { display: none; }
  .mustli-store__title { font-size: 32px; }
  .mustli-store__text { font-size: 16px; }
  .mustli-store__shop { flex-direction: column; text-align: center; gap: 18px; }
  .mustli-store.has-card .mustli-store__shop { padding: 24px 20px; width: 100%; }
  .mustli-store__shop-body { align-items: center; }
  .mustli-store__shop-logo { width: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  .mustli-store, .mustli-store__logo img, .mustli-store__shop-logo img, .mustli-store__shop, .mustli-store__btn::after { animation: none !important; }
  .mustli-store__reveal { opacity: 1; transform: none; transition: none; }
}
