/* ================================================================
   MOXIE HOME — Section « Enceinte Rabbit » (moxiehome/views/templates/sections/rabbit.tpl)
   Reprise de pub-rabbit.html (.rb, préfixe rb-), confinée à #moxie-rabbit.
   Police système de la pub, fond clair, bouton bleu ; tailles inchangées. Photos : ../../img/rabbit/.
   Fiche technique (.rb-fiche) à gauche de la scène dans .rb-corps, sous la scène en dessous de 900 px.
   ================================================================ */
#moxie-rabbit *, #moxie-rabbit *::before, #moxie-rabbit *::after { box-sizing: border-box; }
/* base commune .moxie-home-section neutralisée : la pub garde ses propres marges et sa hauteur */
#moxie-rabbit { min-height: 0; max-height: none; overflow: visible; line-height: normal; }
/* pleine largeur, d'un bord à l'autre de l'écran, même dans un conteneur limité du thème
   (body a déjà overflow-x: hidden : pas de défilement horizontal quand une barre de défilement est visible) */
#moxie-rabbit { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
#moxie-rabbit [hidden] { display: none !important; }
#moxie-rabbit h2, #moxie-rabbit h3 { font-family: inherit; color: inherit; text-transform: none; }

/* ---------- Pub Enceinte Bluetooth Rabbit : un lapin dans sa prairie, sobre et plein cadre ---------- */
#moxie-rabbit { --encre: #1d1d1f; --gris: #6e6e73; --fond: #fbfbfd; --teinte: #2fd3d0;
  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; }
/* toute la largeur ; hauteur 16/9 bornée à l'écran : l'animation (en cqw/cqh) suit la taille de la scène */
#moxie-rabbit .rb-scene { position: relative; width: 100%; height: min(56.25vw, 86svh); margin: 0 auto; overflow: hidden; background: var(--fond); container-type: size; }
/* la nuit : un ciel bleu profond, des étoiles, des lucioles */
#moxie-rabbit .rb-nuit { position: absolute; inset: 0; background: linear-gradient(#050a1f, #0b1638 55%, #12224a); opacity: 0; }
#moxie-rabbit .rb-etoiles, #moxie-rabbit .rb-lucioles { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
#moxie-rabbit .rb-etoiles i { position: absolute; width: .35cqmin; aspect-ratio: 1; border-radius: 50%; background: #fff; }
#moxie-rabbit .rb-lucioles i { position: absolute; width: 1.1cqmin; aspect-ratio: 1; border-radius: 50%; background: #fff7b0; box-shadow: 0 0 1.6cqmin .5cqmin rgba(255,240,140,.85); }
#moxie-rabbit .rb-texte { position: absolute; left: 0; right: 0; top: 7cqh; text-align: center; padding-inline: 6cqw; pointer-events: none; opacity: 0; }
#moxie-rabbit .rb-texte h2, #moxie-rabbit .rb-texte h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
#moxie-rabbit .rb-texte h2 { font-size: clamp(40px, 11cqmin, 110px); }
#moxie-rabbit .rb-texte h3 { font-size: clamp(30px, 7.5cqmin, 72px); }
#moxie-rabbit .rb-texte p { margin: .45em 0 0; font-size: clamp(17px, 3.6cqmin, 30px); font-weight: 500; letter-spacing: -0.01em; color: var(--gris); }
#moxie-rabbit #rbT3 { color: #f5f5f7; } #moxie-rabbit #rbT3 p { color: #a9b2cc; }
/* l'enceinte : ancrée par le bas, dans l'herbe */
#moxie-rabbit .rb-lapin { position: absolute; left: 50%; bottom: 7cqh; height: 56cqh; translate: -50% 0; transform-origin: 50% 100%; }
#moxie-rabbit .rb-lapin canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* le son : des ondes qui sortent de la grille, une carte « En lecture », des notes — on comprend que c'est une enceinte */
#moxie-rabbit .rb-lapin .rb-son, #moxie-rabbit .rb-amis .rb-son { position: absolute; left: 50%; top: 70%; width: 190%; height: auto; translate: -50% -50%; overflow: visible; pointer-events: none; }
#moxie-rabbit .rb-son path { fill: none; stroke: var(--teinte); stroke-width: 3.2; stroke-linecap: round; opacity: 0; }
#moxie-rabbit .rb-notes-jour { position: absolute; inset: 0; pointer-events: none; }
#moxie-rabbit .rb-notes-jour span { position: absolute; font-size: 5.5cqmin; font-weight: 600; color: var(--teinte); opacity: 0; filter: saturate(1.2) brightness(.85); }
#moxie-rabbit .rb-lecture { position: absolute; right: 5cqw; top: 17cqh; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 20px; background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 12px 34px -10px rgba(0,0,0,.25), 0 0 0 .5px rgba(0,0,0,.08); opacity: 0; font-size: 15px; text-align: left; }
#moxie-rabbit .rb-lecture small { display: block; font-size: 12px; color: var(--gris); font-weight: 500; }
#moxie-rabbit .rb-lecture b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
#moxie-rabbit .rb-lecture-bt { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #0a84ff; display: grid; place-items: center; }
#moxie-rabbit .rb-lecture-eq { display: flex; align-items: flex-end; gap: 3px; height: 20px; margin-left: 6px; }
#moxie-rabbit .rb-lecture-eq i { width: 4px; height: 30%; border-radius: 2px; background: var(--teinte); filter: brightness(.85); }
#moxie-rabbit .rb-lumiere { mix-blend-mode: screen; filter: brightness(1.7) saturate(1.3); opacity: 0; }
#moxie-rabbit .rb-bloom { mix-blend-mode: screen; filter: blur(4cqmin) brightness(2) saturate(1.5); opacity: 0; }
#moxie-rabbit .rb-ombre { position: absolute; left: 50%; bottom: 8cqh; width: 26cqh; height: 3cqh; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(40,70,10,.35), transparent); opacity: 0; }
#moxie-rabbit .rb-ondes { position: absolute; left: 50%; bottom: 22cqh; width: 0; height: 0; }
#moxie-rabbit .rb-ondes i { position: absolute; width: 60cqmin; aspect-ratio: 1; left: -30cqmin; top: -30cqmin; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); opacity: 0; }
/* les trois autres couleurs, présentes au début puis qui s'en vont en bondissant */
#moxie-rabbit .rb-amis div { position: absolute; left: 50%; bottom: 7cqh; height: 56cqh; translate: -50% 0; transform-origin: 50% 100%; }
#moxie-rabbit .rb-amis canvas { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1.5cqmin 2cqmin rgba(0,0,0,.12)); }
/* la prairie : deux rangs d'herbe qui ondulent, l'enceinte posée entre les deux */
#moxie-rabbit .rb-herbe { position: absolute; left: -2%; width: 104%; bottom: 0; height: 26cqh; overflow: visible; }
#moxie-rabbit .rb-herbe-avant { height: 18cqh; }
#moxie-rabbit .rb-herbe g { transform-box: fill-box; transform-origin: 50% 100%; }
/* les quatre couleurs, qui sortent de l'herbe */
#moxie-rabbit .rb-gamme { position: absolute; left: 0; right: 0; bottom: 7cqh; height: 34cqh; display: flex; justify-content: center; gap: 4cqw; }
#moxie-rabbit .rb-gamme figure { position: relative; margin: 0; height: 100%; opacity: 0; transform-origin: 50% 100%; }
#moxie-rabbit .rb-gamme canvas { height: 100%; display: block; filter: drop-shadow(0 1.5cqmin 1.5cqmin rgba(0,0,0,.12)); }
#moxie-rabbit .rb-noms { position: absolute; left: 0; right: 0; top: 30cqh; display: flex; justify-content: center; gap: 4cqw; opacity: 0; }
#moxie-rabbit .rb-noms span { font-size: clamp(12px, 2.4cqmin, 19px); font-weight: 500; color: var(--gris); text-align: center; }
#moxie-rabbit .rb-chiffres { position: absolute; left: 0; right: 0; top: 8cqh; display: flex; justify-content: center; gap: 7cqw; opacity: 0; }
#moxie-rabbit .rb-chiffres div { text-align: center; }
#moxie-rabbit .rb-chiffres b { display: block; font-size: clamp(34px, 9cqmin, 90px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
#moxie-rabbit .rb-chiffres span { font-size: clamp(12px, 2.4cqmin, 20px); color: var(--gris); font-weight: 500; }

/* la fiche technique à gauche, la scène à droite ; pleine largeur (pas de max-width), la scène prend la hauteur de la rangée */
#moxie-rabbit .rb-corps { display: grid; grid-template-columns: clamp(260px, 24vw, 340px) minmax(0, 1fr); align-items: stretch; }
#moxie-rabbit .rb-corps .rb-scene { height: auto; min-height: min(calc((100vw - clamp(260px, 24vw, 340px)) * .5625), 86svh); }
/* la fiche vit avec la pub : même ciel, même prairie, elle passe à la nuit avec la scène et prend la couleur choisie */
#moxie-rabbit .rb-fiche { --n: calc(var(--nuit, 0) * 100%); order: -1; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 24px clamp(16px, 2vw, 28px) calc(var(--herbe-h, 120px) * .75) clamp(20px, 3vw, 44px);
  background: var(--fond); color: color-mix(in srgb, #f5f5f7 var(--n), var(--encre)); }
#moxie-rabbit .rb-fiche::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(#050a1f, #0b1638 55%, #12224a); opacity: var(--nuit, 0); pointer-events: none; }
#moxie-rabbit .rb-fiche > *:not(.rb-herbe):not(.rb-etoiles) { position: relative; z-index: 1; }
#moxie-rabbit .rb-etoiles-fiche { z-index: 0; opacity: var(--nuit, 0) !important; }
#moxie-rabbit .rb-fiche .rb-herbe-fiche { position: absolute; z-index: 0; left: -4%; width: 108%; bottom: 0; height: var(--herbe-h, 120px); }
#moxie-rabbit .rb-fiche h3 { margin: 0 0 14px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
#moxie-rabbit .rb-fiche dl { margin: 0; }
#moxie-rabbit .rb-fiche dl div { padding: 11px 0; border-top: 1px solid color-mix(in srgb, rgba(255,255,255,.2) var(--n), #d2d2d7); }
#moxie-rabbit .rb-fiche dl div:last-child { border-bottom: 1px solid color-mix(in srgb, rgba(255,255,255,.2) var(--n), #d2d2d7); }
#moxie-rabbit .rb-fiche dt { font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--teinte) calc(55% + var(--nuit, 0) * 45%), var(--encre)); text-transform: uppercase; letter-spacing: .06em; transition: color .5s; }
#moxie-rabbit .rb-fiche dd { margin: 2px 0 0; font-size: 17px; font-weight: 500; line-height: 1.3; }

/* sous la scène : couleur, prix, achat */
#moxie-rabbit .rb-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-rabbit .rb-couleurs { display: flex; align-items: center; gap: 12px; }
#moxie-rabbit .rb-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-rabbit .rb-couleurs button[aria-pressed="true"] { outline-color: #0071e3; }
#moxie-rabbit .rb-couleurs span { font-size: 14px; color: var(--gris); min-width: 7.5em; }
#moxie-rabbit .rb-achat-prix { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
/* le bouton d'achat commun (.moxie-home-achat), habillé comme celui de la pub */
#moxie-rabbit .rb-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-rabbit .rb-btn:hover, #moxie-rabbit .rb-btn.is-ajoute { background: #0077ed; color: #fff; }
#moxie-rabbit .rb-btn.is-erreur { background: #d63a12; color: #fff; }
#moxie-rabbit .moxie-home-achat.is-indisponible { min-height: 44px; font-family: inherit; font-size: 17px; font-weight: 500; line-height: 1.2; }
#moxie-rabbit .rb-lien { color: #0066cc; font-size: 17px; text-decoration: none; }
#moxie-rabbit .rb-lien:hover { text-decoration: underline; }
@media (max-width: 900px) {
  #moxie-rabbit .rb-corps { grid-template-columns: minmax(0, 1fr); }
  #moxie-rabbit .rb-corps .rb-scene { min-height: 56.25vw; }
  #moxie-rabbit .rb-fiche { order: 0; padding: 22px 16px 0; }
  #moxie-rabbit .rb-fiche dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
  #moxie-rabbit .rb-fiche dl div:nth-last-child(2) { border-bottom: 1px solid color-mix(in srgb, rgba(255,255,255,.2) var(--n), #d2d2d7); }
}
@media (max-width: 760px) {
  #moxie-rabbit .rb-scene { height: 125vw; }
  #moxie-rabbit .rb-corps .rb-scene { height: auto; min-height: 125vw; }
  #moxie-rabbit .rb-lapin, #moxie-rabbit .rb-amis div { height: 44cqh; }
  #moxie-rabbit .rb-gamme { height: 22cqh; gap: 2cqw; } #moxie-rabbit .rb-noms { top: auto; bottom: 31cqh; gap: 2cqw; }
  #moxie-rabbit .rb-chiffres { gap: 5cqw; }
  #moxie-rabbit .rb-lecture { right: 4cqw; top: 31cqh; padding: 9px 12px 9px 9px; gap: 9px; } #moxie-rabbit .rb-lecture b { font-size: 15px; } #moxie-rabbit .rb-lecture small { font-size: 11px; } #moxie-rabbit .rb-lecture-bt { width: 30px; height: 30px; }
  #moxie-rabbit .rb-achat { gap: 14px; }
}
