/* ================================================================
   MOXIE HOME — Section « Iron Boom Mini » (moxiehome/views/templates/sections/ironboom.tpl)
   Maquette : .ib-config, version « tient dans un écran » (enceinte + achat à gauche, étapes à droite)
   ================================================================ */
.moxie-ib {
  --ib: #C21A33;
  background: radial-gradient(90% 120% at 25% 40%, #2a1240 0%, #0c0a14 60%, #07060c 100%);
  color: #EDEAF6;
  max-height: none;
  display: flex;
  align-items: center;
  padding-top: clamp(20px, 3.5vh, 40px);
  padding-bottom: clamp(20px, 3.5vh, 40px);
}
.moxie-ib__grille {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: start;
}
.moxie-ib__gauche { display: grid; gap: 10px; min-width: 0; }

/* Scène : enceinte, halo, ondes, spectre */
.moxie-ib__scene {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: min(330px, 36vh);
  justify-self: center;
  display: grid;
  place-items: center;
}
.moxie-ib__ondes { position: absolute; inset: 0; pointer-events: none; }
.moxie-ib__ondes i {
  position: absolute; left: 50%; top: 38%; width: 46%; aspect-ratio: 2.2;
  border: 2px solid var(--ib); border-radius: 50%; translate: -50% -50%; opacity: .8;
  animation: moxie-ib-onde 1.6s ease-out forwards; box-shadow: 0 0 18px var(--ib);
}
@keyframes moxie-ib-onde { to { width: 130%; opacity: 0; } }
.moxie-ib__halo {
  position: absolute; left: 50%; top: 52%; width: 70%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; background: radial-gradient(circle, var(--ib), transparent 65%); opacity: .25; filter: blur(30px);
}
.moxie-ib__enceinte { position: relative; width: 62%; transition: transform .08s linear; will-change: transform; }
.moxie-ib__enceinte svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 30px rgba(0,0,0,.6)); }
.moxie-ib__spectre { position: absolute; left: 8%; right: 8%; bottom: 6%; height: 16%; display: flex; align-items: flex-end; gap: 3px; }
.moxie-ib__spectre i {
  flex: 1; height: 4%; border-radius: 3px 3px 0 0;
  background: linear-gradient(0deg, var(--ib), #fff); opacity: .85; transition: height .1s linear;
}
.moxie-ib__niveau {
  position: absolute; top: 4%; left: 4%; margin: 0;
  font: 700 11px/1 ui-monospace, Menlo, monospace; letter-spacing: .16em; color: #9b92b8;
}
.moxie-ib__niveau.on { color: #1ED760; }
.moxie-ib__etiquette {
  position: absolute; right: 6%; top: 20%; margin: 0; background: #FFD84D; color: #1a1300;
  border-radius: 50%; width: 80px; height: 80px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; transform: rotate(12deg);
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); animation: moxie-ib-tampon 2.6s ease-in-out infinite;
}
.moxie-ib__etiquette small { font-size: 7.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; text-align: center; max-width: 56px; }
.moxie-ib__etiquette b { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 22px; line-height: 1; }
@keyframes moxie-ib-tampon { 50% { transform: rotate(8deg) scale(1.06); } }

/* Achat */
.moxie-ib__achat {
  padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14); display: grid; gap: 7px;
}
.moxie-ib__prix { display: flex; align-items: center; gap: 16px; }
.moxie-ib__prix-montant { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 38px; line-height: 1; color: #fff; white-space: nowrap; }
.moxie-ib__prix span { font-size: 13px; line-height: 1.3; color: #D6CEF0; }
.moxie-ib__prix small { color: #9b92b8; }
.moxie-ib__boutons { display: grid; gap: 7px; }
.moxie-ib__boutons[hidden], .moxie-ib__rupture[hidden] { display: none; }
.moxie-ib__acheter {
  min-height: 46px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 800; font-size: 16px;
  color: #fff; background: var(--ib); box-shadow: 0 0 34px -6px var(--ib);
  animation: moxie-ib-appel 2s ease-in-out infinite; transition: background .4s;
}
.moxie-ib__acheter.is-ajoute { background: #1ED760; color: #07150b; animation: none; }
@keyframes moxie-ib-appel { 50% { transform: scale(1.025); box-shadow: 0 0 44px 0 var(--ib); } }
.moxie-ib__offrir {
  min-height: 38px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.3);
  background: transparent; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; padding: 4px 14px;
}
.moxie-ib__offrir:hover { border-color: #fff; }
.moxie-ib__offrir.is-ajoute { border-color: #1ED760; color: #1ED760; }
.moxie-ib__acheter.is-erreur, .moxie-ib__offrir.is-erreur { background: #d63a12; color: #fff; border-color: #d63a12; animation: none; }
.moxie-ib__acheter.is-chargement, .moxie-ib__offrir.is-chargement { opacity: .7; cursor: progress; }
.moxie-ib__rupture { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.moxie-ib__rupture .moxie-home-achat__fiche { color: #fff; }
.moxie-ib__preuve { margin: 0; font-size: 12px; color: #B9A8E8; text-align: center; }
.moxie-ib__preuve span { color: #FFD84D; letter-spacing: 2px; }

.moxie-ib__specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; list-style: none; padding: 0; margin: 0; }
.moxie-ib__specs li {
  border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 6px 9px;
  font-size: 11px; color: #B9A8E8; display: flex; flex-direction: column;
}
.moxie-ib__specs b { color: #fff; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 17px; }

/* Panneau : titre + 3 étapes */
.moxie-ib__surtitre { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #B9A8E8; }
.moxie-ib__titre {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(36px, 4.2vw, 56px); line-height: .92; color: #fff; margin: 8px 0 12px;
}
.moxie-ib__accroche { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 4px; color: #D6CEF0; font-size: 14px; }
.moxie-ib__prix-pastille {
  background: #FFD84D; color: #1a1300; font-weight: 900; border-radius: 999px; padding: 6px 14px; font-size: 15px;
  transform: rotate(-2deg); box-shadow: 0 6px 18px -6px rgba(255,216,77,.7);
}
.moxie-ib__q { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 12px 0 7px; font-size: 15px; }
.moxie-ib__q b {
  width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #120c1f;
  display: inline-grid; place-items: center; font-size: 13px;
}
.moxie-ib__q span { color: #B9A8E8; font-weight: 600; }
.moxie-ib__pastilles { display: flex; gap: 10px; }
.moxie-ib__pastilles button {
  width: 34px; height: 34px; border-radius: 50%; border: 3px solid #120c1f;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25); cursor: pointer; padding: 0; transition: transform .15s;
}
.moxie-ib__pastilles button:hover { transform: scale(1.1); }
.moxie-ib__pastilles button[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff; }
.moxie-ib__artistes { display: flex; flex-wrap: wrap; gap: 6px; }
.moxie-ib__artistes button {
  min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.05); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; transition: border-color .2s;
}
.moxie-ib__artistes button:hover { border-color: #1ED760; }
.moxie-ib__artistes button[aria-pressed="true"] { background: #1ED760; color: #07150b; border-color: #1ED760; }
.moxie-ib__lecteur { border-radius: 14px; overflow: hidden; min-height: 152px; background: rgba(255,255,255,.04); position: relative; }
.moxie-ib__lecteur iframe { display: block; }
.moxie-ib__charger-spotify {
  position: absolute; inset: 0; width: 100%; border: 1.5px dashed rgba(255,255,255,.25); border-radius: 14px;
  background: transparent; color: #fff; font-weight: 800; font-size: 16px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.moxie-ib__charger-spotify span { color: #1ED760; }
.moxie-ib__charger-spotify small { font-weight: 500; font-size: 12px; color: #9b92b8; }
.moxie-ib__charger-spotify[hidden] { display: none; }
.moxie-ib__micro {
  margin-top: 8px; width: 100%; min-height: 40px; border-radius: 999px; border: 1.5px dashed rgba(255,255,255,.35);
  background: rgba(255,255,255,.05); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
}
.moxie-ib__micro[aria-pressed="true"] { border-style: solid; border-color: #1ED760; background: rgba(30,215,96,.12); color: #1ED760; }
.moxie-ib__note { font-size: 11px; line-height: 1.35; margin: 8px 0 0; color: #8e86a8; }

/* Mobile : un écran — titre, enceinte à côté du choix de couleur, achat, puis musique */
@media (max-width: 860px) {
  .moxie-ib { align-items: flex-start; }
  .moxie-ib__grille {
    grid-template-columns: 132px minmax(0, 1fr);
    grid-template-areas:
      "titre titre"
      "scene q1"
      "scene pastilles"
      "achat achat"
      "q2 q2"
      "artistes artistes"
      "q3 q3"
      "lecteur lecteur"
      "micro micro";
    gap: 10px 12px;
    align-items: center;
  }
  .moxie-ib__gauche, .moxie-ib__panneau { display: contents; }
  .moxie-ib__surtitre, .moxie-ib__accroche, .moxie-ib__specs, .moxie-ib__note, .moxie-ib__preuve { display: none; }
  .moxie-ib__titre { grid-area: titre; font-size: clamp(28px, 7.6vw, 38px); margin: 0; }
  .moxie-ib__scene { grid-area: scene; max-width: 132px; }
  .moxie-ib__q--couleur { grid-area: q1; margin: 0; align-self: end; font-size: 14px; }
  .moxie-ib__pastilles { grid-area: pastilles; align-self: start; flex-wrap: wrap; gap: 8px; }
  .moxie-ib__pastilles button { width: 30px; height: 30px; }
  .moxie-ib__achat { grid-area: achat; }
  .moxie-ib__prix-montant { font-size: 32px; }
  .moxie-ib__q--artiste { grid-area: q2; margin: 2px 0 0; font-size: 14px; }
  .moxie-ib__artistes { grid-area: artistes; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .moxie-ib__artistes::-webkit-scrollbar { display: none; }
  .moxie-ib__artistes button { flex: none; }
  .moxie-ib__q--musique { grid-area: q3; margin: 2px 0 0; font-size: 14px; }
  .moxie-ib__lecteur { grid-area: lecteur; min-height: 80px; }
  .moxie-ib__micro { grid-area: micro; margin-top: 0; min-height: 38px; font-size: 13px; }
  .moxie-ib__etiquette { width: 54px; height: 54px; right: -10%; top: 0; }
  .moxie-ib__etiquette small { font-size: 6px; max-width: 42px; }
  .moxie-ib__etiquette b { font-size: 15px; }
  .moxie-ib__niveau { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .moxie-ib__etiquette, .moxie-ib__acheter { animation: none; }
  .moxie-ib__enceinte, .moxie-ib__spectre i { transition: none; }
}

/* ================================================================
   Tuile Iron Boom Mini de la mosaïque (sections/tuile-ironboom.tpl, maquette : .cat.ironboom)
   Fond clair, enceinte dessinée à droite, texte sombre à gauche
   ================================================================ */
.moxie-topcategories__item.moxie-tuile-ib { color: #0a0a0a; background: #fff; }
.moxie-tuile-ib .moxie-topcategories__image-wrapper { background: radial-gradient(70% 90% at 80% 50%, #F3F1FA, #fff 70%); }
.moxie-tuile-ib .moxie-topcategories__image-wrapper::after { display: none; }
.moxie-tuile-ib__dessin {
  position: absolute; right: 6%; top: 50%; translate: 0 -50%;
  width: 30%; max-width: 230px; max-height: 88%; aspect-ratio: 200 / 170; transition: transform .35s;
}
.moxie-tuile-ib__dessin svg { width: 100%; height: auto; display: block; }
.moxie-tuile-ib:hover .moxie-tuile-ib__dessin { transform: scale(1.06) rotate(-3deg); }
.moxie-tuile-ib .moxie-tuile-ib__texte { max-width: 58%; margin-top: 0; height: 100%; justify-content: center; gap: 6px; }
.moxie-tuile-ib .moxie-topcategories__accroche { color: #555; }
.moxie-tuile-ib__badge {
  align-self: flex-start; background: #B3152B; color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 4px 10px;
}
.moxie-tuile-ib__couleurs { display: flex; gap: 8px; margin-top: 4px; }
.moxie-tuile-ib__couleurs button {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15); cursor: pointer; padding: 0;
}
.moxie-tuile-ib__couleurs button[aria-pressed="true"] { box-shadow: 0 0 0 2px #0a0a0a; }
.moxie-tuile-ib__lien {
  align-self: flex-start; margin-top: 4px; font-weight: 800; color: #0a0a0a;
  text-decoration: none; border-bottom: 2px solid currentColor;
}
.moxie-tuile-ib__lien:hover { color: #B3152B; }
@media (max-width: 768px) {
  .moxie-tuile-ib .moxie-tuile-ib__texte { max-width: 64%; gap: 4px; }
  .moxie-tuile-ib__badge { font-size: 9px; padding: 3px 8px; }
  .moxie-tuile-ib__couleurs { gap: 6px; }
  .moxie-tuile-ib__couleurs button { width: 22px; height: 22px; }
  .moxie-tuile-ib__dessin { width: 34%; right: 3%; }
}
@media (max-width: 480px) {
  .moxie-tuile-ib .moxie-topcategories__accroche { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .moxie-tuile-ib__dessin { transition: none; }
}
