/* Eye-catchers (homepage and menu page): floating offer sticker on the photo, ribbon on
   the Pizzas card, offer chip on the menu, highlighted title, pulsing "Commander".
   Everything stays still for visitors who ask their device for reduced motion. */

/* Sticker on the homepage photo */
/* The turning dashed ring is a square box: keep its corners inside the screen (no sideways scroll). */
.maiwand-hero { position: relative; overflow-x: clip; }
.mw-sticker { position: absolute; z-index: 1; right: 30px; bottom: 136px; width: 88px; height: 88px; pointer-events: none; }
.mw-sticker::before { position: absolute; inset: -7px; border: 2px dashed rgb(255 210 63 / 95%); border-radius: 50%; content: ''; }
.mw-sticker__inner { display: grid; place-content: center; width: 100%; height: 100%; border: 3px solid #fff; border-radius: 50%; background: #ffd23f; color: #19232e; text-align: center; box-shadow: 0 10px 24px rgb(25 35 46 / 24%); transform: rotate(-10deg); }
.mw-sticker b { display: block; font-size: 27px; font-weight: 900; letter-spacing: -1px; line-height: 1; }
.mw-sticker small { display: block; max-width: 70px; margin: 3px auto 0; font-size: 10.5px; font-weight: 800; letter-spacing: .4px; line-height: 1.1; text-transform: uppercase; }
@media (min-width: 601px) {
  .mw-sticker { top: 44px; right: 7%; bottom: auto; width: 112px; height: 112px; }
  .mw-sticker b { font-size: 34px; }
  .mw-sticker small { max-width: 84px; font-size: 12px; }
}
@media (min-width: 1025px) {
  .mw-sticker { top: 56px; right: 9%; width: 124px; height: 124px; }
  .mw-sticker b { font-size: 38px; }
}
/* Wednesday offer: « Tous les mercredis / −50% / sur la 2e pizza » (a little bigger, three lines). */
.mw-sticker--offer { bottom: 128px; width: 106px; height: 106px; }
.mw-sticker--offer b { margin: 1px 0; font-size: 31px; }
.mw-sticker--offer small { max-width: 84px; margin: 0 auto; font-size: 9.5px; letter-spacing: .2px; }
.mw-sticker--offer .mw-sticker__top { color: #b71f22; }
@media (min-width: 601px) {
  .mw-sticker--offer { width: 134px; height: 134px; }
  .mw-sticker--offer b { font-size: 40px; }
  .mw-sticker--offer small { max-width: 104px; font-size: 11.5px; }
}
@media (min-width: 1025px) {
  .mw-sticker--offer { width: 150px; height: 150px; }
  .mw-sticker--offer b { font-size: 46px; }
  .mw-sticker--offer small { max-width: 116px; font-size: 12.5px; }
}

/* Highlight behind "pizza préférée" */
.maiwand-hero h1 span { background: linear-gradient(transparent 64%, rgb(255 210 63 / 65%) 64%, rgb(255 210 63 / 65%) 92%, transparent 92%) no-repeat 0 0 / 100% 100%; }

/* Ribbon on the Pizzas card */
.maiwand-category-card { position: relative; }
.mw-ribbon { position: absolute; z-index: 1; top: 8px; left: 8px; max-width: calc(100% - 16px); padding: 4px 9px; border-radius: 999px; background: #ffd23f; color: #19232e; font-size: 11.5px; font-weight: 800; line-height: 1.2; box-shadow: 0 3px 10px rgb(0 0 0 / 20%); transform: rotate(-3deg); transform-origin: left center; }

/* Offer chip under "Pizzas" on the menu page */
.mw-offer-chip { display: inline-flex; align-items: center; gap: 7px; margin: 4px 0 10px; padding: 6px 12px; overflow: hidden; border-radius: 999px; background: #fff3c4; color: #6b4300; font-size: 13px; font-weight: 800; line-height: 1.25; }
.mw-offer-chip::before { flex: none; content: '★'; color: #e0a100; }
.mw-offer-chip.is-today { background: #ffd23f; color: #19232e; }
.mw-offer-chip.is-today::before { color: #d62828; }

@media (prefers-reduced-motion: no-preference) {
  .mw-sticker::before { animation: mw-spin 16s linear infinite; }
  .mw-sticker__inner { animation: mw-float 4.6s ease-in-out infinite; }
  .maiwand-hero h1 span { animation: mw-title-mark .9s .35s cubic-bezier(.3, .7, .3, 1) both; }
  .maiwand-hero__cta { animation: mw-pulse 2.6s ease-out 1.2s infinite; }
  .mw-ribbon { animation: mw-wiggle 5s ease-in-out 1s infinite; }
  .mw-offer-chip { background-image: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / 65%) 50%, transparent 65%); background-repeat: no-repeat; background-size: 250% 100%; animation: mw-shine 3.8s ease-in-out infinite; }
  .maiwand-category-card img { transition: transform .4s ease; }
  .maiwand-category-card:hover img, .maiwand-category-card:focus-visible img { transform: scale(1.06); }
}
@keyframes mw-spin { to { transform: rotate(360deg); } }
@keyframes mw-float {
  0%, 100% { transform: translateY(0) rotate(-10deg); }
  50% { transform: translateY(-9px) rotate(-4deg); }
}
@keyframes mw-title-mark { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes mw-pulse {
  0% { box-shadow: 0 0 0 0 rgb(214 40 40 / 45%); }
  70% { box-shadow: 0 0 0 14px rgb(214 40 40 / 0%); }
  100% { box-shadow: 0 0 0 0 rgb(214 40 40 / 0%); }
}
@keyframes mw-wiggle {
  0%, 84%, 100% { transform: rotate(-3deg) scale(1); }
  88% { transform: rotate(3deg) scale(1.07); }
  92% { transform: rotate(-5deg) scale(1.07); }
  96% { transform: rotate(1deg) scale(1); }
}
@keyframes mw-shine { 0%, 55% { background-position: 130% 0; } 100% { background-position: -30% 0; } }

/* Countdown in the chip under « Pizzas » */
.mw-offer-chip .mw-countdown { margin-left: 2px; color: #b71f22; font-weight: 800; font-variant-numeric: tabular-nums; }
.mw-offer-chip .mw-countdown[hidden] { display: none; }

/* « Plus qu’un clic ! » over the Ajouter button when the mouse is on a dish */
.mw-item__action { position: relative; }
.mw-item__nudge { position: absolute; z-index: 2; right: 0; bottom: calc(100% + 8px); padding: 5px 9px; border-radius: 8px; background: #19232e; color: #ffffff; font-size: 12px; font-weight: 800; line-height: 1.2; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateY(4px); }
.mw-item__nudge::after { position: absolute; right: 22px; bottom: -5px; width: 10px; height: 10px; background: #19232e; content: ''; transform: rotate(45deg); }
.mw-item__nudge[data-mw-today]:not([data-mw-today=""]) { background: #b71f22; }
.mw-item__nudge[data-mw-today]:not([data-mw-today=""])::after { background: #b71f22; }

/* Mouse over (computers only; phones have no hover) */
@media (hover: hover) and (pointer: fine) {
  .mw-item:not(.is-unavailable):hover .mw-item__nudge, .mw-item:not(.is-unavailable):focus-within .mw-item__nudge { opacity: 1; transform: none; }
  .mw-item:not(.is-unavailable):hover .mw-add:not(.is-disabled) { border-color: var(--mw-red, #d62828); background: var(--mw-red, #d62828); color: #ffffff !important; }
  .maiwand-hero__cta:hover [aria-hidden="true"], .maiwand-info__cta .maiwand-button:hover [aria-hidden="true"], .mw-cartbar__link:hover .mw-cartbar__cta [aria-hidden="true"], .maiwand-category-card:hover .maiwand-category-card__arrow { transform: translateX(5px); }
  .maiwand-modes__button:hover .maiwand-icon, .mw-modes__button:hover .maiwand-icon { transform: translateY(-2px) scale(1.1); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .mw-item__nudge { transition: opacity .18s ease, transform .18s ease; }
  .mw-item { transition: transform .2s ease, box-shadow .2s ease; }
  .mw-item:not(.is-unavailable):hover { transform: translateY(-3px); }
  .mw-item__image img { transition: transform .4s ease; }
  .mw-item:not(.is-unavailable):hover .mw-item__image img { transform: scale(1.07); }
  .mw-item:not(.is-unavailable):hover .mw-add__plus { display: inline-block; animation: mw-turn .45s ease; }
  .maiwand-hero__cta [aria-hidden="true"], .maiwand-info__cta .maiwand-button [aria-hidden="true"], .mw-cartbar__cta [aria-hidden="true"], .maiwand-category-card__arrow, .mw-modes__button .maiwand-icon { display: inline-block; transition: transform .2s ease; }
  /* A light sweep across the main buttons. */
  .maiwand-hero__cta, .maiwand-info__cta .maiwand-button { position: relative; overflow: hidden; }
  .maiwand-hero__cta::after, .maiwand-info__cta .maiwand-button::after { position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / 35%), transparent); content: ''; pointer-events: none; transform: skewX(-18deg); }
  .maiwand-hero__cta:hover::after, .maiwand-info__cta .maiwand-button:hover::after { animation: mw-sweep .7s ease; }
  .maiwand-extra:hover .maiwand-icon { animation: mw-bounce .55s ease; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) and (min-width: 700px) {
  .mw-item:not(.is-unavailable):hover { box-shadow: 0 14px 28px rgb(25 35 46 / 10%); }
}
@keyframes mw-turn { from { transform: rotate(0); } to { transform: rotate(180deg); } }
@keyframes mw-sweep { from { left: -60%; } to { left: 130%; } }
@keyframes mw-bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px); } 70% { transform: translateY(1px); } }
