/* ================================================================
   MOXIE HOME — Section « Sonnette vélo Mili MiTag » (maquette), même construction que la MagSafe.
   La scène est en container-type: size : elle a TOUJOURS une hauteur explicite.
   ================================================================ */
#moxie-sonnette *, #moxie-sonnette *::before, #moxie-sonnette *::after { box-sizing: border-box; }
#moxie-sonnette { min-height: 0; max-height: none; overflow: visible; }   /* le thème limite la hauteur des sections : sinon la barre d'achat est coupée */
#moxie-sonnette { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); overflow-x: clip; line-height: normal; }
#moxie-sonnette h2, #moxie-sonnette h3 { font-family: inherit; color: inherit; text-transform: none; }
#moxie-sonnette [hidden] { display: none !important; }
#moxie-sonnette { --encre: #1d1d1f; --gris: #6e6e73; --fond: #fbfbfd;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--fond); color: var(--encre); padding: 0 0 40px; -webkit-font-smoothing: antialiased; }
#moxie-sonnette .so-scene { position: relative; width: 100%; height: min(56.25vw, 86svh); overflow: hidden; background: var(--fond); container-type: size; }

/* le produit : la vraie photo découpée en trois calques (collier, traceur, cloche) */
#moxie-sonnette .so-produit { position: absolute; left: 50%; top: 55%; height: 92cqh; aspect-ratio: 1; translate: -50% -50%; z-index: 2; opacity: 0; }
#moxie-sonnette .so-produit canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#moxie-sonnette .so-traceur { filter: drop-shadow(0 0 0 rgba(80,200,255,0)); }
#moxie-sonnette .so-cloche, #moxie-sonnette .so-reflet { transform-origin: 47% 28%; }
/* reflet qui balaie la cloche quand elle tourne (masqué par la forme de la cloche) */
#moxie-sonnette .so-reflet { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: linear-gradient(100deg, transparent 38%, rgba(255,255,255,.55) 48%, rgba(255,255,255,.85) 50%, rgba(255,255,255,.55) 52%, transparent 62%) 130% 0 / 60% 100% no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; mix-blend-mode: screen; }
/* flèche du sens de vissage + son étiquette */
#moxie-sonnette .so-fleche { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; overflow: visible; transform-origin: 45% 37%; }
#moxie-sonnette .so-sens { position: absolute; left: 73%; top: 31%; font-size: clamp(13px, 2.4cqh, 20px); font-weight: 600; color: #0071e3; opacity: 0; white-space: nowrap; }

/* le tag seul (plan « Deux usages ») */
#moxie-sonnette .so-tag { position: absolute; z-index: 2; left: 50%; top: 58%; width: 34cqh; height: auto; translate: -50% -50%; opacity: 0; filter: drop-shadow(0 1.5cqh 2.5cqh rgba(0,0,0,.22)); }
/* ondes de localisation, centrées sur le traceur */
#moxie-sonnette .so-ondes { position: absolute; left: 50%; top: 52%; width: 0; height: 0; opacity: 0; }
#moxie-sonnette .so-ondes i { position: absolute; left: 0; top: 0; width: 80cqh; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: .5cqh solid #34c759; opacity: 0; }

/* la photo dans l'eau, plein cadre */
#moxie-sonnette .so-eau { position: absolute; inset: 0; z-index: 1; opacity: 0; overflow: hidden; }
#moxie-sonnette .so-eau canvas { position: absolute; left: 50%; bottom: -3cqh; width: max(100cqw, 100cqh); aspect-ratio: 1; translate: -50% 0; transform-origin: 50% 80%; }

#moxie-sonnette .so-texte { position: absolute; z-index: 3; left: 0; right: 0; top: 7cqh; text-align: center; padding-inline: 6cqw; opacity: 0; pointer-events: none; }
#moxie-sonnette .so-texte.so-gauche { right: auto; left: 7cqw; top: 50%; translate: 0 -50%; text-align: left; padding: 0; max-width: 40cqw; }
#moxie-sonnette .so-texte.so-haut { top: 12cqh; translate: none; }
#moxie-sonnette .so-texte h2, #moxie-sonnette .so-texte h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
#moxie-sonnette .so-texte h2 { font-size: clamp(44px, 12cqmin, 124px); }
#moxie-sonnette .so-texte h3 { font-size: clamp(32px, 9cqmin, 92px); }
#moxie-sonnette .so-texte p { margin: .45em 0 0; font-size: clamp(17px, 3.4cqmin, 28px); font-weight: 500; letter-spacing: -0.01em; color: var(--gris); }

#moxie-sonnette .so-achat { max-width: 980px; margin: 22px auto 0; padding-inline: 16px; display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
#moxie-sonnette .so-achat-prix { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
#moxie-sonnette .so-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0; background: #0071e3; color: #fff; font-family: inherit; font-size: 17px; font-weight: 500; cursor: pointer; }
#moxie-sonnette .so-lien { color: #0066cc; font-size: 17px; text-decoration: none; }

/* L'histoire de nuit : la ville, le vélo (la vraie sonnette sur le guidon), le voleur, le téléphone */
#moxie-sonnette .so-nuit { position: absolute; inset: 0; z-index: 1; opacity: 0; }
#moxie-sonnette .so-nuit { background: #000; }
/* les photos (portrait) couvrent la scène ; la sonnette est incrustée sur le guidon du vélo */
#moxie-sonnette .so-photo { position: absolute; left: 50%; top: 50%; width: max(100cqw, calc(100cqh * var(--ratio))); aspect-ratio: var(--ratio); translate: -50% -51%; opacity: 0; }
#moxie-sonnette .so-photo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#moxie-sonnette #soVeloCloche { position: absolute; left: 41.9%; top: 38.4%; width: 4.8%; height: auto; translate: -42% -80%; filter: brightness(.62) sepia(.25) saturate(1.1) drop-shadow(0 .3cqh .4cqh rgba(0,0,0,.6)); }
#moxie-sonnette .so-aube { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(150,190,255,.55), rgba(255,200,150,.35) 55%, rgba(255,230,190,.25)); mix-blend-mode: screen; opacity: 0; }
#moxie-sonnette .so-texte.so-blanc h2, #moxie-sonnette .so-texte.so-blanc h3 { text-shadow: 0 .4cqh 2cqh rgba(0,0,0,.55); }
#moxie-sonnette .so-texte.so-milieu { top: 50%; translate: 0 -50%; }
#moxie-sonnette .so-texte.so-bas { top: auto; bottom: 8cqh; left: 6cqw; right: auto; text-align: left; padding: 0; }
@media (max-width: 760px) { #moxie-sonnette .so-texte.so-bas { left: 0; right: 0; text-align: center; padding-inline: 6cqw; bottom: 6cqh; } }
#moxie-sonnette .so-texte.so-blanc { color: #fff; }
#moxie-sonnette .so-texte.so-blanc p { color: rgba(255,255,255,.72); }
#moxie-sonnette .so-tel { position: absolute; z-index: 3; right: 14cqw; top: 56%; height: 68cqh; aspect-ratio: 300 / 560; translate: 0 -50%; border-radius: 6cqh; background: #0d0f14; padding: 1.4cqh; box-shadow: 0 4cqh 8cqh rgba(0,0,0,.5), inset 0 0 0 .3cqh #3a3f4c; opacity: 0; }
#moxie-sonnette .so-tel-ecran { position: relative; width: 100%; height: 100%; border-radius: 4.8cqh; overflow: hidden; background: #1c2233; }
#moxie-sonnette .so-carte { position: absolute; left: 0; top: 0; width: 100%; height: 75%; display: block; }
#moxie-sonnette .so-tel-carte { position: absolute; left: 0; right: 0; bottom: 0; height: 25%; background: #f5f5f7; padding: 2.4cqh 2.4cqh; display: flex; flex-direction: column; gap: .6cqh; }
#moxie-sonnette .so-tel-carte b { font-size: clamp(14px, 3.2cqh, 26px); color: #1d1d1f; }
#moxie-sonnette .so-tel-carte span { font-size: clamp(11px, 2.2cqh, 18px); color: #6e6e73; }

@media (max-width: 760px) {
  #moxie-sonnette .so-tel { right: 6cqw; top: auto; bottom: 8cqh; height: 44cqh; translate: none; }
  #moxie-sonnette .so-scene { height: 150vw; }
  #moxie-sonnette .so-produit { height: auto; width: 112cqw; top: 58%; }
  #moxie-sonnette .so-texte.so-gauche { left: 0; right: 0; top: 6cqh; translate: none; text-align: center; max-width: none; padding-inline: 6cqw; }
  #moxie-sonnette .so-texte.so-haut { top: 6cqh; }
  #moxie-sonnette .so-ondes i { width: 100cqw; }
  #moxie-sonnette .so-tag { width: 42cqw; }
  #moxie-sonnette .so-achat { gap: 14px; }
}

/* le tag seul (plan « Deux usages ») */
#moxie-sonnette .so-tag { position: absolute; z-index: 2; left: 50%; top: 58%; width: 34cqh; height: auto; translate: -50% -50%; opacity: 0; filter: drop-shadow(0 1.5cqh 2.5cqh rgba(0,0,0,.22)); }
@media (max-width: 760px) { #moxie-sonnette .so-tag { width: 42cqw; } }
