/* ================================================================
   MOXIE HOME — Section « Power Bank MagSafe 5000 mAh » (moxiehome/views/templates/sections/magsafe.tpl)
   Même construction que la Powerbank 10 000 (powerbank.css), préfixe mg-, confinée à #moxie-magsafe.
   La scène est en container-type: size : elle a TOUJOURS une hauteur explicite.
   ================================================================ */
#moxie-magsafe *, #moxie-magsafe *::before, #moxie-magsafe *::after { box-sizing: border-box; }
#moxie-magsafe { min-height: 0; max-height: none; overflow: visible; line-height: normal; }
#moxie-magsafe { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); overflow-x: clip; }
#moxie-magsafe [hidden] { display: none !important; }
#moxie-magsafe h2, #moxie-magsafe h3 { font-family: inherit; color: inherit; text-transform: none; }

#moxie-magsafe { --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-magsafe .mg-scene { position: relative; width: 100%; height: min(56.25vw, 86svh); overflow: hidden; background: var(--fond); container-type: size; }
/* « studio » : la batterie en très grand sur un fond de sa couleur, fondu sur les bords */
#moxie-magsafe .mg-studio { position: absolute; inset: 0; opacity: 0; }
#moxie-magsafe .mg-studio canvas { position: absolute; left: 50%; top: 50%; height: 90cqh; aspect-ratio: 1; translate: -50% -50%; }
/* l'anneau magnétique de la photo : point de plongée de la caméra et source des ondes */
#moxie-magsafe .mg-onde { position: absolute; left: calc(50% + 3.1cqh); top: 53.7%; width: 30cqh; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: .8cqh solid #fff; opacity: 0; pointer-events: none; z-index: 2; }
#moxie-magsafe .mg-produit { position: absolute; left: 50%; top: 56%; height: 78cqh; aspect-ratio: 1; translate: -50% -50%; opacity: 0; z-index: 1; transform-origin: 54% 47%; }
#moxie-magsafe .mg-produit canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#moxie-magsafe .mg-texte { position: absolute; z-index: 3; left: 0; right: 0; top: 7cqh; text-align: center; padding-inline: 6cqw; opacity: 0; pointer-events: none; }
#moxie-magsafe .mg-texte h2, #moxie-magsafe .mg-texte h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
#moxie-magsafe .mg-texte h2 { font-size: clamp(44px, 12cqmin, 124px); }
#moxie-magsafe .mg-texte h3 { font-size: clamp(32px, 8cqmin, 80px); }
#moxie-magsafe .mg-texte p { margin: .45em 0 0; font-size: clamp(17px, 3.4cqmin, 28px); font-weight: 500; letter-spacing: -0.01em; color: var(--gris); }
#moxie-magsafe .mg-geant { position: absolute; z-index: 3; left: 6cqw; top: 50%; translate: 0 -50%; opacity: 0; pointer-events: none; transform-origin: 0 50%; }
#moxie-magsafe .mg-geant b { display: block; font-size: clamp(70px, 26cqmin, 260px); font-weight: 700; letter-spacing: -0.06em; line-height: .88; color: #fff; text-shadow: 0 1cqmin 4cqmin rgba(60,30,110,.25); }
#moxie-magsafe .mg-geant span { display: block; margin-top: .3em; font-size: clamp(18px, 4cqmin, 36px); font-weight: 600; color: rgba(255,255,255,.92); }
#moxie-magsafe .mg-couleur { position: absolute; z-index: 3; left: 0; right: 0; top: 7cqh; text-align: center; font-size: clamp(32px, 8cqmin, 80px); font-weight: 600; letter-spacing: -0.035em; opacity: 0; pointer-events: none; }

#moxie-magsafe .mg-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-magsafe .mg-couleurs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
#moxie-magsafe .mg-couleurs button { width: 26px; height: 26px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .2s; }
#moxie-magsafe .mg-couleurs button[aria-pressed="true"] { outline-color: #0071e3; }
#moxie-magsafe .mg-couleurs span { font-size: 14px; color: var(--gris); min-width: 6.5em; }
#moxie-magsafe .mg-achat-prix { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
#moxie-magsafe .mg-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; line-height: 1.2; cursor: pointer; }
#moxie-magsafe .mg-btn:hover, #moxie-magsafe .mg-btn.is-ajoute { background: #0077ed; color: #fff; }
#moxie-magsafe .mg-btn.is-erreur { background: #d63a12; color: #fff; }
#moxie-magsafe .moxie-home-achat.is-indisponible { min-height: 44px; font-family: inherit; font-size: 17px; font-weight: 500; line-height: 1.2; }
#moxie-magsafe .mg-lien { color: #0066cc; font-size: 17px; text-decoration: none; }
#moxie-magsafe .mg-lien:hover { text-decoration: underline; }
@media (max-width: 760px) {
  #moxie-magsafe .mg-scene { height: 125vw; }
  #moxie-magsafe .mg-studio canvas { top: 55%; height: auto; width: 96cqw; }
  #moxie-magsafe .mg-produit { height: auto; width: 96cqw; top: 60%; }
  #moxie-magsafe .mg-onde { left: calc(50% + 3.8cqw); top: calc(60% - 2.9cqw); width: 34cqw; }
  #moxie-magsafe .mg-geant { left: 0; right: 0; top: 9cqh; translate: none; text-align: center; transform-origin: 50% 0; }
  #moxie-magsafe .mg-achat { gap: 14px; }
}
