/* ================= MORPH BUTTON ================= */
.morph-btn{
  margin-top:22px;
  height:56px;
  padding:0 34px;
  background:#fff;
  color:#000;
  border:none;
  border-radius:16px;
  font-weight:800;
  cursor:pointer;
  transition:width .2s,color .2s;
}

.morph-btn.to-rect{
  width:56px;
  padding:0;
  color:transparent;
}

/* ================= MORPH RECTANGLE (BACKGROUND) ================= */
.morph-bg{
  position:fixed;
  background:#fff;
  border-radius:16px;
  display:none;
  z-index:1000;
  cursor:pointer;
}

/* ================= MODAL WRAPPER ================= */
.morph-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1002;
  pointer-events: auto;
}

/* overlay cliquable pour fermer */
.morph-overlay{
  position: fixed;
  inset: 0;
  background: transparent; /* garde ton visuel (le blanc est déjà sur morph-bg) */
  z-index: 0;
}

/* ================= CLOSE BUTTON ================= */
.morph-close{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);

  width: 56px;
  height: 56px;
  border-radius: 16px;

  background: rgba(0,0,0,.15);
  color: #000;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 28px;
  font-weight: 600;
  line-height: 1;

  z-index: 2;
  cursor: pointer;
}

/* ================= SCROLLABLE CONTENT ================= */
.morph-content{
  position: relative;
  z-index: 1;

  max-width: 760px;
  height: calc(100vh - 180px);
  margin: 120px auto 0;

  padding: 24px 24px 120px;
  overflow-y: auto;

  line-height: 1.7;
  color: #111;

  -webkit-overflow-scrolling: touch;
}

/* ================= MOBILE ================= */
@media (max-width: 600px){
  .morph-content{
    height: calc(100vh - 140px);
    margin-top: 96px;
    padding-bottom: 140px;
  }
  .morph-close{
    bottom: 16px;
  }
}
